================
@@ -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]}}
+
----------------
mahesh-attarde wrote:
For all intrinsics with TILE_ID we need to check "const-ness"
```
unsigned char TILE_ID = 2;
void test_tile_set_row(__m512i A, unsigned int B) {
_tile_set_row(TILE_ID, A, B); // expected-error {{argument to
'__builtin_ia32_tilemovrow_set' must be a constant integer}}
}
```
TOP4MX* calls are missing.
https://github.com/llvm/llvm-project/pull/208408
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits