[clang] [Clang][SME] Add IsStreamingOrSVE2p1 (PR #75958)

Kerry McLaughlin via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 20 06:10:45 PST 2023


================
@@ -11,10 +11,16 @@
 // RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64-none-linux-gnu -target-feature +sve2p1 \
 // RUN:   -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
 // RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64-none-linux-gnu -target-feature +sme2 -target-feature +sve \
-// RUN:   -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
+// RUN:   -S -DTEST_SME2 -disable-O0-optnone -Werror -Wall -o /dev/null %s
 
 #include <arm_sve.h>
 
+#ifndef TEST_SME2
+#define ATTR
+#else
+#define ATTR __arm_streaming
----------------
kmclaughlin-arm wrote:

I think this should be __arm_streaming_compatible?

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


More information about the cfe-commits mailing list