================
@@ -0,0 +1,98 @@
+// RUN: %clang_cc1 -fclangir -triple x86_64-unknown-linux-gnu -target-feature 
+avx512fp16 -target-feature +avx512bf16 -emit-llvm %s -o - | FileCheck %s 
--check-prefix=CIR
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -target-feature 
+avx512fp16 -target-feature +avx512bf16 -emit-llvm %s -o - | FileCheck %s 
--check-prefix=OGCG
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -target-feature 
+avx512fp16 -target-feature +avx512bf16 -emit-llvm %s -o - | FileCheck %s 
--check-prefix=LLVM
+
+// REQUIRES: avx512fp16
+// REQUIRES: avx512bf16
----------------
Priyanshu3820 wrote:

> Are you sure this is not just silently passing the test? I don't see this 
> being used in clang for any test involving `avx512fp16`. It's also used 
> twice, which is unnecessary. Can you please remove both?

`./bin/clang -cc1 -internal-isystem ../clang/lib/Headers -triple 
x86_64-unknown-linux-gnu -ffreestanding -target-feature +avx512f 
-target-feature +avx512vl -emit-llvm 
../clang/test/CIR/CodeGenBuiltins/X86/avx512vlbf16-builtins.c -o -
../clang/test/CIR/CodeGenBuiltins/X86/avx512vlbf16-builtins.c:11:10: error: 
always_inline function '_mm512_mask_cvtneps_pbh' requires target feature 
'avx512bf16', but would be inlined into function 'test_mm512_mask_cvtneps_pbh' 
that is compiled without support for 'avx512bf16'
   11 |   return _mm512_mask_cvtneps_pbh(src, k, a);
      |          ^
1 error generated.`

Since I don't have the required support, I was getting this error.

https://github.com/llvm/llvm-project/pull/171615
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to