1
1
// NOTE: File has been autogenerated by utils/aarch64_builtins_test_generator.py
2
2
// RUN: %clang_cc1 %s -fsyntax-only -triple aarch64-none-linux-gnu -target-feature +fp8 -target-feature +sme -target-feature +sve -target-feature +sve2 -verify=guard
3
- // RUN: %clang_cc1 %s -fsyntax-only -triple aarch64-none-linux-gnu -target-feature +fp8 -target-feature +sme -target-feature +sme2 -target-feature +sve -verify=streaming-guard
4
- // RUN: %clang_cc1 %s -fsyntax-only -triple aarch64-none-linux-gnu -target-feature +fp8 -target-feature +sme -target-feature +sme2 -target-feature +sve -target-feature +sve2 -verify
3
+ // RUN: %clang_cc1 %s -fsyntax-only -triple aarch64-none-linux-gnu -target-feature +fp8 -target-feature +sme -target-feature +sme2 -target-feature +sve -verify
5
4
// expected-no-diagnostics
6
5
7
6
// REQUIRES: aarch64-registered-target
8
7
9
8
#include <arm_sve.h>
10
9
11
- // Properties: guard="sve,sve2,fp8" streaming_guard="sme,sme2,fp8" flags="feature-dependent"
10
+ // Properties: guard="sve,( sve2|sme2) ,fp8" streaming_guard="sme,sme2,fp8" flags="feature-dependent"
12
11
13
12
void test (void ) {
14
13
fpm_t fpm_t_val ;
@@ -17,53 +16,29 @@ void test(void) {
17
16
svfloat32x2_t svfloat32x2_t_val ;
18
17
svmfloat8_t svmfloat8_t_val ;
19
18
20
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
21
19
svcvt1_bf16_fpm (svmfloat8_t_val , fpm_t_val );
22
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
23
20
svcvt1_bf16_mf8_fpm (svmfloat8_t_val , fpm_t_val );
24
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
25
21
svcvt1_f16_fpm (svmfloat8_t_val , fpm_t_val );
26
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
27
22
svcvt1_f16_mf8_fpm (svmfloat8_t_val , fpm_t_val );
28
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
29
23
svcvt2_bf16_fpm (svmfloat8_t_val , fpm_t_val );
30
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
31
24
svcvt2_bf16_mf8_fpm (svmfloat8_t_val , fpm_t_val );
32
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
33
25
svcvt2_f16_fpm (svmfloat8_t_val , fpm_t_val );
34
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
35
26
svcvt2_f16_mf8_fpm (svmfloat8_t_val , fpm_t_val );
36
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
37
27
svcvtlt1_bf16_fpm (svmfloat8_t_val , fpm_t_val );
38
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
39
28
svcvtlt1_bf16_mf8_fpm (svmfloat8_t_val , fpm_t_val );
40
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
41
29
svcvtlt1_f16_fpm (svmfloat8_t_val , fpm_t_val );
42
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
43
30
svcvtlt1_f16_mf8_fpm (svmfloat8_t_val , fpm_t_val );
44
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
45
31
svcvtlt2_bf16_fpm (svmfloat8_t_val , fpm_t_val );
46
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
47
32
svcvtlt2_bf16_mf8_fpm (svmfloat8_t_val , fpm_t_val );
48
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
49
33
svcvtlt2_f16_fpm (svmfloat8_t_val , fpm_t_val );
50
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
51
34
svcvtlt2_f16_mf8_fpm (svmfloat8_t_val , fpm_t_val );
52
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
53
35
svcvtn_mf8_bf16_x2_fpm (svbfloat16x2_t_val , fpm_t_val );
54
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
55
36
svcvtn_mf8_f16_x2_fpm (svfloat16x2_t_val , fpm_t_val );
56
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
57
37
svcvtn_mf8_fpm (svbfloat16x2_t_val , fpm_t_val );
58
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
59
38
svcvtn_mf8_fpm (svfloat16x2_t_val , fpm_t_val );
60
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
61
39
svcvtnb_mf8_f32_x2_fpm (svfloat32x2_t_val , fpm_t_val );
62
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
63
40
svcvtnb_mf8_fpm (svfloat32x2_t_val , fpm_t_val );
64
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
65
41
svcvtnt_mf8_f32_x2_fpm (svmfloat8_t_val , svfloat32x2_t_val , fpm_t_val );
66
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
67
42
svcvtnt_mf8_fpm (svmfloat8_t_val , svfloat32x2_t_val , fpm_t_val );
68
43
}
69
44
@@ -131,76 +106,52 @@ void test_streaming_compatible(void) __arm_streaming_compatible{
131
106
svfloat32x2_t svfloat32x2_t_val ;
132
107
svmfloat8_t svmfloat8_t_val ;
133
108
134
- // guard-error@+2 {{builtin can only be called from a non-streaming function}}
135
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
109
+ // guard-error@+1 {{builtin can only be called from a non-streaming function}}
136
110
svcvt1_bf16_fpm (svmfloat8_t_val , fpm_t_val );
137
- // guard-error@+2 {{builtin can only be called from a non-streaming function}}
138
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
111
+ // guard-error@+1 {{builtin can only be called from a non-streaming function}}
139
112
svcvt1_bf16_mf8_fpm (svmfloat8_t_val , fpm_t_val );
140
- // guard-error@+2 {{builtin can only be called from a non-streaming function}}
141
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
113
+ // guard-error@+1 {{builtin can only be called from a non-streaming function}}
142
114
svcvt1_f16_fpm (svmfloat8_t_val , fpm_t_val );
143
- // guard-error@+2 {{builtin can only be called from a non-streaming function}}
144
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
115
+ // guard-error@+1 {{builtin can only be called from a non-streaming function}}
145
116
svcvt1_f16_mf8_fpm (svmfloat8_t_val , fpm_t_val );
146
- // guard-error@+2 {{builtin can only be called from a non-streaming function}}
147
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
117
+ // guard-error@+1 {{builtin can only be called from a non-streaming function}}
148
118
svcvt2_bf16_fpm (svmfloat8_t_val , fpm_t_val );
149
- // guard-error@+2 {{builtin can only be called from a non-streaming function}}
150
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
119
+ // guard-error@+1 {{builtin can only be called from a non-streaming function}}
151
120
svcvt2_bf16_mf8_fpm (svmfloat8_t_val , fpm_t_val );
152
- // guard-error@+2 {{builtin can only be called from a non-streaming function}}
153
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
121
+ // guard-error@+1 {{builtin can only be called from a non-streaming function}}
154
122
svcvt2_f16_fpm (svmfloat8_t_val , fpm_t_val );
155
- // guard-error@+2 {{builtin can only be called from a non-streaming function}}
156
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
123
+ // guard-error@+1 {{builtin can only be called from a non-streaming function}}
157
124
svcvt2_f16_mf8_fpm (svmfloat8_t_val , fpm_t_val );
158
- // guard-error@+2 {{builtin can only be called from a non-streaming function}}
159
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
125
+ // guard-error@+1 {{builtin can only be called from a non-streaming function}}
160
126
svcvtlt1_bf16_fpm (svmfloat8_t_val , fpm_t_val );
161
- // guard-error@+2 {{builtin can only be called from a non-streaming function}}
162
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
127
+ // guard-error@+1 {{builtin can only be called from a non-streaming function}}
163
128
svcvtlt1_bf16_mf8_fpm (svmfloat8_t_val , fpm_t_val );
164
- // guard-error@+2 {{builtin can only be called from a non-streaming function}}
165
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
129
+ // guard-error@+1 {{builtin can only be called from a non-streaming function}}
166
130
svcvtlt1_f16_fpm (svmfloat8_t_val , fpm_t_val );
167
- // guard-error@+2 {{builtin can only be called from a non-streaming function}}
168
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
131
+ // guard-error@+1 {{builtin can only be called from a non-streaming function}}
169
132
svcvtlt1_f16_mf8_fpm (svmfloat8_t_val , fpm_t_val );
170
- // guard-error@+2 {{builtin can only be called from a non-streaming function}}
171
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
133
+ // guard-error@+1 {{builtin can only be called from a non-streaming function}}
172
134
svcvtlt2_bf16_fpm (svmfloat8_t_val , fpm_t_val );
173
- // guard-error@+2 {{builtin can only be called from a non-streaming function}}
174
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
135
+ // guard-error@+1 {{builtin can only be called from a non-streaming function}}
175
136
svcvtlt2_bf16_mf8_fpm (svmfloat8_t_val , fpm_t_val );
176
- // guard-error@+2 {{builtin can only be called from a non-streaming function}}
177
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
137
+ // guard-error@+1 {{builtin can only be called from a non-streaming function}}
178
138
svcvtlt2_f16_fpm (svmfloat8_t_val , fpm_t_val );
179
- // guard-error@+2 {{builtin can only be called from a non-streaming function}}
180
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
139
+ // guard-error@+1 {{builtin can only be called from a non-streaming function}}
181
140
svcvtlt2_f16_mf8_fpm (svmfloat8_t_val , fpm_t_val );
182
- // guard-error@+2 {{builtin can only be called from a non-streaming function}}
183
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
141
+ // guard-error@+1 {{builtin can only be called from a non-streaming function}}
184
142
svcvtn_mf8_bf16_x2_fpm (svbfloat16x2_t_val , fpm_t_val );
185
- // guard-error@+2 {{builtin can only be called from a non-streaming function}}
186
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
143
+ // guard-error@+1 {{builtin can only be called from a non-streaming function}}
187
144
svcvtn_mf8_f16_x2_fpm (svfloat16x2_t_val , fpm_t_val );
188
- // guard-error@+2 {{builtin can only be called from a non-streaming function}}
189
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
145
+ // guard-error@+1 {{builtin can only be called from a non-streaming function}}
190
146
svcvtn_mf8_fpm (svbfloat16x2_t_val , fpm_t_val );
191
- // guard-error@+2 {{builtin can only be called from a non-streaming function}}
192
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
147
+ // guard-error@+1 {{builtin can only be called from a non-streaming function}}
193
148
svcvtn_mf8_fpm (svfloat16x2_t_val , fpm_t_val );
194
- // guard-error@+2 {{builtin can only be called from a non-streaming function}}
195
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
149
+ // guard-error@+1 {{builtin can only be called from a non-streaming function}}
196
150
svcvtnb_mf8_f32_x2_fpm (svfloat32x2_t_val , fpm_t_val );
197
- // guard-error@+2 {{builtin can only be called from a non-streaming function}}
198
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
151
+ // guard-error@+1 {{builtin can only be called from a non-streaming function}}
199
152
svcvtnb_mf8_fpm (svfloat32x2_t_val , fpm_t_val );
200
- // guard-error@+2 {{builtin can only be called from a non-streaming function}}
201
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
153
+ // guard-error@+1 {{builtin can only be called from a non-streaming function}}
202
154
svcvtnt_mf8_f32_x2_fpm (svmfloat8_t_val , svfloat32x2_t_val , fpm_t_val );
203
- // guard-error@+2 {{builtin can only be called from a non-streaming function}}
204
- // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
155
+ // guard-error@+1 {{builtin can only be called from a non-streaming function}}
205
156
svcvtnt_mf8_fpm (svmfloat8_t_val , svfloat32x2_t_val , fpm_t_val );
206
157
}
0 commit comments