Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve2/acle/asm/ldnt1_gather_f64.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 ** ldnt1_gather_f64_tied1:
8 ** ldnt1d z0\.d, p0/z, \[z0\.d\]
9 ** ret
10 */
11 TEST_LOAD_GATHER_ZS (ldnt1_gather_f64_tied1, svfloat64_t, svuint64_t,
12 z0_res = svldnt1_gather_u64base_f64 (p0, z0),
13 z0_res = svldnt1_gather_f64 (p0, z0))
14
15 /*
16 ** ldnt1_gather_f64_untied:
17 ** ldnt1d z0\.d, p0/z, \[z1\.d\]
18 ** ret
19 */
20 TEST_LOAD_GATHER_ZS (ldnt1_gather_f64_untied, svfloat64_t, svuint64_t,
21 z0_res = svldnt1_gather_u64base_f64 (p0, z1),
22 z0_res = svldnt1_gather_f64 (p0, z1))
23
24 /*
25 ** ldnt1_gather_x0_f64_offset:
26 ** ldnt1d z0\.d, p0/z, \[z0\.d, x0\]
27 ** ret
28 */
29 TEST_LOAD_GATHER_ZS (ldnt1_gather_x0_f64_offset, svfloat64_t, svuint64_t,
30 z0_res = svldnt1_gather_u64base_offset_f64 (p0, z0, x0),
31 z0_res = svldnt1_gather_offset_f64 (p0, z0, x0))
32
33 /*
34 ** ldnt1_gather_m8_f64_offset:
35 ** mov (x[0-9]+), #?-8
36 ** ldnt1d z0\.d, p0/z, \[z0\.d, \1\]
37 ** ret
38 */
39 TEST_LOAD_GATHER_ZS (ldnt1_gather_m8_f64_offset, svfloat64_t, svuint64_t,
40 z0_res = svldnt1_gather_u64base_offset_f64 (p0, z0, -8),
41 z0_res = svldnt1_gather_offset_f64 (p0, z0, -8))
42
43 /*
44 ** ldnt1_gather_0_f64_offset:
45 ** ldnt1d z0\.d, p0/z, \[z0\.d\]
46 ** ret
47 */
48 TEST_LOAD_GATHER_ZS (ldnt1_gather_0_f64_offset, svfloat64_t, svuint64_t,
49 z0_res = svldnt1_gather_u64base_offset_f64 (p0, z0, 0),
50 z0_res = svldnt1_gather_offset_f64 (p0, z0, 0))
51
52 /*
53 ** ldnt1_gather_9_f64_offset:
54 ** mov (x[0-9]+), #?9
55 ** ldnt1d z0\.d, p0/z, \[z0\.d, \1\]
56 ** ret
57 */
58 TEST_LOAD_GATHER_ZS (ldnt1_gather_9_f64_offset, svfloat64_t, svuint64_t,
59 z0_res = svldnt1_gather_u64base_offset_f64 (p0, z0, 9),
60 z0_res = svldnt1_gather_offset_f64 (p0, z0, 9))
61
62 /*
63 ** ldnt1_gather_10_f64_offset:
64 ** mov (x[0-9]+), #?10
65 ** ldnt1d z0\.d, p0/z, \[z0\.d, \1\]
66 ** ret
67 */
68 TEST_LOAD_GATHER_ZS (ldnt1_gather_10_f64_offset, svfloat64_t, svuint64_t,
69 z0_res = svldnt1_gather_u64base_offset_f64 (p0, z0, 10),
70 z0_res = svldnt1_gather_offset_f64 (p0, z0, 10))
71
72 /*
73 ** ldnt1_gather_11_f64_offset:
74 ** mov (x[0-9]+), #?11
75 ** ldnt1d z0\.d, p0/z, \[z0\.d, \1\]
76 ** ret
77 */
78 TEST_LOAD_GATHER_ZS (ldnt1_gather_11_f64_offset, svfloat64_t, svuint64_t,
79 z0_res = svldnt1_gather_u64base_offset_f64 (p0, z0, 11),
80 z0_res = svldnt1_gather_offset_f64 (p0, z0, 11))
81
82 /*
83 ** ldnt1_gather_12_f64_offset:
84 ** mov (x[0-9]+), #?12
85 ** ldnt1d z0\.d, p0/z, \[z0\.d, \1\]
86 ** ret
87 */
88 TEST_LOAD_GATHER_ZS (ldnt1_gather_12_f64_offset, svfloat64_t, svuint64_t,
89 z0_res = svldnt1_gather_u64base_offset_f64 (p0, z0, 12),
90 z0_res = svldnt1_gather_offset_f64 (p0, z0, 12))
91
92 /*
93 ** ldnt1_gather_13_f64_offset:
94 ** mov (x[0-9]+), #?13
95 ** ldnt1d z0\.d, p0/z, \[z0\.d, \1\]
96 ** ret
97 */
98 TEST_LOAD_GATHER_ZS (ldnt1_gather_13_f64_offset, svfloat64_t, svuint64_t,
99 z0_res = svldnt1_gather_u64base_offset_f64 (p0, z0, 13),
100 z0_res = svldnt1_gather_offset_f64 (p0, z0, 13))
101
102 /*
103 ** ldnt1_gather_14_f64_offset:
104 ** mov (x[0-9]+), #?14
105 ** ldnt1d z0\.d, p0/z, \[z0\.d, \1\]
106 ** ret
107 */
108 TEST_LOAD_GATHER_ZS (ldnt1_gather_14_f64_offset, svfloat64_t, svuint64_t,
109 z0_res = svldnt1_gather_u64base_offset_f64 (p0, z0, 14),
110 z0_res = svldnt1_gather_offset_f64 (p0, z0, 14))
111
112 /*
113 ** ldnt1_gather_15_f64_offset:
114 ** mov (x[0-9]+), #?15
115 ** ldnt1d z0\.d, p0/z, \[z0\.d, \1\]
116 ** ret
117 */
118 TEST_LOAD_GATHER_ZS (ldnt1_gather_15_f64_offset, svfloat64_t, svuint64_t,
119 z0_res = svldnt1_gather_u64base_offset_f64 (p0, z0, 15),
120 z0_res = svldnt1_gather_offset_f64 (p0, z0, 15))
121
122 /*
123 ** ldnt1_gather_16_f64_offset:
124 ** mov (x[0-9]+), #?16
125 ** ldnt1d z0\.d, p0/z, \[z0\.d, \1\]
126 ** ret
127 */
128 TEST_LOAD_GATHER_ZS (ldnt1_gather_16_f64_offset, svfloat64_t, svuint64_t,
129 z0_res = svldnt1_gather_u64base_offset_f64 (p0, z0, 16),
130 z0_res = svldnt1_gather_offset_f64 (p0, z0, 16))
131
132 /*
133 ** ldnt1_gather_248_f64_offset:
134 ** mov (x[0-9]+), #?248
135 ** ldnt1d z0\.d, p0/z, \[z0\.d, \1\]
136 ** ret
137 */
138 TEST_LOAD_GATHER_ZS (ldnt1_gather_248_f64_offset, svfloat64_t, svuint64_t,
139 z0_res = svldnt1_gather_u64base_offset_f64 (p0, z0, 248),
140 z0_res = svldnt1_gather_offset_f64 (p0, z0, 248))
141
142 /*
143 ** ldnt1_gather_256_f64_offset:
144 ** mov (x[0-9]+), #?256
145 ** ldnt1d z0\.d, p0/z, \[z0\.d, \1\]
146 ** ret
147 */
148 TEST_LOAD_GATHER_ZS (ldnt1_gather_256_f64_offset, svfloat64_t, svuint64_t,
149 z0_res = svldnt1_gather_u64base_offset_f64 (p0, z0, 256),
150 z0_res = svldnt1_gather_offset_f64 (p0, z0, 256))
151
152 /*
153 ** ldnt1_gather_x0_f64_index:
154 ** lsl (x[0-9]+), x0, #?3
155 ** ldnt1d z0\.d, p0/z, \[z0\.d, \1\]
156 ** ret
157 */
158 TEST_LOAD_GATHER_ZS (ldnt1_gather_x0_f64_index, svfloat64_t, svuint64_t,
159 z0_res = svldnt1_gather_u64base_index_f64 (p0, z0, x0),
160 z0_res = svldnt1_gather_index_f64 (p0, z0, x0))
161
162 /*
163 ** ldnt1_gather_m1_f64_index:
164 ** mov (x[0-9]+), #?-8
165 ** ldnt1d z0\.d, p0/z, \[z0\.d, \1\]
166 ** ret
167 */
168 TEST_LOAD_GATHER_ZS (ldnt1_gather_m1_f64_index, svfloat64_t, svuint64_t,
169 z0_res = svldnt1_gather_u64base_index_f64 (p0, z0, -1),
170 z0_res = svldnt1_gather_index_f64 (p0, z0, -1))
171
172 /*
173 ** ldnt1_gather_0_f64_index:
174 ** ldnt1d z0\.d, p0/z, \[z0\.d\]
175 ** ret
176 */
177 TEST_LOAD_GATHER_ZS (ldnt1_gather_0_f64_index, svfloat64_t, svuint64_t,
178 z0_res = svldnt1_gather_u64base_index_f64 (p0, z0, 0),
179 z0_res = svldnt1_gather_index_f64 (p0, z0, 0))
180
181 /*
182 ** ldnt1_gather_5_f64_index:
183 ** mov (x[0-9]+), #?40
184 ** ldnt1d z0\.d, p0/z, \[z0\.d, \1\]
185 ** ret
186 */
187 TEST_LOAD_GATHER_ZS (ldnt1_gather_5_f64_index, svfloat64_t, svuint64_t,
188 z0_res = svldnt1_gather_u64base_index_f64 (p0, z0, 5),
189 z0_res = svldnt1_gather_index_f64 (p0, z0, 5))
190
191 /*
192 ** ldnt1_gather_31_f64_index:
193 ** mov (x[0-9]+), #?248
194 ** ldnt1d z0\.d, p0/z, \[z0\.d, \1\]
195 ** ret
196 */
197 TEST_LOAD_GATHER_ZS (ldnt1_gather_31_f64_index, svfloat64_t, svuint64_t,
198 z0_res = svldnt1_gather_u64base_index_f64 (p0, z0, 31),
199 z0_res = svldnt1_gather_index_f64 (p0, z0, 31))
200
201 /*
202 ** ldnt1_gather_32_f64_index:
203 ** mov (x[0-9]+), #?256
204 ** ldnt1d z0\.d, p0/z, \[z0\.d, \1\]
205 ** ret
206 */
207 TEST_LOAD_GATHER_ZS (ldnt1_gather_32_f64_index, svfloat64_t, svuint64_t,
208 z0_res = svldnt1_gather_u64base_index_f64 (p0, z0, 32),
209 z0_res = svldnt1_gather_index_f64 (p0, z0, 32))
210
211 /*
212 ** ldnt1_gather_x0_f64_s64offset:
213 ** ldnt1d z0\.d, p0/z, \[z0\.d, x0\]
214 ** ret
215 */
216 TEST_LOAD_GATHER_SZ (ldnt1_gather_x0_f64_s64offset, svfloat64_t, float64_t, svint64_t,
217 z0_res = svldnt1_gather_s64offset_f64 (p0, x0, z0),
218 z0_res = svldnt1_gather_offset (p0, x0, z0))
219
220 /*
221 ** ldnt1_gather_tied1_f64_s64offset:
222 ** ldnt1d z0\.d, p0/z, \[z0\.d, x0\]
223 ** ret
224 */
225 TEST_LOAD_GATHER_SZ (ldnt1_gather_tied1_f64_s64offset, svfloat64_t, float64_t, svint64_t,
226 z0_res = svldnt1_gather_s64offset_f64 (p0, x0, z0),
227 z0_res = svldnt1_gather_offset (p0, x0, z0))
228
229 /*
230 ** ldnt1_gather_untied_f64_s64offset:
231 ** ldnt1d z0\.d, p0/z, \[z1\.d, x0\]
232 ** ret
233 */
234 TEST_LOAD_GATHER_SZ (ldnt1_gather_untied_f64_s64offset, svfloat64_t, float64_t, svint64_t,
235 z0_res = svldnt1_gather_s64offset_f64 (p0, x0, z1),
236 z0_res = svldnt1_gather_offset (p0, x0, z1))
237
238 /*
239 ** ldnt1_gather_x0_f64_u64offset:
240 ** ldnt1d z0\.d, p0/z, \[z0\.d, x0\]
241 ** ret
242 */
243 TEST_LOAD_GATHER_SZ (ldnt1_gather_x0_f64_u64offset, svfloat64_t, float64_t, svuint64_t,
244 z0_res = svldnt1_gather_u64offset_f64 (p0, x0, z0),
245 z0_res = svldnt1_gather_offset (p0, x0, z0))
246
247 /*
248 ** ldnt1_gather_tied1_f64_u64offset:
249 ** ldnt1d z0\.d, p0/z, \[z0\.d, x0\]
250 ** ret
251 */
252 TEST_LOAD_GATHER_SZ (ldnt1_gather_tied1_f64_u64offset, svfloat64_t, float64_t, svuint64_t,
253 z0_res = svldnt1_gather_u64offset_f64 (p0, x0, z0),
254 z0_res = svldnt1_gather_offset (p0, x0, z0))
255
256 /*
257 ** ldnt1_gather_untied_f64_u64offset:
258 ** ldnt1d z0\.d, p0/z, \[z1\.d, x0\]
259 ** ret
260 */
261 TEST_LOAD_GATHER_SZ (ldnt1_gather_untied_f64_u64offset, svfloat64_t, float64_t, svuint64_t,
262 z0_res = svldnt1_gather_u64offset_f64 (p0, x0, z1),
263 z0_res = svldnt1_gather_offset (p0, x0, z1))
264
265 /*
266 ** ldnt1_gather_x0_f64_s64index:
267 ** lsl (z[0-9]+\.d), z0\.d, #3
268 ** ldnt1d z0\.d, p0/z, \[\1, x0\]
269 ** ret
270 */
271 TEST_LOAD_GATHER_SZ (ldnt1_gather_x0_f64_s64index, svfloat64_t, float64_t, svint64_t,
272 z0_res = svldnt1_gather_s64index_f64 (p0, x0, z0),
273 z0_res = svldnt1_gather_index (p0, x0, z0))
274
275 /*
276 ** ldnt1_gather_tied1_f64_s64index:
277 ** lsl (z[0-9]+\.d), z0\.d, #3
278 ** ldnt1d z0\.d, p0/z, \[\1, x0\]
279 ** ret
280 */
281 TEST_LOAD_GATHER_SZ (ldnt1_gather_tied1_f64_s64index, svfloat64_t, float64_t, svint64_t,
282 z0_res = svldnt1_gather_s64index_f64 (p0, x0, z0),
283 z0_res = svldnt1_gather_index (p0, x0, z0))
284
285 /*
286 ** ldnt1_gather_untied_f64_s64index:
287 ** lsl (z[0-9]+\.d), z1\.d, #3
288 ** ldnt1d z0\.d, p0/z, \[\1, x0\]
289 ** ret
290 */
291 TEST_LOAD_GATHER_SZ (ldnt1_gather_untied_f64_s64index, svfloat64_t, float64_t, svint64_t,
292 z0_res = svldnt1_gather_s64index_f64 (p0, x0, z1),
293 z0_res = svldnt1_gather_index (p0, x0, z1))
294
295 /*
296 ** ldnt1_gather_x0_f64_u64index:
297 ** lsl (z[0-9]+\.d), z0\.d, #3
298 ** ldnt1d z0\.d, p0/z, \[\1, x0\]
299 ** ret
300 */
301 TEST_LOAD_GATHER_SZ (ldnt1_gather_x0_f64_u64index, svfloat64_t, float64_t, svuint64_t,
302 z0_res = svldnt1_gather_u64index_f64 (p0, x0, z0),
303 z0_res = svldnt1_gather_index (p0, x0, z0))
304
305 /*
306 ** ldnt1_gather_tied1_f64_u64index:
307 ** lsl (z[0-9]+\.d), z0\.d, #3
308 ** ldnt1d z0\.d, p0/z, \[\1, x0\]
309 ** ret
310 */
311 TEST_LOAD_GATHER_SZ (ldnt1_gather_tied1_f64_u64index, svfloat64_t, float64_t, svuint64_t,
312 z0_res = svldnt1_gather_u64index_f64 (p0, x0, z0),
313 z0_res = svldnt1_gather_index (p0, x0, z0))
314
315 /*
316 ** ldnt1_gather_untied_f64_u64index:
317 ** lsl (z[0-9]+\.d), z1\.d, #3
318 ** ldnt1d z0\.d, p0/z, \[\1, x0\]
319 ** ret
320 */
321 TEST_LOAD_GATHER_SZ (ldnt1_gather_untied_f64_u64index, svfloat64_t, float64_t, svuint64_t,
322 z0_res = svldnt1_gather_u64index_f64 (p0, x0, z1),
323 z0_res = svldnt1_gather_index (p0, x0, z1))