Debian Codegraph @

clang/test/Sema/AArch64/arm_sve_streaming_only_sme_AND_sme2p2.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 +sme2p2 -target-feature +sve -verify=streaming-guard
3
4 // REQUIRES: aarch64-registered-target
5
6 #include <arm_sve.h>
7
8 // Properties: guard="" streaming_guard="sme,sme2p2" flags="streaming-only"
9
10 void test(void) {
11 svfloat16_t svfloat16_t_val;
12 svfloat16x2_t svfloat16x2_t_val;
13 svfloat16x4_t svfloat16x4_t_val;
14 svfloat32_t svfloat32_t_val;
15 svfloat32x2_t svfloat32x2_t_val;
16 svfloat32x4_t svfloat32x4_t_val;
17 svfloat64_t svfloat64_t_val;
18 svfloat64x2_t svfloat64x2_t_val;
19 svfloat64x4_t svfloat64x4_t_val;
20
21 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
22 svmul(svfloat16x2_t_val, svfloat16_t_val);
23 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
24 svmul(svfloat16x2_t_val, svfloat16x2_t_val);
25 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
26 svmul(svfloat16x4_t_val, svfloat16_t_val);
27 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
28 svmul(svfloat16x4_t_val, svfloat16x4_t_val);
29 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
30 svmul(svfloat32x2_t_val, svfloat32_t_val);
31 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
32 svmul(svfloat32x2_t_val, svfloat32x2_t_val);
33 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
34 svmul(svfloat32x4_t_val, svfloat32_t_val);
35 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
36 svmul(svfloat32x4_t_val, svfloat32x4_t_val);
37 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
38 svmul(svfloat64x2_t_val, svfloat64_t_val);
39 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
40 svmul(svfloat64x2_t_val, svfloat64x2_t_val);
41 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
42 svmul(svfloat64x4_t_val, svfloat64_t_val);
43 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
44 svmul(svfloat64x4_t_val, svfloat64x4_t_val);
45 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
46 svmul_f16_x2(svfloat16x2_t_val, svfloat16x2_t_val);
47 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
48 svmul_f16_x4(svfloat16x4_t_val, svfloat16x4_t_val);
49 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
50 svmul_f32_x2(svfloat32x2_t_val, svfloat32x2_t_val);
51 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
52 svmul_f32_x4(svfloat32x4_t_val, svfloat32x4_t_val);
53 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
54 svmul_f64_x2(svfloat64x2_t_val, svfloat64x2_t_val);
55 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
56 svmul_f64_x4(svfloat64x4_t_val, svfloat64x4_t_val);
57 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
58 svmul_single_f16_x2(svfloat16x2_t_val, svfloat16_t_val);
59 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
60 svmul_single_f16_x4(svfloat16x4_t_val, svfloat16_t_val);
61 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
62 svmul_single_f32_x2(svfloat32x2_t_val, svfloat32_t_val);
63 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
64 svmul_single_f32_x4(svfloat32x4_t_val, svfloat32_t_val);
65 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
66 svmul_single_f64_x2(svfloat64x2_t_val, svfloat64_t_val);
67 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
68 svmul_single_f64_x4(svfloat64x4_t_val, svfloat64_t_val);
69 }
70
71 void test_streaming(void) __arm_streaming{
72 svfloat16_t svfloat16_t_val;
73 svfloat16x2_t svfloat16x2_t_val;
74 svfloat16x4_t svfloat16x4_t_val;
75 svfloat32_t svfloat32_t_val;
76 svfloat32x2_t svfloat32x2_t_val;
77 svfloat32x4_t svfloat32x4_t_val;
78 svfloat64_t svfloat64_t_val;
79 svfloat64x2_t svfloat64x2_t_val;
80 svfloat64x4_t svfloat64x4_t_val;
81
82 svmul(svfloat16x2_t_val, svfloat16_t_val);
83 svmul(svfloat16x2_t_val, svfloat16x2_t_val);
84 svmul(svfloat16x4_t_val, svfloat16_t_val);
85 svmul(svfloat16x4_t_val, svfloat16x4_t_val);
86 svmul(svfloat32x2_t_val, svfloat32_t_val);
87 svmul(svfloat32x2_t_val, svfloat32x2_t_val);
88 svmul(svfloat32x4_t_val, svfloat32_t_val);
89 svmul(svfloat32x4_t_val, svfloat32x4_t_val);
90 svmul(svfloat64x2_t_val, svfloat64_t_val);
91 svmul(svfloat64x2_t_val, svfloat64x2_t_val);
92 svmul(svfloat64x4_t_val, svfloat64_t_val);
93 svmul(svfloat64x4_t_val, svfloat64x4_t_val);
94 svmul_f16_x2(svfloat16x2_t_val, svfloat16x2_t_val);
95 svmul_f16_x4(svfloat16x4_t_val, svfloat16x4_t_val);
96 svmul_f32_x2(svfloat32x2_t_val, svfloat32x2_t_val);
97 svmul_f32_x4(svfloat32x4_t_val, svfloat32x4_t_val);
98 svmul_f64_x2(svfloat64x2_t_val, svfloat64x2_t_val);
99 svmul_f64_x4(svfloat64x4_t_val, svfloat64x4_t_val);
100 svmul_single_f16_x2(svfloat16x2_t_val, svfloat16_t_val);
101 svmul_single_f16_x4(svfloat16x4_t_val, svfloat16_t_val);
102 svmul_single_f32_x2(svfloat32x2_t_val, svfloat32_t_val);
103 svmul_single_f32_x4(svfloat32x4_t_val, svfloat32_t_val);
104 svmul_single_f64_x2(svfloat64x2_t_val, svfloat64_t_val);
105 svmul_single_f64_x4(svfloat64x4_t_val, svfloat64_t_val);
106 }
107
108 void test_streaming_compatible(void) __arm_streaming_compatible{
109 svfloat16_t svfloat16_t_val;
110 svfloat16x2_t svfloat16x2_t_val;
111 svfloat16x4_t svfloat16x4_t_val;
112 svfloat32_t svfloat32_t_val;
113 svfloat32x2_t svfloat32x2_t_val;
114 svfloat32x4_t svfloat32x4_t_val;
115 svfloat64_t svfloat64_t_val;
116 svfloat64x2_t svfloat64x2_t_val;
117 svfloat64x4_t svfloat64x4_t_val;
118
119 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
120 svmul(svfloat16x2_t_val, svfloat16_t_val);
121 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
122 svmul(svfloat16x2_t_val, svfloat16x2_t_val);
123 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
124 svmul(svfloat16x4_t_val, svfloat16_t_val);
125 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
126 svmul(svfloat16x4_t_val, svfloat16x4_t_val);
127 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
128 svmul(svfloat32x2_t_val, svfloat32_t_val);
129 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
130 svmul(svfloat32x2_t_val, svfloat32x2_t_val);
131 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
132 svmul(svfloat32x4_t_val, svfloat32_t_val);
133 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
134 svmul(svfloat32x4_t_val, svfloat32x4_t_val);
135 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
136 svmul(svfloat64x2_t_val, svfloat64_t_val);
137 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
138 svmul(svfloat64x2_t_val, svfloat64x2_t_val);
139 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
140 svmul(svfloat64x4_t_val, svfloat64_t_val);
141 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
142 svmul(svfloat64x4_t_val, svfloat64x4_t_val);
143 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
144 svmul_f16_x2(svfloat16x2_t_val, svfloat16x2_t_val);
145 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
146 svmul_f16_x4(svfloat16x4_t_val, svfloat16x4_t_val);
147 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
148 svmul_f32_x2(svfloat32x2_t_val, svfloat32x2_t_val);
149 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
150 svmul_f32_x4(svfloat32x4_t_val, svfloat32x4_t_val);
151 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
152 svmul_f64_x2(svfloat64x2_t_val, svfloat64x2_t_val);
153 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
154 svmul_f64_x4(svfloat64x4_t_val, svfloat64x4_t_val);
155 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
156 svmul_single_f16_x2(svfloat16x2_t_val, svfloat16_t_val);
157 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
158 svmul_single_f16_x4(svfloat16x4_t_val, svfloat16_t_val);
159 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
160 svmul_single_f32_x2(svfloat32x2_t_val, svfloat32_t_val);
161 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
162 svmul_single_f32_x4(svfloat32x4_t_val, svfloat32_t_val);
163 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
164 svmul_single_f64_x2(svfloat64x2_t_val, svfloat64_t_val);
165 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
166 svmul_single_f64_x4(svfloat64x4_t_val, svfloat64_t_val);
167 }