Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/acle/asm/ldff1_gather_u64.c

raw
1 /* { dg-skip-if "" { *-*-* } { "-DSTREAMING_COMPATIBLE" } { "" } } */
2 /* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" { target { ! ilp32 } } } } */
3
4 #include "test_sve_acle.h"
5
6 /*
7 ** ldff1_gather_u64_tied1:
8 ** ldff1d z0\.d, p0/z, \[z0\.d\]
9 ** ret
10 */
11 TEST_LOAD_GATHER_ZS (ldff1_gather_u64_tied1, svuint64_t, svuint64_t,
12 z0_res = svldff1_gather_u64base_u64 (p0, z0),
13 z0_res = svldff1_gather_u64 (p0, z0))
14
15 /*
16 ** ldff1_gather_u64_untied:
17 ** ldff1d z0\.d, p0/z, \[z1\.d\]
18 ** ret
19 */
20 TEST_LOAD_GATHER_ZS (ldff1_gather_u64_untied, svuint64_t, svuint64_t,
21 z0_res = svldff1_gather_u64base_u64 (p0, z1),
22 z0_res = svldff1_gather_u64 (p0, z1))
23
24 /*
25 ** ldff1_gather_x0_u64_offset:
26 ** ldff1d z0\.d, p0/z, \[x0, z0\.d\]
27 ** ret
28 */
29 TEST_LOAD_GATHER_ZS (ldff1_gather_x0_u64_offset, svuint64_t, svuint64_t,
30 z0_res = svldff1_gather_u64base_offset_u64 (p0, z0, x0),
31 z0_res = svldff1_gather_offset_u64 (p0, z0, x0))
32
33 /*
34 ** ldff1_gather_m8_u64_offset:
35 ** mov (x[0-9]+), #?-8
36 ** ldff1d z0\.d, p0/z, \[\1, z0\.d\]
37 ** ret
38 */
39 TEST_LOAD_GATHER_ZS (ldff1_gather_m8_u64_offset, svuint64_t, svuint64_t,
40 z0_res = svldff1_gather_u64base_offset_u64 (p0, z0, -8),
41 z0_res = svldff1_gather_offset_u64 (p0, z0, -8))
42
43 /*
44 ** ldff1_gather_0_u64_offset:
45 ** ldff1d z0\.d, p0/z, \[z0\.d\]
46 ** ret
47 */
48 TEST_LOAD_GATHER_ZS (ldff1_gather_0_u64_offset, svuint64_t, svuint64_t,
49 z0_res = svldff1_gather_u64base_offset_u64 (p0, z0, 0),
50 z0_res = svldff1_gather_offset_u64 (p0, z0, 0))
51
52 /*
53 ** ldff1_gather_9_u64_offset:
54 ** mov (x[0-9]+), #?9
55 ** ldff1d z0\.d, p0/z, \[\1, z0\.d\]
56 ** ret
57 */
58 TEST_LOAD_GATHER_ZS (ldff1_gather_9_u64_offset, svuint64_t, svuint64_t,
59 z0_res = svldff1_gather_u64base_offset_u64 (p0, z0, 9),
60 z0_res = svldff1_gather_offset_u64 (p0, z0, 9))
61
62 /*
63 ** ldff1_gather_10_u64_offset:
64 ** mov (x[0-9]+), #?10
65 ** ldff1d z0\.d, p0/z, \[\1, z0\.d\]
66 ** ret
67 */
68 TEST_LOAD_GATHER_ZS (ldff1_gather_10_u64_offset, svuint64_t, svuint64_t,
69 z0_res = svldff1_gather_u64base_offset_u64 (p0, z0, 10),
70 z0_res = svldff1_gather_offset_u64 (p0, z0, 10))
71
72 /*
73 ** ldff1_gather_11_u64_offset:
74 ** mov (x[0-9]+), #?11
75 ** ldff1d z0\.d, p0/z, \[\1, z0\.d\]
76 ** ret
77 */
78 TEST_LOAD_GATHER_ZS (ldff1_gather_11_u64_offset, svuint64_t, svuint64_t,
79 z0_res = svldff1_gather_u64base_offset_u64 (p0, z0, 11),
80 z0_res = svldff1_gather_offset_u64 (p0, z0, 11))
81
82 /*
83 ** ldff1_gather_12_u64_offset:
84 ** mov (x[0-9]+), #?12
85 ** ldff1d z0\.d, p0/z, \[\1, z0\.d\]
86 ** ret
87 */
88 TEST_LOAD_GATHER_ZS (ldff1_gather_12_u64_offset, svuint64_t, svuint64_t,
89 z0_res = svldff1_gather_u64base_offset_u64 (p0, z0, 12),
90 z0_res = svldff1_gather_offset_u64 (p0, z0, 12))
91
92 /*
93 ** ldff1_gather_13_u64_offset:
94 ** mov (x[0-9]+), #?13
95 ** ldff1d z0\.d, p0/z, \[\1, z0\.d\]
96 ** ret
97 */
98 TEST_LOAD_GATHER_ZS (ldff1_gather_13_u64_offset, svuint64_t, svuint64_t,
99 z0_res = svldff1_gather_u64base_offset_u64 (p0, z0, 13),
100 z0_res = svldff1_gather_offset_u64 (p0, z0, 13))
101
102 /*
103 ** ldff1_gather_14_u64_offset:
104 ** mov (x[0-9]+), #?14
105 ** ldff1d z0\.d, p0/z, \[\1, z0\.d\]
106 ** ret
107 */
108 TEST_LOAD_GATHER_ZS (ldff1_gather_14_u64_offset, svuint64_t, svuint64_t,
109 z0_res = svldff1_gather_u64base_offset_u64 (p0, z0, 14),
110 z0_res = svldff1_gather_offset_u64 (p0, z0, 14))
111
112 /*
113 ** ldff1_gather_15_u64_offset:
114 ** mov (x[0-9]+), #?15
115 ** ldff1d z0\.d, p0/z, \[\1, z0\.d\]
116 ** ret
117 */
118 TEST_LOAD_GATHER_ZS (ldff1_gather_15_u64_offset, svuint64_t, svuint64_t,
119 z0_res = svldff1_gather_u64base_offset_u64 (p0, z0, 15),
120 z0_res = svldff1_gather_offset_u64 (p0, z0, 15))
121
122 /*
123 ** ldff1_gather_16_u64_offset:
124 ** ldff1d z0\.d, p0/z, \[z0\.d, #16\]
125 ** ret
126 */
127 TEST_LOAD_GATHER_ZS (ldff1_gather_16_u64_offset, svuint64_t, svuint64_t,
128 z0_res = svldff1_gather_u64base_offset_u64 (p0, z0, 16),
129 z0_res = svldff1_gather_offset_u64 (p0, z0, 16))
130
131 /*
132 ** ldff1_gather_248_u64_offset:
133 ** ldff1d z0\.d, p0/z, \[z0\.d, #248\]
134 ** ret
135 */
136 TEST_LOAD_GATHER_ZS (ldff1_gather_248_u64_offset, svuint64_t, svuint64_t,
137 z0_res = svldff1_gather_u64base_offset_u64 (p0, z0, 248),
138 z0_res = svldff1_gather_offset_u64 (p0, z0, 248))
139
140 /*
141 ** ldff1_gather_256_u64_offset:
142 ** mov (x[0-9]+), #?256
143 ** ldff1d z0\.d, p0/z, \[\1, z0\.d\]
144 ** ret
145 */
146 TEST_LOAD_GATHER_ZS (ldff1_gather_256_u64_offset, svuint64_t, svuint64_t,
147 z0_res = svldff1_gather_u64base_offset_u64 (p0, z0, 256),
148 z0_res = svldff1_gather_offset_u64 (p0, z0, 256))
149
150 /*
151 ** ldff1_gather_x0_u64_index:
152 ** lsl (x[0-9]+), x0, #?3
153 ** ldff1d z0\.d, p0/z, \[\1, z0\.d\]
154 ** ret
155 */
156 TEST_LOAD_GATHER_ZS (ldff1_gather_x0_u64_index, svuint64_t, svuint64_t,
157 z0_res = svldff1_gather_u64base_index_u64 (p0, z0, x0),
158 z0_res = svldff1_gather_index_u64 (p0, z0, x0))
159
160 /*
161 ** ldff1_gather_m1_u64_index:
162 ** mov (x[0-9]+), #?-8
163 ** ldff1d z0\.d, p0/z, \[\1, z0\.d\]
164 ** ret
165 */
166 TEST_LOAD_GATHER_ZS (ldff1_gather_m1_u64_index, svuint64_t, svuint64_t,
167 z0_res = svldff1_gather_u64base_index_u64 (p0, z0, -1),
168 z0_res = svldff1_gather_index_u64 (p0, z0, -1))
169
170 /*
171 ** ldff1_gather_0_u64_index:
172 ** ldff1d z0\.d, p0/z, \[z0\.d\]
173 ** ret
174 */
175 TEST_LOAD_GATHER_ZS (ldff1_gather_0_u64_index, svuint64_t, svuint64_t,
176 z0_res = svldff1_gather_u64base_index_u64 (p0, z0, 0),
177 z0_res = svldff1_gather_index_u64 (p0, z0, 0))
178
179 /*
180 ** ldff1_gather_5_u64_index:
181 ** ldff1d z0\.d, p0/z, \[z0\.d, #40\]
182 ** ret
183 */
184 TEST_LOAD_GATHER_ZS (ldff1_gather_5_u64_index, svuint64_t, svuint64_t,
185 z0_res = svldff1_gather_u64base_index_u64 (p0, z0, 5),
186 z0_res = svldff1_gather_index_u64 (p0, z0, 5))
187
188 /*
189 ** ldff1_gather_31_u64_index:
190 ** ldff1d z0\.d, p0/z, \[z0\.d, #248\]
191 ** ret
192 */
193 TEST_LOAD_GATHER_ZS (ldff1_gather_31_u64_index, svuint64_t, svuint64_t,
194 z0_res = svldff1_gather_u64base_index_u64 (p0, z0, 31),
195 z0_res = svldff1_gather_index_u64 (p0, z0, 31))
196
197 /*
198 ** ldff1_gather_32_u64_index:
199 ** mov (x[0-9]+), #?256
200 ** ldff1d z0\.d, p0/z, \[\1, z0\.d\]
201 ** ret
202 */
203 TEST_LOAD_GATHER_ZS (ldff1_gather_32_u64_index, svuint64_t, svuint64_t,
204 z0_res = svldff1_gather_u64base_index_u64 (p0, z0, 32),
205 z0_res = svldff1_gather_index_u64 (p0, z0, 32))
206
207 /*
208 ** ldff1_gather_x0_u64_s64offset:
209 ** ldff1d z0\.d, p0/z, \[x0, z0\.d\]
210 ** ret
211 */
212 TEST_LOAD_GATHER_SZ (ldff1_gather_x0_u64_s64offset, svuint64_t, uint64_t, svint64_t,
213 z0_res = svldff1_gather_s64offset_u64 (p0, x0, z0),
214 z0_res = svldff1_gather_offset (p0, x0, z0))
215
216 /*
217 ** ldff1_gather_tied1_u64_s64offset:
218 ** ldff1d z0\.d, p0/z, \[x0, z0\.d\]
219 ** ret
220 */
221 TEST_LOAD_GATHER_SZ (ldff1_gather_tied1_u64_s64offset, svuint64_t, uint64_t, svint64_t,
222 z0_res = svldff1_gather_s64offset_u64 (p0, x0, z0),
223 z0_res = svldff1_gather_offset (p0, x0, z0))
224
225 /*
226 ** ldff1_gather_untied_u64_s64offset:
227 ** ldff1d z0\.d, p0/z, \[x0, z1\.d\]
228 ** ret
229 */
230 TEST_LOAD_GATHER_SZ (ldff1_gather_untied_u64_s64offset, svuint64_t, uint64_t, svint64_t,
231 z0_res = svldff1_gather_s64offset_u64 (p0, x0, z1),
232 z0_res = svldff1_gather_offset (p0, x0, z1))
233
234 /*
235 ** ldff1_gather_ext_u64_s64offset:
236 ** ldff1d z0\.d, p0/z, \[x0, z1\.d, sxtw\]
237 ** ret
238 */
239 TEST_LOAD_GATHER_SZ (ldff1_gather_ext_u64_s64offset, svuint64_t, uint64_t, svint64_t,
240 z0_res = svldff1_gather_s64offset_u64 (p0, x0, svextw_s64_x (p0, z1)),
241 z0_res = svldff1_gather_offset (p0, x0, svextw_x (p0, z1)))
242
243 /*
244 ** ldff1_gather_x0_u64_u64offset:
245 ** ldff1d z0\.d, p0/z, \[x0, z0\.d\]
246 ** ret
247 */
248 TEST_LOAD_GATHER_SZ (ldff1_gather_x0_u64_u64offset, svuint64_t, uint64_t, svuint64_t,
249 z0_res = svldff1_gather_u64offset_u64 (p0, x0, z0),
250 z0_res = svldff1_gather_offset (p0, x0, z0))
251
252 /*
253 ** ldff1_gather_tied1_u64_u64offset:
254 ** ldff1d z0\.d, p0/z, \[x0, z0\.d\]
255 ** ret
256 */
257 TEST_LOAD_GATHER_SZ (ldff1_gather_tied1_u64_u64offset, svuint64_t, uint64_t, svuint64_t,
258 z0_res = svldff1_gather_u64offset_u64 (p0, x0, z0),
259 z0_res = svldff1_gather_offset (p0, x0, z0))
260
261 /*
262 ** ldff1_gather_untied_u64_u64offset:
263 ** ldff1d z0\.d, p0/z, \[x0, z1\.d\]
264 ** ret
265 */
266 TEST_LOAD_GATHER_SZ (ldff1_gather_untied_u64_u64offset, svuint64_t, uint64_t, svuint64_t,
267 z0_res = svldff1_gather_u64offset_u64 (p0, x0, z1),
268 z0_res = svldff1_gather_offset (p0, x0, z1))
269
270 /*
271 ** ldff1_gather_ext_u64_u64offset:
272 ** ldff1d z0\.d, p0/z, \[x0, z1\.d, uxtw\]
273 ** ret
274 */
275 TEST_LOAD_GATHER_SZ (ldff1_gather_ext_u64_u64offset, svuint64_t, uint64_t, svuint64_t,
276 z0_res = svldff1_gather_u64offset_u64 (p0, x0, svextw_u64_x (p0, z1)),
277 z0_res = svldff1_gather_offset (p0, x0, svextw_x (p0, z1)))
278
279 /*
280 ** ldff1_gather_x0_u64_s64index:
281 ** ldff1d z0\.d, p0/z, \[x0, z0\.d, lsl 3\]
282 ** ret
283 */
284 TEST_LOAD_GATHER_SZ (ldff1_gather_x0_u64_s64index, svuint64_t, uint64_t, svint64_t,
285 z0_res = svldff1_gather_s64index_u64 (p0, x0, z0),
286 z0_res = svldff1_gather_index (p0, x0, z0))
287
288 /*
289 ** ldff1_gather_tied1_u64_s64index:
290 ** ldff1d z0\.d, p0/z, \[x0, z0\.d, lsl 3\]
291 ** ret
292 */
293 TEST_LOAD_GATHER_SZ (ldff1_gather_tied1_u64_s64index, svuint64_t, uint64_t, svint64_t,
294 z0_res = svldff1_gather_s64index_u64 (p0, x0, z0),
295 z0_res = svldff1_gather_index (p0, x0, z0))
296
297 /*
298 ** ldff1_gather_untied_u64_s64index:
299 ** ldff1d z0\.d, p0/z, \[x0, z1\.d, lsl 3\]
300 ** ret
301 */
302 TEST_LOAD_GATHER_SZ (ldff1_gather_untied_u64_s64index, svuint64_t, uint64_t, svint64_t,
303 z0_res = svldff1_gather_s64index_u64 (p0, x0, z1),
304 z0_res = svldff1_gather_index (p0, x0, z1))
305
306 /*
307 ** ldff1_gather_ext_u64_s64index:
308 ** ldff1d z0\.d, p0/z, \[x0, z1\.d, sxtw 3\]
309 ** ret
310 */
311 TEST_LOAD_GATHER_SZ (ldff1_gather_ext_u64_s64index, svuint64_t, uint64_t, svint64_t,
312 z0_res = svldff1_gather_s64index_u64 (p0, x0, svextw_s64_x (p0, z1)),
313 z0_res = svldff1_gather_index (p0, x0, svextw_x (p0, z1)))
314
315 /*
316 ** ldff1_gather_x0_u64_u64index:
317 ** ldff1d z0\.d, p0/z, \[x0, z0\.d, lsl 3\]
318 ** ret
319 */
320 TEST_LOAD_GATHER_SZ (ldff1_gather_x0_u64_u64index, svuint64_t, uint64_t, svuint64_t,
321 z0_res = svldff1_gather_u64index_u64 (p0, x0, z0),
322 z0_res = svldff1_gather_index (p0, x0, z0))
323
324 /*
325 ** ldff1_gather_tied1_u64_u64index:
326 ** ldff1d z0\.d, p0/z, \[x0, z0\.d, lsl 3\]
327 ** ret
328 */
329 TEST_LOAD_GATHER_SZ (ldff1_gather_tied1_u64_u64index, svuint64_t, uint64_t, svuint64_t,
330 z0_res = svldff1_gather_u64index_u64 (p0, x0, z0),
331 z0_res = svldff1_gather_index (p0, x0, z0))
332
333 /*
334 ** ldff1_gather_untied_u64_u64index:
335 ** ldff1d z0\.d, p0/z, \[x0, z1\.d, lsl 3\]
336 ** ret
337 */
338 TEST_LOAD_GATHER_SZ (ldff1_gather_untied_u64_u64index, svuint64_t, uint64_t, svuint64_t,
339 z0_res = svldff1_gather_u64index_u64 (p0, x0, z1),
340 z0_res = svldff1_gather_index (p0, x0, z1))
341
342 /*
343 ** ldff1_gather_ext_u64_u64index:
344 ** ldff1d z0\.d, p0/z, \[x0, z1\.d, uxtw 3\]
345 ** ret
346 */
347 TEST_LOAD_GATHER_SZ (ldff1_gather_ext_u64_u64index, svuint64_t, uint64_t, svuint64_t,
348 z0_res = svldff1_gather_u64index_u64 (p0, x0, svextw_u64_x (p0, z1)),
349 z0_res = svldff1_gather_index (p0, x0, svextw_x (p0, z1)))