Debian Codegraph @

clang/test/Sema/AArch64/arm_sme_streaming_only_sme_AND_sme-b16b16.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 +sme-b16b16 -target-feature +sve -verify=streaming-guard
3
4 // REQUIRES: aarch64-registered-target
5
6 #include <arm_sme.h>
7
8 // Properties: guard="" streaming_guard="sme,sme-b16b16" flags="streaming-only,requires-za"
9
10 void test(void) __arm_inout("za"){
11 svbfloat16_t svbfloat16_t_val;
12 svbfloat16x2_t svbfloat16x2_t_val;
13 svbfloat16x4_t svbfloat16x4_t_val;
14 svbool_t svbool_t_val;
15 uint32_t uint32_t_val;
16
17 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
18 svadd_za16_bf16_vg1x2(uint32_t_val, svbfloat16x2_t_val);
19 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
20 svadd_za16_bf16_vg1x4(uint32_t_val, svbfloat16x4_t_val);
21 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
22 svadd_za16_vg1x2(uint32_t_val, svbfloat16x2_t_val);
23 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
24 svadd_za16_vg1x4(uint32_t_val, svbfloat16x4_t_val);
25 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
26 svmla_lane_za16_bf16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16_t_val, 2);
27 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
28 svmla_lane_za16_bf16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16_t_val, 2);
29 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
30 svmla_lane_za16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16_t_val, 2);
31 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
32 svmla_lane_za16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16_t_val, 2);
33 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
34 svmla_single_za16_bf16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16_t_val);
35 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
36 svmla_single_za16_bf16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16_t_val);
37 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
38 svmla_za16_bf16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16x2_t_val);
39 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
40 svmla_za16_bf16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16x4_t_val);
41 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
42 svmla_za16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16_t_val);
43 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
44 svmla_za16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16x2_t_val);
45 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
46 svmla_za16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16_t_val);
47 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
48 svmla_za16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16x4_t_val);
49 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
50 svmls_lane_za16_bf16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16_t_val, 2);
51 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
52 svmls_lane_za16_bf16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16_t_val, 2);
53 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
54 svmls_lane_za16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16_t_val, 2);
55 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
56 svmls_lane_za16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16_t_val, 2);
57 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
58 svmls_single_za16_bf16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16_t_val);
59 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
60 svmls_single_za16_bf16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16_t_val);
61 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
62 svmls_za16_bf16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16x2_t_val);
63 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
64 svmls_za16_bf16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16x4_t_val);
65 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
66 svmls_za16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16_t_val);
67 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
68 svmls_za16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16x2_t_val);
69 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
70 svmls_za16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16_t_val);
71 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
72 svmls_za16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16x4_t_val);
73 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
74 svmopa_za16_bf16_m(1, svbool_t_val, svbool_t_val, svbfloat16_t_val, svbfloat16_t_val);
75 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
76 svmopa_za16_m(1, svbool_t_val, svbool_t_val, svbfloat16_t_val, svbfloat16_t_val);
77 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
78 svmops_za16_bf16_m(1, svbool_t_val, svbool_t_val, svbfloat16_t_val, svbfloat16_t_val);
79 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
80 svmops_za16_m(1, svbool_t_val, svbool_t_val, svbfloat16_t_val, svbfloat16_t_val);
81 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
82 svsub_za16_bf16_vg1x2(uint32_t_val, svbfloat16x2_t_val);
83 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
84 svsub_za16_bf16_vg1x4(uint32_t_val, svbfloat16x4_t_val);
85 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
86 svsub_za16_vg1x2(uint32_t_val, svbfloat16x2_t_val);
87 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
88 svsub_za16_vg1x4(uint32_t_val, svbfloat16x4_t_val);
89 }
90
91 void test_streaming(void) __arm_streaming __arm_inout("za"){
92 svbfloat16_t svbfloat16_t_val;
93 svbfloat16x2_t svbfloat16x2_t_val;
94 svbfloat16x4_t svbfloat16x4_t_val;
95 svbool_t svbool_t_val;
96 uint32_t uint32_t_val;
97
98 svadd_za16_bf16_vg1x2(uint32_t_val, svbfloat16x2_t_val);
99 svadd_za16_bf16_vg1x4(uint32_t_val, svbfloat16x4_t_val);
100 svadd_za16_vg1x2(uint32_t_val, svbfloat16x2_t_val);
101 svadd_za16_vg1x4(uint32_t_val, svbfloat16x4_t_val);
102 svmla_lane_za16_bf16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16_t_val, 2);
103 svmla_lane_za16_bf16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16_t_val, 2);
104 svmla_lane_za16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16_t_val, 2);
105 svmla_lane_za16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16_t_val, 2);
106 svmla_single_za16_bf16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16_t_val);
107 svmla_single_za16_bf16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16_t_val);
108 svmla_za16_bf16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16x2_t_val);
109 svmla_za16_bf16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16x4_t_val);
110 svmla_za16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16_t_val);
111 svmla_za16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16x2_t_val);
112 svmla_za16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16_t_val);
113 svmla_za16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16x4_t_val);
114 svmls_lane_za16_bf16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16_t_val, 2);
115 svmls_lane_za16_bf16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16_t_val, 2);
116 svmls_lane_za16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16_t_val, 2);
117 svmls_lane_za16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16_t_val, 2);
118 svmls_single_za16_bf16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16_t_val);
119 svmls_single_za16_bf16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16_t_val);
120 svmls_za16_bf16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16x2_t_val);
121 svmls_za16_bf16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16x4_t_val);
122 svmls_za16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16_t_val);
123 svmls_za16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16x2_t_val);
124 svmls_za16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16_t_val);
125 svmls_za16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16x4_t_val);
126 svmopa_za16_bf16_m(1, svbool_t_val, svbool_t_val, svbfloat16_t_val, svbfloat16_t_val);
127 svmopa_za16_m(1, svbool_t_val, svbool_t_val, svbfloat16_t_val, svbfloat16_t_val);
128 svmops_za16_bf16_m(1, svbool_t_val, svbool_t_val, svbfloat16_t_val, svbfloat16_t_val);
129 svmops_za16_m(1, svbool_t_val, svbool_t_val, svbfloat16_t_val, svbfloat16_t_val);
130 svsub_za16_bf16_vg1x2(uint32_t_val, svbfloat16x2_t_val);
131 svsub_za16_bf16_vg1x4(uint32_t_val, svbfloat16x4_t_val);
132 svsub_za16_vg1x2(uint32_t_val, svbfloat16x2_t_val);
133 svsub_za16_vg1x4(uint32_t_val, svbfloat16x4_t_val);
134 }
135
136 void test_streaming_compatible(void) __arm_streaming_compatible __arm_inout("za"){
137 svbfloat16_t svbfloat16_t_val;
138 svbfloat16x2_t svbfloat16x2_t_val;
139 svbfloat16x4_t svbfloat16x4_t_val;
140 svbool_t svbool_t_val;
141 uint32_t uint32_t_val;
142
143 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
144 svadd_za16_bf16_vg1x2(uint32_t_val, svbfloat16x2_t_val);
145 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
146 svadd_za16_bf16_vg1x4(uint32_t_val, svbfloat16x4_t_val);
147 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
148 svadd_za16_vg1x2(uint32_t_val, svbfloat16x2_t_val);
149 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
150 svadd_za16_vg1x4(uint32_t_val, svbfloat16x4_t_val);
151 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
152 svmla_lane_za16_bf16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16_t_val, 2);
153 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
154 svmla_lane_za16_bf16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16_t_val, 2);
155 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
156 svmla_lane_za16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16_t_val, 2);
157 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
158 svmla_lane_za16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16_t_val, 2);
159 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
160 svmla_single_za16_bf16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16_t_val);
161 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
162 svmla_single_za16_bf16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16_t_val);
163 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
164 svmla_za16_bf16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16x2_t_val);
165 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
166 svmla_za16_bf16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16x4_t_val);
167 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
168 svmla_za16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16_t_val);
169 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
170 svmla_za16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16x2_t_val);
171 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
172 svmla_za16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16_t_val);
173 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
174 svmla_za16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16x4_t_val);
175 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
176 svmls_lane_za16_bf16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16_t_val, 2);
177 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
178 svmls_lane_za16_bf16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16_t_val, 2);
179 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
180 svmls_lane_za16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16_t_val, 2);
181 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
182 svmls_lane_za16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16_t_val, 2);
183 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
184 svmls_single_za16_bf16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16_t_val);
185 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
186 svmls_single_za16_bf16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16_t_val);
187 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
188 svmls_za16_bf16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16x2_t_val);
189 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
190 svmls_za16_bf16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16x4_t_val);
191 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
192 svmls_za16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16_t_val);
193 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
194 svmls_za16_vg1x2(uint32_t_val, svbfloat16x2_t_val, svbfloat16x2_t_val);
195 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
196 svmls_za16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16_t_val);
197 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
198 svmls_za16_vg1x4(uint32_t_val, svbfloat16x4_t_val, svbfloat16x4_t_val);
199 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
200 svmopa_za16_bf16_m(1, svbool_t_val, svbool_t_val, svbfloat16_t_val, svbfloat16_t_val);
201 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
202 svmopa_za16_m(1, svbool_t_val, svbool_t_val, svbfloat16_t_val, svbfloat16_t_val);
203 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
204 svmops_za16_bf16_m(1, svbool_t_val, svbool_t_val, svbfloat16_t_val, svbfloat16_t_val);
205 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
206 svmops_za16_m(1, svbool_t_val, svbool_t_val, svbfloat16_t_val, svbfloat16_t_val);
207 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
208 svsub_za16_bf16_vg1x2(uint32_t_val, svbfloat16x2_t_val);
209 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
210 svsub_za16_bf16_vg1x4(uint32_t_val, svbfloat16x4_t_val);
211 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
212 svsub_za16_vg1x2(uint32_t_val, svbfloat16x2_t_val);
213 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
214 svsub_za16_vg1x4(uint32_t_val, svbfloat16x4_t_val);
215 }