Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/acle/asm/ldff1sw_gather_s64.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 ** ldff1sw_gather_s64_tied1:
8 ** ldff1sw z0\.d, p0/z, \[z0\.d\]
9 ** ret
10 */
11 TEST_LOAD_GATHER_ZS (ldff1sw_gather_s64_tied1, svint64_t, svuint64_t,
12 z0_res = svldff1sw_gather_u64base_s64 (p0, z0),
13 z0_res = svldff1sw_gather_s64 (p0, z0))
14
15 /*
16 ** ldff1sw_gather_s64_untied:
17 ** ldff1sw z0\.d, p0/z, \[z1\.d\]
18 ** ret
19 */
20 TEST_LOAD_GATHER_ZS (ldff1sw_gather_s64_untied, svint64_t, svuint64_t,
21 z0_res = svldff1sw_gather_u64base_s64 (p0, z1),
22 z0_res = svldff1sw_gather_s64 (p0, z1))
23
24 /*
25 ** ldff1sw_gather_x0_s64_offset:
26 ** ldff1sw z0\.d, p0/z, \[x0, z0\.d\]
27 ** ret
28 */
29 TEST_LOAD_GATHER_ZS (ldff1sw_gather_x0_s64_offset, svint64_t, svuint64_t,
30 z0_res = svldff1sw_gather_u64base_offset_s64 (p0, z0, x0),
31 z0_res = svldff1sw_gather_offset_s64 (p0, z0, x0))
32
33 /*
34 ** ldff1sw_gather_m4_s64_offset:
35 ** mov (x[0-9]+), #?-4
36 ** ldff1sw z0\.d, p0/z, \[\1, z0\.d\]
37 ** ret
38 */
39 TEST_LOAD_GATHER_ZS (ldff1sw_gather_m4_s64_offset, svint64_t, svuint64_t,
40 z0_res = svldff1sw_gather_u64base_offset_s64 (p0, z0, -4),
41 z0_res = svldff1sw_gather_offset_s64 (p0, z0, -4))
42
43 /*
44 ** ldff1sw_gather_0_s64_offset:
45 ** ldff1sw z0\.d, p0/z, \[z0\.d\]
46 ** ret
47 */
48 TEST_LOAD_GATHER_ZS (ldff1sw_gather_0_s64_offset, svint64_t, svuint64_t,
49 z0_res = svldff1sw_gather_u64base_offset_s64 (p0, z0, 0),
50 z0_res = svldff1sw_gather_offset_s64 (p0, z0, 0))
51
52 /*
53 ** ldff1sw_gather_5_s64_offset:
54 ** mov (x[0-9]+), #?5
55 ** ldff1sw z0\.d, p0/z, \[\1, z0\.d\]
56 ** ret
57 */
58 TEST_LOAD_GATHER_ZS (ldff1sw_gather_5_s64_offset, svint64_t, svuint64_t,
59 z0_res = svldff1sw_gather_u64base_offset_s64 (p0, z0, 5),
60 z0_res = svldff1sw_gather_offset_s64 (p0, z0, 5))
61
62 /*
63 ** ldff1sw_gather_6_s64_offset:
64 ** mov (x[0-9]+), #?6
65 ** ldff1sw z0\.d, p0/z, \[\1, z0\.d\]
66 ** ret
67 */
68 TEST_LOAD_GATHER_ZS (ldff1sw_gather_6_s64_offset, svint64_t, svuint64_t,
69 z0_res = svldff1sw_gather_u64base_offset_s64 (p0, z0, 6),
70 z0_res = svldff1sw_gather_offset_s64 (p0, z0, 6))
71
72 /*
73 ** ldff1sw_gather_7_s64_offset:
74 ** mov (x[0-9]+), #?7
75 ** ldff1sw z0\.d, p0/z, \[\1, z0\.d\]
76 ** ret
77 */
78 TEST_LOAD_GATHER_ZS (ldff1sw_gather_7_s64_offset, svint64_t, svuint64_t,
79 z0_res = svldff1sw_gather_u64base_offset_s64 (p0, z0, 7),
80 z0_res = svldff1sw_gather_offset_s64 (p0, z0, 7))
81
82 /*
83 ** ldff1sw_gather_8_s64_offset:
84 ** ldff1sw z0\.d, p0/z, \[z0\.d, #8\]
85 ** ret
86 */
87 TEST_LOAD_GATHER_ZS (ldff1sw_gather_8_s64_offset, svint64_t, svuint64_t,
88 z0_res = svldff1sw_gather_u64base_offset_s64 (p0, z0, 8),
89 z0_res = svldff1sw_gather_offset_s64 (p0, z0, 8))
90
91 /*
92 ** ldff1sw_gather_124_s64_offset:
93 ** ldff1sw z0\.d, p0/z, \[z0\.d, #124\]
94 ** ret
95 */
96 TEST_LOAD_GATHER_ZS (ldff1sw_gather_124_s64_offset, svint64_t, svuint64_t,
97 z0_res = svldff1sw_gather_u64base_offset_s64 (p0, z0, 124),
98 z0_res = svldff1sw_gather_offset_s64 (p0, z0, 124))
99
100 /*
101 ** ldff1sw_gather_128_s64_offset:
102 ** mov (x[0-9]+), #?128
103 ** ldff1sw z0\.d, p0/z, \[\1, z0\.d\]
104 ** ret
105 */
106 TEST_LOAD_GATHER_ZS (ldff1sw_gather_128_s64_offset, svint64_t, svuint64_t,
107 z0_res = svldff1sw_gather_u64base_offset_s64 (p0, z0, 128),
108 z0_res = svldff1sw_gather_offset_s64 (p0, z0, 128))
109
110 /*
111 ** ldff1sw_gather_x0_s64_index:
112 ** lsl (x[0-9]+), x0, #?2
113 ** ldff1sw z0\.d, p0/z, \[\1, z0\.d\]
114 ** ret
115 */
116 TEST_LOAD_GATHER_ZS (ldff1sw_gather_x0_s64_index, svint64_t, svuint64_t,
117 z0_res = svldff1sw_gather_u64base_index_s64 (p0, z0, x0),
118 z0_res = svldff1sw_gather_index_s64 (p0, z0, x0))
119
120 /*
121 ** ldff1sw_gather_m1_s64_index:
122 ** mov (x[0-9]+), #?-4
123 ** ldff1sw z0\.d, p0/z, \[\1, z0\.d\]
124 ** ret
125 */
126 TEST_LOAD_GATHER_ZS (ldff1sw_gather_m1_s64_index, svint64_t, svuint64_t,
127 z0_res = svldff1sw_gather_u64base_index_s64 (p0, z0, -1),
128 z0_res = svldff1sw_gather_index_s64 (p0, z0, -1))
129
130 /*
131 ** ldff1sw_gather_0_s64_index:
132 ** ldff1sw z0\.d, p0/z, \[z0\.d\]
133 ** ret
134 */
135 TEST_LOAD_GATHER_ZS (ldff1sw_gather_0_s64_index, svint64_t, svuint64_t,
136 z0_res = svldff1sw_gather_u64base_index_s64 (p0, z0, 0),
137 z0_res = svldff1sw_gather_index_s64 (p0, z0, 0))
138
139 /*
140 ** ldff1sw_gather_5_s64_index:
141 ** ldff1sw z0\.d, p0/z, \[z0\.d, #20\]
142 ** ret
143 */
144 TEST_LOAD_GATHER_ZS (ldff1sw_gather_5_s64_index, svint64_t, svuint64_t,
145 z0_res = svldff1sw_gather_u64base_index_s64 (p0, z0, 5),
146 z0_res = svldff1sw_gather_index_s64 (p0, z0, 5))
147
148 /*
149 ** ldff1sw_gather_31_s64_index:
150 ** ldff1sw z0\.d, p0/z, \[z0\.d, #124\]
151 ** ret
152 */
153 TEST_LOAD_GATHER_ZS (ldff1sw_gather_31_s64_index, svint64_t, svuint64_t,
154 z0_res = svldff1sw_gather_u64base_index_s64 (p0, z0, 31),
155 z0_res = svldff1sw_gather_index_s64 (p0, z0, 31))
156
157 /*
158 ** ldff1sw_gather_32_s64_index:
159 ** mov (x[0-9]+), #?128
160 ** ldff1sw z0\.d, p0/z, \[\1, z0\.d\]
161 ** ret
162 */
163 TEST_LOAD_GATHER_ZS (ldff1sw_gather_32_s64_index, svint64_t, svuint64_t,
164 z0_res = svldff1sw_gather_u64base_index_s64 (p0, z0, 32),
165 z0_res = svldff1sw_gather_index_s64 (p0, z0, 32))
166
167 /*
168 ** ldff1sw_gather_x0_s64_s64offset:
169 ** ldff1sw z0\.d, p0/z, \[x0, z0\.d\]
170 ** ret
171 */
172 TEST_LOAD_GATHER_SZ (ldff1sw_gather_x0_s64_s64offset, svint64_t, int32_t, svint64_t,
173 z0_res = svldff1sw_gather_s64offset_s64 (p0, x0, z0),
174 z0_res = svldff1sw_gather_offset_s64 (p0, x0, z0))
175
176 /*
177 ** ldff1sw_gather_tied1_s64_s64offset:
178 ** ldff1sw z0\.d, p0/z, \[x0, z0\.d\]
179 ** ret
180 */
181 TEST_LOAD_GATHER_SZ (ldff1sw_gather_tied1_s64_s64offset, svint64_t, int32_t, svint64_t,
182 z0_res = svldff1sw_gather_s64offset_s64 (p0, x0, z0),
183 z0_res = svldff1sw_gather_offset_s64 (p0, x0, z0))
184
185 /*
186 ** ldff1sw_gather_untied_s64_s64offset:
187 ** ldff1sw z0\.d, p0/z, \[x0, z1\.d\]
188 ** ret
189 */
190 TEST_LOAD_GATHER_SZ (ldff1sw_gather_untied_s64_s64offset, svint64_t, int32_t, svint64_t,
191 z0_res = svldff1sw_gather_s64offset_s64 (p0, x0, z1),
192 z0_res = svldff1sw_gather_offset_s64 (p0, x0, z1))
193
194 /*
195 ** ldff1sw_gather_ext_s64_s64offset:
196 ** ldff1sw z0\.d, p0/z, \[x0, z1\.d, sxtw\]
197 ** ret
198 */
199 TEST_LOAD_GATHER_SZ (ldff1sw_gather_ext_s64_s64offset, svint64_t, int32_t, svint64_t,
200 z0_res = svldff1sw_gather_s64offset_s64 (p0, x0, svextw_s64_x (p0, z1)),
201 z0_res = svldff1sw_gather_offset_s64 (p0, x0, svextw_x (p0, z1)))
202
203 /*
204 ** ldff1sw_gather_x0_s64_u64offset:
205 ** ldff1sw z0\.d, p0/z, \[x0, z0\.d\]
206 ** ret
207 */
208 TEST_LOAD_GATHER_SZ (ldff1sw_gather_x0_s64_u64offset, svint64_t, int32_t, svuint64_t,
209 z0_res = svldff1sw_gather_u64offset_s64 (p0, x0, z0),
210 z0_res = svldff1sw_gather_offset_s64 (p0, x0, z0))
211
212 /*
213 ** ldff1sw_gather_tied1_s64_u64offset:
214 ** ldff1sw z0\.d, p0/z, \[x0, z0\.d\]
215 ** ret
216 */
217 TEST_LOAD_GATHER_SZ (ldff1sw_gather_tied1_s64_u64offset, svint64_t, int32_t, svuint64_t,
218 z0_res = svldff1sw_gather_u64offset_s64 (p0, x0, z0),
219 z0_res = svldff1sw_gather_offset_s64 (p0, x0, z0))
220
221 /*
222 ** ldff1sw_gather_untied_s64_u64offset:
223 ** ldff1sw z0\.d, p0/z, \[x0, z1\.d\]
224 ** ret
225 */
226 TEST_LOAD_GATHER_SZ (ldff1sw_gather_untied_s64_u64offset, svint64_t, int32_t, svuint64_t,
227 z0_res = svldff1sw_gather_u64offset_s64 (p0, x0, z1),
228 z0_res = svldff1sw_gather_offset_s64 (p0, x0, z1))
229
230 /*
231 ** ldff1sw_gather_ext_s64_u64offset:
232 ** ldff1sw z0\.d, p0/z, \[x0, z1\.d, uxtw\]
233 ** ret
234 */
235 TEST_LOAD_GATHER_SZ (ldff1sw_gather_ext_s64_u64offset, svint64_t, int32_t, svuint64_t,
236 z0_res = svldff1sw_gather_u64offset_s64 (p0, x0, svextw_u64_x (p0, z1)),
237 z0_res = svldff1sw_gather_offset_s64 (p0, x0, svextw_x (p0, z1)))
238
239 /*
240 ** ldff1sw_gather_x0_s64_s64index:
241 ** ldff1sw z0\.d, p0/z, \[x0, z0\.d, lsl 2\]
242 ** ret
243 */
244 TEST_LOAD_GATHER_SZ (ldff1sw_gather_x0_s64_s64index, svint64_t, int32_t, svint64_t,
245 z0_res = svldff1sw_gather_s64index_s64 (p0, x0, z0),
246 z0_res = svldff1sw_gather_index_s64 (p0, x0, z0))
247
248 /*
249 ** ldff1sw_gather_tied1_s64_s64index:
250 ** ldff1sw z0\.d, p0/z, \[x0, z0\.d, lsl 2\]
251 ** ret
252 */
253 TEST_LOAD_GATHER_SZ (ldff1sw_gather_tied1_s64_s64index, svint64_t, int32_t, svint64_t,
254 z0_res = svldff1sw_gather_s64index_s64 (p0, x0, z0),
255 z0_res = svldff1sw_gather_index_s64 (p0, x0, z0))
256
257 /*
258 ** ldff1sw_gather_untied_s64_s64index:
259 ** ldff1sw z0\.d, p0/z, \[x0, z1\.d, lsl 2\]
260 ** ret
261 */
262 TEST_LOAD_GATHER_SZ (ldff1sw_gather_untied_s64_s64index, svint64_t, int32_t, svint64_t,
263 z0_res = svldff1sw_gather_s64index_s64 (p0, x0, z1),
264 z0_res = svldff1sw_gather_index_s64 (p0, x0, z1))
265
266 /*
267 ** ldff1sw_gather_ext_s64_s64index:
268 ** ldff1sw z0\.d, p0/z, \[x0, z1\.d, sxtw 2\]
269 ** ret
270 */
271 TEST_LOAD_GATHER_SZ (ldff1sw_gather_ext_s64_s64index, svint64_t, int32_t, svint64_t,
272 z0_res = svldff1sw_gather_s64index_s64 (p0, x0, svextw_s64_x (p0, z1)),
273 z0_res = svldff1sw_gather_index_s64 (p0, x0, svextw_x (p0, z1)))
274
275 /*
276 ** ldff1sw_gather_x0_s64_u64index:
277 ** ldff1sw z0\.d, p0/z, \[x0, z0\.d, lsl 2\]
278 ** ret
279 */
280 TEST_LOAD_GATHER_SZ (ldff1sw_gather_x0_s64_u64index, svint64_t, int32_t, svuint64_t,
281 z0_res = svldff1sw_gather_u64index_s64 (p0, x0, z0),
282 z0_res = svldff1sw_gather_index_s64 (p0, x0, z0))
283
284 /*
285 ** ldff1sw_gather_tied1_s64_u64index:
286 ** ldff1sw z0\.d, p0/z, \[x0, z0\.d, lsl 2\]
287 ** ret
288 */
289 TEST_LOAD_GATHER_SZ (ldff1sw_gather_tied1_s64_u64index, svint64_t, int32_t, svuint64_t,
290 z0_res = svldff1sw_gather_u64index_s64 (p0, x0, z0),
291 z0_res = svldff1sw_gather_index_s64 (p0, x0, z0))
292
293 /*
294 ** ldff1sw_gather_untied_s64_u64index:
295 ** ldff1sw z0\.d, p0/z, \[x0, z1\.d, lsl 2\]
296 ** ret
297 */
298 TEST_LOAD_GATHER_SZ (ldff1sw_gather_untied_s64_u64index, svint64_t, int32_t, svuint64_t,
299 z0_res = svldff1sw_gather_u64index_s64 (p0, x0, z1),
300 z0_res = svldff1sw_gather_index_s64 (p0, x0, z1))
301
302 /*
303 ** ldff1sw_gather_ext_s64_u64index:
304 ** ldff1sw z0\.d, p0/z, \[x0, z1\.d, uxtw 2\]
305 ** ret
306 */
307 TEST_LOAD_GATHER_SZ (ldff1sw_gather_ext_s64_u64index, svint64_t, int32_t, svuint64_t,
308 z0_res = svldff1sw_gather_u64index_s64 (p0, x0, svextw_u64_x (p0, z1)),
309 z0_res = svldff1sw_gather_index_s64 (p0, x0, svextw_x (p0, z1)))