[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:56:39 PDT 2026


================
@@ -0,0 +1,76 @@
+// RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown -target-feature +acev1 \
+// RUN: -target-feature +avx512f -emit-llvm -o - -Wall -Werror -pedantic | FileCheck %s
+
+// Tests inline assembly with ACE v1 tile registers
+
+#include <immintrin.h>
+
+void test_acev1_inline_asm_outer_product(void) {
+  // CHECK-LABEL: @test_acev1_inline_asm_outer_product
+  // CHECK: call void asm sideeffect "tilezero %tmm0
+  // CHECK: top4buud %zmm0, %zmm1, %tmm0
+  // CHECK: tilestored %tmm0
+  __asm__ volatile (
+    "tilezero %%tmm0               \n\t"
+    "top4buud %%zmm0, %%zmm1, %%tmm0 \n\t"
+    "tilestored %%tmm0, 0(%%rdi)   \n\t"
+    ::: "memory", "tmm0", "zmm0", "zmm1"
----------------
ganeshgit wrote:

Done!

https://github.com/llvm/llvm-project/pull/208408


More information about the llvm-commits mailing list