[clang] [llvm] [X86] Add ACE v1 (AI Compute Extensions) support (PR #208408)

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 21 19:54:28 PDT 2026


================
@@ -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


More information about the llvm-commits mailing list