Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/acle/asm/ld1uw_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 ** ld1uw_gather_u64_tied1:
8 ** ld1w z0\.d, p0/z, \[z0\.d\]
9 ** ret
10 */
11 TEST_LOAD_GATHER_ZS (ld1uw_gather_u64_tied1, svuint64_t, svuint64_t,
12 z0_res = svld1uw_gather_u64base_u64 (p0, z0),
13 z0_res = svld1uw_gather_u64 (p0, z0))
14
15 /*
16 ** ld1uw_gather_u64_untied:
17 ** ld1w z0\.d, p0/z, \[z1\.d\]
18 ** ret
19 */
20 TEST_LOAD_GATHER_ZS (ld1uw_gather_u64_untied, svuint64_t, svuint64_t,
21 z0_res = svld1uw_gather_u64base_u64 (p0, z1),
22 z0_res = svld1uw_gather_u64 (p0, z1))
23
24 /*
25 ** ld1uw_gather_x0_u64_offset:
26 ** ld1w z0\.d, p0/z, \[x0, z0\.d\]
27 ** ret
28 */
29 TEST_LOAD_GATHER_ZS (ld1uw_gather_x0_u64_offset, svuint64_t, svuint64_t,
30 z0_res = svld1uw_gather_u64base_offset_u64 (p0, z0, x0),
31 z0_res = svld1uw_gather_offset_u64 (p0, z0, x0))
32
33 /*
34 ** ld1uw_gather_m4_u64_offset:
35 ** mov (x[0-9]+), #?-4
36 ** ld1w z0\.d, p0/z, \[\1, z0\.d\]
37 ** ret
38 */
39 TEST_LOAD_GATHER_ZS (ld1uw_gather_m4_u64_offset, svuint64_t, svuint64_t,
40 z0_res = svld1uw_gather_u64base_offset_u64 (p0, z0, -4),
41 z0_res = svld1uw_gather_offset_u64 (p0, z0, -4))
42
43 /*
44 ** ld1uw_gather_0_u64_offset:
45 ** ld1w z0\.d, p0/z, \[z0\.d\]
46 ** ret
47 */
48 TEST_LOAD_GATHER_ZS (ld1uw_gather_0_u64_offset, svuint64_t, svuint64_t,
49 z0_res = svld1uw_gather_u64base_offset_u64 (p0, z0, 0),
50 z0_res = svld1uw_gather_offset_u64 (p0, z0, 0))
51
52 /*
53 ** ld1uw_gather_5_u64_offset:
54 ** mov (x[0-9]+), #?5
55 ** ld1w z0\.d, p0/z, \[\1, z0\.d\]
56 ** ret
57 */
58 TEST_LOAD_GATHER_ZS (ld1uw_gather_5_u64_offset, svuint64_t, svuint64_t,
59 z0_res = svld1uw_gather_u64base_offset_u64 (p0, z0, 5),
60 z0_res = svld1uw_gather_offset_u64 (p0, z0, 5))
61
62 /*
63 ** ld1uw_gather_6_u64_offset:
64 ** mov (x[0-9]+), #?6
65 ** ld1w z0\.d, p0/z, \[\1, z0\.d\]
66 ** ret
67 */
68 TEST_LOAD_GATHER_ZS (ld1uw_gather_6_u64_offset, svuint64_t, svuint64_t,
69 z0_res = svld1uw_gather_u64base_offset_u64 (p0, z0, 6),
70 z0_res = svld1uw_gather_offset_u64 (p0, z0, 6))
71
72 /*
73 ** ld1uw_gather_7_u64_offset:
74 ** mov (x[0-9]+), #?7
75 ** ld1w z0\.d, p0/z, \[\1, z0\.d\]
76 ** ret
77 */
78 TEST_LOAD_GATHER_ZS (ld1uw_gather_7_u64_offset, svuint64_t, svuint64_t,
79 z0_res = svld1uw_gather_u64base_offset_u64 (p0, z0, 7),
80 z0_res = svld1uw_gather_offset_u64 (p0, z0, 7))
81
82 /*
83 ** ld1uw_gather_8_u64_offset:
84 ** ld1w z0\.d, p0/z, \[z0\.d, #8\]
85 ** ret
86 */
87 TEST_LOAD_GATHER_ZS (ld1uw_gather_8_u64_offset, svuint64_t, svuint64_t,
88 z0_res = svld1uw_gather_u64base_offset_u64 (p0, z0, 8),
89 z0_res = svld1uw_gather_offset_u64 (p0, z0, 8))
90
91 /*
92 ** ld1uw_gather_124_u64_offset:
93 ** ld1w z0\.d, p0/z, \[z0\.d, #124\]
94 ** ret
95 */
96 TEST_LOAD_GATHER_ZS (ld1uw_gather_124_u64_offset, svuint64_t, svuint64_t,
97 z0_res = svld1uw_gather_u64base_offset_u64 (p0, z0, 124),
98 z0_res = svld1uw_gather_offset_u64 (p0, z0, 124))
99
100 /*
101 ** ld1uw_gather_128_u64_offset:
102 ** mov (x[0-9]+), #?128
103 ** ld1w z0\.d, p0/z, \[\1, z0\.d\]
104 ** ret
105 */
106 TEST_LOAD_GATHER_ZS (ld1uw_gather_128_u64_offset, svuint64_t, svuint64_t,
107 z0_res = svld1uw_gather_u64base_offset_u64 (p0, z0, 128),
108 z0_res = svld1uw_gather_offset_u64 (p0, z0, 128))
109
110 /*
111 ** ld1uw_gather_x0_u64_index:
112 ** lsl (x[0-9]+), x0, #?2
113 ** ld1w z0\.d, p0/z, \[\1, z0\.d\]
114 ** ret
115 */
116 TEST_LOAD_GATHER_ZS (ld1uw_gather_x0_u64_index, svuint64_t, svuint64_t,
117 z0_res = svld1uw_gather_u64base_index_u64 (p0, z0, x0),
118 z0_res = svld1uw_gather_index_u64 (p0, z0, x0))
119
120 /*
121 ** ld1uw_gather_m1_u64_index:
122 ** mov (x[0-9]+), #?-4
123 ** ld1w z0\.d, p0/z, \[\1, z0\.d\]
124 ** ret
125 */
126 TEST_LOAD_GATHER_ZS (ld1uw_gather_m1_u64_index, svuint64_t, svuint64_t,
127 z0_res = svld1uw_gather_u64base_index_u64 (p0, z0, -1),
128 z0_res = svld1uw_gather_index_u64 (p0, z0, -1))
129
130 /*
131 ** ld1uw_gather_0_u64_index:
132 ** ld1w z0\.d, p0/z, \[z0\.d\]
133 ** ret
134 */
135 TEST_LOAD_GATHER_ZS (ld1uw_gather_0_u64_index, svuint64_t, svuint64_t,
136 z0_res = svld1uw_gather_u64base_index_u64 (p0, z0, 0),
137 z0_res = svld1uw_gather_index_u64 (p0, z0, 0))
138
139 /*
140 ** ld1uw_gather_5_u64_index:
141 ** ld1w z0\.d, p0/z, \[z0\.d, #20\]
142 ** ret
143 */
144 TEST_LOAD_GATHER_ZS (ld1uw_gather_5_u64_index, svuint64_t, svuint64_t,
145 z0_res = svld1uw_gather_u64base_index_u64 (p0, z0, 5),
146 z0_res = svld1uw_gather_index_u64 (p0, z0, 5))
147
148 /*
149 ** ld1uw_gather_31_u64_index:
150 ** ld1w z0\.d, p0/z, \[z0\.d, #124\]
151 ** ret
152 */
153 TEST_LOAD_GATHER_ZS (ld1uw_gather_31_u64_index, svuint64_t, svuint64_t,
154 z0_res = svld1uw_gather_u64base_index_u64 (p0, z0, 31),
155 z0_res = svld1uw_gather_index_u64 (p0, z0, 31))
156
157 /*
158 ** ld1uw_gather_32_u64_index:
159 ** mov (x[0-9]+), #?128
160 ** ld1w z0\.d, p0/z, \[\1, z0\.d\]
161 ** ret
162 */
163 TEST_LOAD_GATHER_ZS (ld1uw_gather_32_u64_index, svuint64_t, svuint64_t,
164 z0_res = svld1uw_gather_u64base_index_u64 (p0, z0, 32),
165 z0_res = svld1uw_gather_index_u64 (p0, z0, 32))
166
167 /*
168 ** ld1uw_gather_x0_u64_s64offset:
169 ** ld1w z0\.d, p0/z, \[x0, z0\.d\]
170 ** ret
171 */
172 TEST_LOAD_GATHER_SZ (ld1uw_gather_x0_u64_s64offset, svuint64_t, uint32_t, svint64_t,
173 z0_res = svld1uw_gather_s64offset_u64 (p0, x0, z0),
174 z0_res = svld1uw_gather_offset_u64 (p0, x0, z0))
175
176 /*
177 ** ld1uw_gather_tied1_u64_s64offset:
178 ** ld1w z0\.d, p0/z, \[x0, z0\.d\]
179 ** ret
180 */
181 TEST_LOAD_GATHER_SZ (ld1uw_gather_tied1_u64_s64offset, svuint64_t, uint32_t, svint64_t,
182 z0_res = svld1uw_gather_s64offset_u64 (p0, x0, z0),
183 z0_res = svld1uw_gather_offset_u64 (p0, x0, z0))
184
185 /*
186 ** ld1uw_gather_untied_u64_s64offset:
187 ** ld1w z0\.d, p0/z, \[x0, z1\.d\]
188 ** ret
189 */
190 TEST_LOAD_GATHER_SZ (ld1uw_gather_untied_u64_s64offset, svuint64_t, uint32_t, svint64_t,
191 z0_res = svld1uw_gather_s64offset_u64 (p0, x0, z1),
192 z0_res = svld1uw_gather_offset_u64 (p0, x0, z1))
193
194 /*
195 ** ld1uw_gather_ext_u64_s64offset:
196 ** ld1w z0\.d, p0/z, \[x0, z1\.d, sxtw\]
197 ** ret
198 */
199 TEST_LOAD_GATHER_SZ (ld1uw_gather_ext_u64_s64offset, svuint64_t, uint32_t, svint64_t,
200 z0_res = svld1uw_gather_s64offset_u64 (p0, x0, svextw_s64_x (p0, z1)),
201 z0_res = svld1uw_gather_offset_u64 (p0, x0, svextw_x (p0, z1)))
202
203 /*
204 ** ld1uw_gather_x0_u64_u64offset:
205 ** ld1w z0\.d, p0/z, \[x0, z0\.d\]
206 ** ret
207 */
208 TEST_LOAD_GATHER_SZ (ld1uw_gather_x0_u64_u64offset, svuint64_t, uint32_t, svuint64_t,
209 z0_res = svld1uw_gather_u64offset_u64 (p0, x0, z0),
210 z0_res = svld1uw_gather_offset_u64 (p0, x0, z0))
211
212 /*
213 ** ld1uw_gather_tied1_u64_u64offset:
214 ** ld1w z0\.d, p0/z, \[x0, z0\.d\]
215 ** ret
216 */
217 TEST_LOAD_GATHER_SZ (ld1uw_gather_tied1_u64_u64offset, svuint64_t, uint32_t, svuint64_t,
218 z0_res = svld1uw_gather_u64offset_u64 (p0, x0, z0),
219 z0_res = svld1uw_gather_offset_u64 (p0, x0, z0))
220
221 /*
222 ** ld1uw_gather_untied_u64_u64offset:
223 ** ld1w z0\.d, p0/z, \[x0, z1\.d\]
224 ** ret
225 */
226 TEST_LOAD_GATHER_SZ (ld1uw_gather_untied_u64_u64offset, svuint64_t, uint32_t, svuint64_t,
227 z0_res = svld1uw_gather_u64offset_u64 (p0, x0, z1),
228 z0_res = svld1uw_gather_offset_u64 (p0, x0, z1))
229
230 /*
231 ** ld1uw_gather_ext_u64_u64offset:
232 ** ld1w z0\.d, p0/z, \[x0, z1\.d, uxtw\]
233 ** ret
234 */
235 TEST_LOAD_GATHER_SZ (ld1uw_gather_ext_u64_u64offset, svuint64_t, uint32_t, svuint64_t,
236 z0_res = svld1uw_gather_u64offset_u64 (p0, x0, svextw_u64_x (p0, z1)),
237 z0_res = svld1uw_gather_offset_u64 (p0, x0, svextw_x (p0, z1)))
238
239 /*
240 ** ld1uw_gather_x0_u64_s64index:
241 ** ld1w z0\.d, p0/z, \[x0, z0\.d, lsl 2\]
242 ** ret
243 */
244 TEST_LOAD_GATHER_SZ (ld1uw_gather_x0_u64_s64index, svuint64_t, uint32_t, svint64_t,
245 z0_res = svld1uw_gather_s64index_u64 (p0, x0, z0),
246 z0_res = svld1uw_gather_index_u64 (p0, x0, z0))
247
248 /*
249 ** ld1uw_gather_tied1_u64_s64index:
250 ** ld1w z0\.d, p0/z, \[x0, z0\.d, lsl 2\]
251 ** ret
252 */
253 TEST_LOAD_GATHER_SZ (ld1uw_gather_tied1_u64_s64index, svuint64_t, uint32_t, svint64_t,
254 z0_res = svld1uw_gather_s64index_u64 (p0, x0, z0),
255 z0_res = svld1uw_gather_index_u64 (p0, x0, z0))
256
257 /*
258 ** ld1uw_gather_untied_u64_s64index:
259 ** ld1w z0\.d, p0/z, \[x0, z1\.d, lsl 2\]
260 ** ret
261 */
262 TEST_LOAD_GATHER_SZ (ld1uw_gather_untied_u64_s64index, svuint64_t, uint32_t, svint64_t,
263 z0_res = svld1uw_gather_s64index_u64 (p0, x0, z1),
264 z0_res = svld1uw_gather_index_u64 (p0, x0, z1))
265
266 /*
267 ** ld1uw_gather_ext_u64_s64index:
268 ** ld1w z0\.d, p0/z, \[x0, z1\.d, sxtw 2\]
269 ** ret
270 */
271 TEST_LOAD_GATHER_SZ (ld1uw_gather_ext_u64_s64index, svuint64_t, uint32_t, svint64_t,
272 z0_res = svld1uw_gather_s64index_u64 (p0, x0, svextw_s64_x (p0, z1)),
273 z0_res = svld1uw_gather_index_u64 (p0, x0, svextw_x (p0, z1)))
274
275 /*
276 ** ld1uw_gather_x0_u64_u64index:
277 ** ld1w z0\.d, p0/z, \[x0, z0\.d, lsl 2\]
278 ** ret
279 */
280 TEST_LOAD_GATHER_SZ (ld1uw_gather_x0_u64_u64index, svuint64_t, uint32_t, svuint64_t,
281 z0_res = svld1uw_gather_u64index_u64 (p0, x0, z0),
282 z0_res = svld1uw_gather_index_u64 (p0, x0, z0))
283
284 /*
285 ** ld1uw_gather_tied1_u64_u64index:
286 ** ld1w z0\.d, p0/z, \[x0, z0\.d, lsl 2\]
287 ** ret
288 */
289 TEST_LOAD_GATHER_SZ (ld1uw_gather_tied1_u64_u64index, svuint64_t, uint32_t, svuint64_t,
290 z0_res = svld1uw_gather_u64index_u64 (p0, x0, z0),
291 z0_res = svld1uw_gather_index_u64 (p0, x0, z0))
292
293 /*
294 ** ld1uw_gather_untied_u64_u64index:
295 ** ld1w z0\.d, p0/z, \[x0, z1\.d, lsl 2\]
296 ** ret
297 */
298 TEST_LOAD_GATHER_SZ (ld1uw_gather_untied_u64_u64index, svuint64_t, uint32_t, svuint64_t,
299 z0_res = svld1uw_gather_u64index_u64 (p0, x0, z1),
300 z0_res = svld1uw_gather_index_u64 (p0, x0, z1))
301
302 /*
303 ** ld1uw_gather_ext_u64_u64index:
304 ** ld1w z0\.d, p0/z, \[x0, z1\.d, uxtw 2\]
305 ** ret
306 */
307 TEST_LOAD_GATHER_SZ (ld1uw_gather_ext_u64_u64index, svuint64_t, uint32_t, svuint64_t,
308 z0_res = svld1uw_gather_u64index_u64 (p0, x0, svextw_u64_x (p0, z1)),
309 z0_res = svld1uw_gather_index_u64 (p0, x0, svextw_x (p0, z1)))