xref: /llvm-project/clang/test/CodeGen/AArch64/sme-intrinsics/acle_sme_state_builtin.c (revision 207e5ccceec8d3cc3f32723e78f2a142bc61b07d)
1 // REQUIRES: aarch64-registered-target
2 // RUN: %clang_cc1 -triple aarch64-linux -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
3 // RUN: %clang_cc1 -triple aarch64-windows -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
4 // RUN: %clang_cc1 -triple aarch64-darwin -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
5 
6 #include <stdint.h>
7 
8 // Ensure that the builtin is defined to take a uint64_t * rather than relying
9 // on the size of 'unsigned long' which may have different meanings on different
10 // targets depending on LP64/LLP64.
11 void test_sme_state_builtin(uint64_t *a,
12                             uint64_t *b) __arm_streaming_compatible {
13   __builtin_arm_get_sme_state(a, b);
14 }
15