================
@@ -0,0 +1,17 @@
+// RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown 
-target-feature +acev1 \
+// RUN: -target-feature +avx512f -fsyntax-only -verify
+
+// Tests compile-time semantic errors for ACE v1 intrinsics
+
+#include <immintrin.h>
+
+void test_tile_range_errors(void) {
+  // Tile index must be in range [0, 7]
+  _tile_ace_zero(8);  // expected-error {{argument value 8 is outside the 
valid range [0, 7]}}
+  _tile_ace_zero(16); // expected-error {{argument value 16 is outside the 
valid range [0, 7]}}
+
----------------
ganeshgit wrote:

Made the error tests exhaustive (checks 53 builtins). Extended for scale group 
const as well. 

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

Reply via email to