[clang] [llvm] [AArch64] Enable svcompact intrinsic in streaming mode with SME2.2 (PR #151703)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 1 08:54:45 PDT 2025
================
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -triple aarch64-none-linux-gnu \
+// RUN: -target-feature +sve -target-feature +sme -target-feature +ssve -target-feature +sme2p2 \
+// RUN: -fsyntax-only -verify %s
+// REQUIRES: aarch64-registered-target
+// expected-no-diagnostics
+
+
+#include <arm_sve.h>
+
+void test_svcompact_streaming(svbool_t pg, svfloat32_t op) __arm_streaming {
+ svcompact(pg, op);
+}
----------------
paulwalker-arm wrote:
For the Sema testing we normally verify both:
* The builtins are enabled when the target feature is available.
* The compiler emits a diagnostic when the target feature is not available.
See clang/test/Sema/aarch64-sve-intrinsics/acle_sve_bf16.cpp for inspiration, albeit you only care about streaming mode so you can ignore the MODE_ATTR side of things.
https://github.com/llvm/llvm-project/pull/151703
More information about the llvm-commits
mailing list