Debian Codegraph @

clang/test/Sema/AArch64/arm_sve_non_streaming_only_sve_AND_sve-sm4.c

raw
1 // NOTE: File has been autogenerated by utils/aarch64_builtins_test_generator.py
2 // RUN: %clang_cc1 %s -fsyntax-only -triple aarch64-none-linux-gnu -target-feature +sme -target-feature +sve -target-feature +sve-sm4 -verify=guard
3
4 // REQUIRES: aarch64-registered-target
5
6 #include <arm_sve.h>
7
8 // Properties: guard="sve,sve-sm4" streaming_guard="" flags=""
9
10 void test(void) {
11 svuint32_t svuint32_t_val;
12
13 svsm4e(svuint32_t_val, svuint32_t_val);
14 svsm4e_u32(svuint32_t_val, svuint32_t_val);
15 svsm4ekey(svuint32_t_val, svuint32_t_val);
16 svsm4ekey_u32(svuint32_t_val, svuint32_t_val);
17 }
18
19 void test_streaming(void) __arm_streaming{
20 svuint32_t svuint32_t_val;
21
22 // guard-error@+1 {{builtin can only be called from a non-streaming function}}
23 svsm4e(svuint32_t_val, svuint32_t_val);
24 // guard-error@+1 {{builtin can only be called from a non-streaming function}}
25 svsm4e_u32(svuint32_t_val, svuint32_t_val);
26 // guard-error@+1 {{builtin can only be called from a non-streaming function}}
27 svsm4ekey(svuint32_t_val, svuint32_t_val);
28 // guard-error@+1 {{builtin can only be called from a non-streaming function}}
29 svsm4ekey_u32(svuint32_t_val, svuint32_t_val);
30 }
31
32 void test_streaming_compatible(void) __arm_streaming_compatible{
33 svuint32_t svuint32_t_val;
34
35 // guard-error@+1 {{builtin can only be called from a non-streaming function}}
36 svsm4e(svuint32_t_val, svuint32_t_val);
37 // guard-error@+1 {{builtin can only be called from a non-streaming function}}
38 svsm4e_u32(svuint32_t_val, svuint32_t_val);
39 // guard-error@+1 {{builtin can only be called from a non-streaming function}}
40 svsm4ekey(svuint32_t_val, svuint32_t_val);
41 // guard-error@+1 {{builtin can only be called from a non-streaming function}}
42 svsm4ekey_u32(svuint32_t_val, svuint32_t_val);
43 }