Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/svlast256_run.c

raw
1 /* { dg-do run { target aarch64_sve256_hw } } */
2 /* { dg-options "-O3 -msve-vector-bits=256 -std=gnu99" } */
3
4 #include "svlast.c"
5
6 int
7 main (void)
8 {
9 int8_t res_8_SV_VL1__a = 1;
10 int8_t res_8_SV_VL2__a = 2;
11 int8_t res_8_SV_VL3__a = 3;
12 int8_t res_8_SV_VL4__a = 4;
13 int8_t res_8_SV_VL5__a = 5;
14 int8_t res_8_SV_VL6__a = 6;
15 int8_t res_8_SV_VL7__a = 7;
16 int8_t res_8_SV_VL8__a = 8;
17 int8_t res_8_SV_VL16__a = 16;
18 uint8_t res_8_SV_VL1_u_a = 1;
19 uint8_t res_8_SV_VL2_u_a = 2;
20 uint8_t res_8_SV_VL3_u_a = 3;
21 uint8_t res_8_SV_VL4_u_a = 4;
22 uint8_t res_8_SV_VL5_u_a = 5;
23 uint8_t res_8_SV_VL6_u_a = 6;
24 uint8_t res_8_SV_VL7_u_a = 7;
25 uint8_t res_8_SV_VL8_u_a = 8;
26 uint8_t res_8_SV_VL16_u_a = 16;
27 int16_t res_16_SV_VL1__a = 1;
28 int16_t res_16_SV_VL2__a = 2;
29 int16_t res_16_SV_VL3__a = 3;
30 int16_t res_16_SV_VL4__a = 4;
31 int16_t res_16_SV_VL5__a = 5;
32 int16_t res_16_SV_VL6__a = 6;
33 int16_t res_16_SV_VL7__a = 7;
34 int16_t res_16_SV_VL8__a = 8;
35 int16_t res_16_SV_VL16__a = 0;
36 uint16_t res_16_SV_VL1_u_a = 1;
37 uint16_t res_16_SV_VL2_u_a = 2;
38 uint16_t res_16_SV_VL3_u_a = 3;
39 uint16_t res_16_SV_VL4_u_a = 4;
40 uint16_t res_16_SV_VL5_u_a = 5;
41 uint16_t res_16_SV_VL6_u_a = 6;
42 uint16_t res_16_SV_VL7_u_a = 7;
43 uint16_t res_16_SV_VL8_u_a = 8;
44 uint16_t res_16_SV_VL16_u_a = 0;
45 int32_t res_32_SV_VL1__a = 1;
46 int32_t res_32_SV_VL2__a = 2;
47 int32_t res_32_SV_VL3__a = 3;
48 int32_t res_32_SV_VL4__a = 4;
49 int32_t res_32_SV_VL5__a = 5;
50 int32_t res_32_SV_VL6__a = 6;
51 int32_t res_32_SV_VL7__a = 7;
52 int32_t res_32_SV_VL8__a = 0;
53 int32_t res_32_SV_VL16__a = 0;
54 uint32_t res_32_SV_VL1_u_a = 1;
55 uint32_t res_32_SV_VL2_u_a = 2;
56 uint32_t res_32_SV_VL3_u_a = 3;
57 uint32_t res_32_SV_VL4_u_a = 4;
58 uint32_t res_32_SV_VL5_u_a = 5;
59 uint32_t res_32_SV_VL6_u_a = 6;
60 uint32_t res_32_SV_VL7_u_a = 7;
61 uint32_t res_32_SV_VL8_u_a = 0;
62 uint32_t res_32_SV_VL16_u_a = 0;
63 int64_t res_64_SV_VL1__a = 1;
64 int64_t res_64_SV_VL2__a = 2;
65 int64_t res_64_SV_VL3__a = 3;
66 int64_t res_64_SV_VL4__a = 0;
67 int64_t res_64_SV_VL5__a = 0;
68 int64_t res_64_SV_VL6__a = 0;
69 int64_t res_64_SV_VL7__a = 0;
70 int64_t res_64_SV_VL8__a = 0;
71 int64_t res_64_SV_VL16__a = 0;
72 uint64_t res_64_SV_VL1_u_a = 1;
73 uint64_t res_64_SV_VL2_u_a = 2;
74 uint64_t res_64_SV_VL3_u_a = 3;
75 uint64_t res_64_SV_VL4_u_a = 0;
76 uint64_t res_64_SV_VL5_u_a = 0;
77 uint64_t res_64_SV_VL6_u_a = 0;
78 uint64_t res_64_SV_VL7_u_a = 0;
79 uint64_t res_64_SV_VL8_u_a = 0;
80 uint64_t res_64_SV_VL16_u_a = 0;
81 int8_t res_8_SV_VL1__b = 0;
82 int8_t res_8_SV_VL2__b = 1;
83 int8_t res_8_SV_VL3__b = 2;
84 int8_t res_8_SV_VL4__b = 3;
85 int8_t res_8_SV_VL5__b = 4;
86 int8_t res_8_SV_VL6__b = 5;
87 int8_t res_8_SV_VL7__b = 6;
88 int8_t res_8_SV_VL8__b = 7;
89 int8_t res_8_SV_VL16__b = 15;
90 uint8_t res_8_SV_VL1_u_b = 0;
91 uint8_t res_8_SV_VL2_u_b = 1;
92 uint8_t res_8_SV_VL3_u_b = 2;
93 uint8_t res_8_SV_VL4_u_b = 3;
94 uint8_t res_8_SV_VL5_u_b = 4;
95 uint8_t res_8_SV_VL6_u_b = 5;
96 uint8_t res_8_SV_VL7_u_b = 6;
97 uint8_t res_8_SV_VL8_u_b = 7;
98 uint8_t res_8_SV_VL16_u_b = 15;
99 int16_t res_16_SV_VL1__b = 0;
100 int16_t res_16_SV_VL2__b = 1;
101 int16_t res_16_SV_VL3__b = 2;
102 int16_t res_16_SV_VL4__b = 3;
103 int16_t res_16_SV_VL5__b = 4;
104 int16_t res_16_SV_VL6__b = 5;
105 int16_t res_16_SV_VL7__b = 6;
106 int16_t res_16_SV_VL8__b = 7;
107 int16_t res_16_SV_VL16__b = 15;
108 uint16_t res_16_SV_VL1_u_b = 0;
109 uint16_t res_16_SV_VL2_u_b = 1;
110 uint16_t res_16_SV_VL3_u_b = 2;
111 uint16_t res_16_SV_VL4_u_b = 3;
112 uint16_t res_16_SV_VL5_u_b = 4;
113 uint16_t res_16_SV_VL6_u_b = 5;
114 uint16_t res_16_SV_VL7_u_b = 6;
115 uint16_t res_16_SV_VL8_u_b = 7;
116 uint16_t res_16_SV_VL16_u_b = 15;
117 int32_t res_32_SV_VL1__b = 0;
118 int32_t res_32_SV_VL2__b = 1;
119 int32_t res_32_SV_VL3__b = 2;
120 int32_t res_32_SV_VL4__b = 3;
121 int32_t res_32_SV_VL5__b = 4;
122 int32_t res_32_SV_VL6__b = 5;
123 int32_t res_32_SV_VL7__b = 6;
124 int32_t res_32_SV_VL8__b = 7;
125 int32_t res_32_SV_VL16__b = 7;
126 uint32_t res_32_SV_VL1_u_b = 0;
127 uint32_t res_32_SV_VL2_u_b = 1;
128 uint32_t res_32_SV_VL3_u_b = 2;
129 uint32_t res_32_SV_VL4_u_b = 3;
130 uint32_t res_32_SV_VL5_u_b = 4;
131 uint32_t res_32_SV_VL6_u_b = 5;
132 uint32_t res_32_SV_VL7_u_b = 6;
133 uint32_t res_32_SV_VL8_u_b = 7;
134 uint32_t res_32_SV_VL16_u_b = 7;
135 int64_t res_64_SV_VL1__b = 0;
136 int64_t res_64_SV_VL2__b = 1;
137 int64_t res_64_SV_VL3__b = 2;
138 int64_t res_64_SV_VL4__b = 3;
139 int64_t res_64_SV_VL5__b = 3;
140 int64_t res_64_SV_VL6__b = 3;
141 int64_t res_64_SV_VL7__b = 3;
142 int64_t res_64_SV_VL8__b = 3;
143 int64_t res_64_SV_VL16__b = 3;
144 uint64_t res_64_SV_VL1_u_b = 0;
145 uint64_t res_64_SV_VL2_u_b = 1;
146 uint64_t res_64_SV_VL3_u_b = 2;
147 uint64_t res_64_SV_VL4_u_b = 3;
148 uint64_t res_64_SV_VL5_u_b = 3;
149 uint64_t res_64_SV_VL6_u_b = 3;
150 uint64_t res_64_SV_VL7_u_b = 3;
151 uint64_t res_64_SV_VL8_u_b = 3;
152 uint64_t res_64_SV_VL16_u_b = 3;
153
154 int8_t res_8_SV_VL1__a_false = 0;
155 int8_t res_8_SV_VL2__a_false = 0;
156 int8_t res_8_SV_VL3__a_false = 0;
157 int8_t res_8_SV_VL4__a_false = 0;
158 int8_t res_8_SV_VL5__a_false = 0;
159 int8_t res_8_SV_VL6__a_false = 0;
160 int8_t res_8_SV_VL7__a_false = 0;
161 int8_t res_8_SV_VL8__a_false = 0;
162 int8_t res_8_SV_VL16__a_false = 0;
163 uint8_t res_8_SV_VL1_u_a_false = 0;
164 uint8_t res_8_SV_VL2_u_a_false = 0;
165 uint8_t res_8_SV_VL3_u_a_false = 0;
166 uint8_t res_8_SV_VL4_u_a_false = 0;
167 uint8_t res_8_SV_VL5_u_a_false = 0;
168 uint8_t res_8_SV_VL6_u_a_false = 0;
169 uint8_t res_8_SV_VL7_u_a_false = 0;
170 uint8_t res_8_SV_VL8_u_a_false = 0;
171 uint8_t res_8_SV_VL16_u_a_false = 0;
172 int16_t res_16_SV_VL1__a_false = 0;
173 int16_t res_16_SV_VL2__a_false = 0;
174 int16_t res_16_SV_VL3__a_false = 0;
175 int16_t res_16_SV_VL4__a_false = 0;
176 int16_t res_16_SV_VL5__a_false = 0;
177 int16_t res_16_SV_VL6__a_false = 0;
178 int16_t res_16_SV_VL7__a_false = 0;
179 int16_t res_16_SV_VL8__a_false = 0;
180 int16_t res_16_SV_VL16__a_false = 0;
181 uint16_t res_16_SV_VL1_u_a_false = 0;
182 uint16_t res_16_SV_VL2_u_a_false = 0;
183 uint16_t res_16_SV_VL3_u_a_false = 0;
184 uint16_t res_16_SV_VL4_u_a_false = 0;
185 uint16_t res_16_SV_VL5_u_a_false = 0;
186 uint16_t res_16_SV_VL6_u_a_false = 0;
187 uint16_t res_16_SV_VL7_u_a_false = 0;
188 uint16_t res_16_SV_VL8_u_a_false = 0;
189 uint16_t res_16_SV_VL16_u_a_false = 0;
190 int32_t res_32_SV_VL1__a_false = 0;
191 int32_t res_32_SV_VL2__a_false = 0;
192 int32_t res_32_SV_VL3__a_false = 0;
193 int32_t res_32_SV_VL4__a_false = 0;
194 int32_t res_32_SV_VL5__a_false = 0;
195 int32_t res_32_SV_VL6__a_false = 0;
196 int32_t res_32_SV_VL7__a_false = 0;
197 int32_t res_32_SV_VL8__a_false = 0;
198 int32_t res_32_SV_VL16__a_false = 0;
199 uint32_t res_32_SV_VL1_u_a_false = 0;
200 uint32_t res_32_SV_VL2_u_a_false = 0;
201 uint32_t res_32_SV_VL3_u_a_false = 0;
202 uint32_t res_32_SV_VL4_u_a_false = 0;
203 uint32_t res_32_SV_VL5_u_a_false = 0;
204 uint32_t res_32_SV_VL6_u_a_false = 0;
205 uint32_t res_32_SV_VL7_u_a_false = 0;
206 uint32_t res_32_SV_VL8_u_a_false = 0;
207 uint32_t res_32_SV_VL16_u_a_false = 0;
208 int64_t res_64_SV_VL1__a_false = 0;
209 int64_t res_64_SV_VL2__a_false = 0;
210 int64_t res_64_SV_VL3__a_false = 0;
211 int64_t res_64_SV_VL4__a_false = 0;
212 int64_t res_64_SV_VL5__a_false = 0;
213 int64_t res_64_SV_VL6__a_false = 0;
214 int64_t res_64_SV_VL7__a_false = 0;
215 int64_t res_64_SV_VL8__a_false = 0;
216 int64_t res_64_SV_VL16__a_false = 0;
217 uint64_t res_64_SV_VL1_u_a_false = 0;
218 uint64_t res_64_SV_VL2_u_a_false = 0;
219 uint64_t res_64_SV_VL3_u_a_false = 0;
220 uint64_t res_64_SV_VL4_u_a_false = 0;
221 uint64_t res_64_SV_VL5_u_a_false = 0;
222 uint64_t res_64_SV_VL6_u_a_false = 0;
223 uint64_t res_64_SV_VL7_u_a_false = 0;
224 uint64_t res_64_SV_VL8_u_a_false = 0;
225 uint64_t res_64_SV_VL16_u_a_false = 0;
226 int8_t res_8_SV_VL1__b_false = 31;
227 int8_t res_8_SV_VL2__b_false = 31;
228 int8_t res_8_SV_VL3__b_false = 31;
229 int8_t res_8_SV_VL4__b_false = 31;
230 int8_t res_8_SV_VL5__b_false = 31;
231 int8_t res_8_SV_VL6__b_false = 31;
232 int8_t res_8_SV_VL7__b_false = 31;
233 int8_t res_8_SV_VL8__b_false = 31;
234 int8_t res_8_SV_VL16__b_false = 31;
235 uint8_t res_8_SV_VL1_u_b_false = 31;
236 uint8_t res_8_SV_VL2_u_b_false = 31;
237 uint8_t res_8_SV_VL3_u_b_false = 31;
238 uint8_t res_8_SV_VL4_u_b_false = 31;
239 uint8_t res_8_SV_VL5_u_b_false = 31;
240 uint8_t res_8_SV_VL6_u_b_false = 31;
241 uint8_t res_8_SV_VL7_u_b_false = 31;
242 uint8_t res_8_SV_VL8_u_b_false = 31;
243 uint8_t res_8_SV_VL16_u_b_false = 31;
244 int16_t res_16_SV_VL1__b_false = 15;
245 int16_t res_16_SV_VL2__b_false = 15;
246 int16_t res_16_SV_VL3__b_false = 15;
247 int16_t res_16_SV_VL4__b_false = 15;
248 int16_t res_16_SV_VL5__b_false = 15;
249 int16_t res_16_SV_VL6__b_false = 15;
250 int16_t res_16_SV_VL7__b_false = 15;
251 int16_t res_16_SV_VL8__b_false = 15;
252 int16_t res_16_SV_VL16__b_false = 15;
253 uint16_t res_16_SV_VL1_u_b_false = 15;
254 uint16_t res_16_SV_VL2_u_b_false = 15;
255 uint16_t res_16_SV_VL3_u_b_false = 15;
256 uint16_t res_16_SV_VL4_u_b_false = 15;
257 uint16_t res_16_SV_VL5_u_b_false = 15;
258 uint16_t res_16_SV_VL6_u_b_false = 15;
259 uint16_t res_16_SV_VL7_u_b_false = 15;
260 uint16_t res_16_SV_VL8_u_b_false = 15;
261 uint16_t res_16_SV_VL16_u_b_false = 15;
262 int32_t res_32_SV_VL1__b_false = 7;
263 int32_t res_32_SV_VL2__b_false = 7;
264 int32_t res_32_SV_VL3__b_false = 7;
265 int32_t res_32_SV_VL4__b_false = 7;
266 int32_t res_32_SV_VL5__b_false = 7;
267 int32_t res_32_SV_VL6__b_false = 7;
268 int32_t res_32_SV_VL7__b_false = 7;
269 int32_t res_32_SV_VL8__b_false = 7;
270 int32_t res_32_SV_VL16__b_false = 7;
271 uint32_t res_32_SV_VL1_u_b_false = 7;
272 uint32_t res_32_SV_VL2_u_b_false = 7;
273 uint32_t res_32_SV_VL3_u_b_false = 7;
274 uint32_t res_32_SV_VL4_u_b_false = 7;
275 uint32_t res_32_SV_VL5_u_b_false = 7;
276 uint32_t res_32_SV_VL6_u_b_false = 7;
277 uint32_t res_32_SV_VL7_u_b_false = 7;
278 uint32_t res_32_SV_VL8_u_b_false = 7;
279 uint32_t res_32_SV_VL16_u_b_false = 7;
280 int64_t res_64_SV_VL1__b_false = 3;
281 int64_t res_64_SV_VL2__b_false = 3;
282 int64_t res_64_SV_VL3__b_false = 3;
283 int64_t res_64_SV_VL4__b_false = 3;
284 int64_t res_64_SV_VL5__b_false = 3;
285 int64_t res_64_SV_VL6__b_false = 3;
286 int64_t res_64_SV_VL7__b_false = 3;
287 int64_t res_64_SV_VL8__b_false = 3;
288 int64_t res_64_SV_VL16__b_false = 3;
289 uint64_t res_64_SV_VL1_u_b_false = 3;
290 uint64_t res_64_SV_VL2_u_b_false = 3;
291 uint64_t res_64_SV_VL3_u_b_false = 3;
292 uint64_t res_64_SV_VL4_u_b_false = 3;
293 uint64_t res_64_SV_VL5_u_b_false = 3;
294 uint64_t res_64_SV_VL6_u_b_false = 3;
295 uint64_t res_64_SV_VL7_u_b_false = 3;
296 uint64_t res_64_SV_VL8_u_b_false = 3;
297 uint64_t res_64_SV_VL16_u_b_false = 3;
298
299
300 #undef SVELAST_DEF
301 #define SVELAST_DEF(size, pat, sign, ab, su) \
302 if (NAME (foo, size, pat, sign, ab) \
303 (svindex_ ## su ## size (0 ,1)) != \
304 NAME (res, size, pat, sign, ab)) \
305 __builtin_abort (); \
306 if (NAMEF (foo, size, pat, sign, ab) \
307 (svindex_ ## su ## size (0 ,1)) != \
308 NAMEF (res, size, pat, sign, ab)) \
309 __builtin_abort ();
310
311 ALL_POS ()
312
313 return 0;
314 }