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

Sam Tebbs via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 20 07:02:53 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
----------------
SamTebbs33 wrote:

arm_sve.td has SVFCLAMP as `IsStreamingOrSVE2p1` so I think it has to be `__arm_streaming``, or is the builtin def incorrect?

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


More information about the cfe-commits mailing list