brintos

brintos / llvm-project-archived public Read only

0
0
Text · 692 B · f2ef0b3 Raw
15 lines · c
1// REQUIRES: aarch64-registered-target2// RUN: %clang_cc1 -triple aarch64-linux -S -disable-O0-optnone -Werror -Wall -o /dev/null %s3// RUN: %clang_cc1 -triple aarch64-windows -S -disable-O0-optnone -Werror -Wall -o /dev/null %s4// RUN: %clang_cc1 -triple aarch64-darwin -S -disable-O0-optnone -Werror -Wall -o /dev/null %s5 6#include <stdint.h>7 8// Ensure that the builtin is defined to take a uint64_t * rather than relying9// on the size of 'unsigned long' which may have different meanings on different10// targets depending on LP64/LLP64.11void test_sme_state_builtin(uint64_t *a,12                            uint64_t *b) __arm_streaming_compatible {13  __builtin_arm_get_sme_state(a, b);14}15