Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/acle/asm/ld1_gather_u32.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 ** ld1_gather_u32_tied1:
8 ** ld1w z0\.s, p0/z, \[z0\.s\]
9 ** ret
10 */
11 TEST_LOAD_GATHER_ZS (ld1_gather_u32_tied1, svuint32_t, svuint32_t,
12 z0_res = svld1_gather_u32base_u32 (p0, z0),
13 z0_res = svld1_gather_u32 (p0, z0))
14
15 /*
16 ** ld1_gather_u32_untied:
17 ** ld1w z0\.s, p0/z, \[z1\.s\]
18 ** ret
19 */
20 TEST_LOAD_GATHER_ZS (ld1_gather_u32_untied, svuint32_t, svuint32_t,
21 z0_res = svld1_gather_u32base_u32 (p0, z1),
22 z0_res = svld1_gather_u32 (p0, z1))
23
24 /*
25 ** ld1_gather_x0_u32_offset:
26 ** ld1w z0\.s, p0/z, \[x0, z0\.s, uxtw\]
27 ** ret
28 */
29 TEST_LOAD_GATHER_ZS (ld1_gather_x0_u32_offset, svuint32_t, svuint32_t,
30 z0_res = svld1_gather_u32base_offset_u32 (p0, z0, x0),
31 z0_res = svld1_gather_offset_u32 (p0, z0, x0))
32
33 /*
34 ** ld1_gather_m4_u32_offset:
35 ** mov (x[0-9]+), #?-4
36 ** ld1w z0\.s, p0/z, \[\1, z0\.s, uxtw\]
37 ** ret
38 */
39 TEST_LOAD_GATHER_ZS (ld1_gather_m4_u32_offset, svuint32_t, svuint32_t,
40 z0_res = svld1_gather_u32base_offset_u32 (p0, z0, -4),
41 z0_res = svld1_gather_offset_u32 (p0, z0, -4))
42
43 /*
44 ** ld1_gather_0_u32_offset:
45 ** ld1w z0\.s, p0/z, \[z0\.s\]
46 ** ret
47 */
48 TEST_LOAD_GATHER_ZS (ld1_gather_0_u32_offset, svuint32_t, svuint32_t,
49 z0_res = svld1_gather_u32base_offset_u32 (p0, z0, 0),
50 z0_res = svld1_gather_offset_u32 (p0, z0, 0))
51
52 /*
53 ** ld1_gather_5_u32_offset:
54 ** mov (x[0-9]+), #?5
55 ** ld1w z0\.s, p0/z, \[\1, z0\.s, uxtw\]
56 ** ret
57 */
58 TEST_LOAD_GATHER_ZS (ld1_gather_5_u32_offset, svuint32_t, svuint32_t,
59 z0_res = svld1_gather_u32base_offset_u32 (p0, z0, 5),
60 z0_res = svld1_gather_offset_u32 (p0, z0, 5))
61
62 /*
63 ** ld1_gather_6_u32_offset:
64 ** mov (x[0-9]+), #?6
65 ** ld1w z0\.s, p0/z, \[\1, z0\.s, uxtw\]
66 ** ret
67 */
68 TEST_LOAD_GATHER_ZS (ld1_gather_6_u32_offset, svuint32_t, svuint32_t,
69 z0_res = svld1_gather_u32base_offset_u32 (p0, z0, 6),
70 z0_res = svld1_gather_offset_u32 (p0, z0, 6))
71
72 /*
73 ** ld1_gather_7_u32_offset:
74 ** mov (x[0-9]+), #?7
75 ** ld1w z0\.s, p0/z, \[\1, z0\.s, uxtw\]
76 ** ret
77 */
78 TEST_LOAD_GATHER_ZS (ld1_gather_7_u32_offset, svuint32_t, svuint32_t,
79 z0_res = svld1_gather_u32base_offset_u32 (p0, z0, 7),
80 z0_res = svld1_gather_offset_u32 (p0, z0, 7))
81
82 /*
83 ** ld1_gather_8_u32_offset:
84 ** ld1w z0\.s, p0/z, \[z0\.s, #8\]
85 ** ret
86 */
87 TEST_LOAD_GATHER_ZS (ld1_gather_8_u32_offset, svuint32_t, svuint32_t,
88 z0_res = svld1_gather_u32base_offset_u32 (p0, z0, 8),
89 z0_res = svld1_gather_offset_u32 (p0, z0, 8))
90
91 /*
92 ** ld1_gather_124_u32_offset:
93 ** ld1w z0\.s, p0/z, \[z0\.s, #124\]
94 ** ret
95 */
96 TEST_LOAD_GATHER_ZS (ld1_gather_124_u32_offset, svuint32_t, svuint32_t,
97 z0_res = svld1_gather_u32base_offset_u32 (p0, z0, 124),
98 z0_res = svld1_gather_offset_u32 (p0, z0, 124))
99
100 /*
101 ** ld1_gather_128_u32_offset:
102 ** mov (x[0-9]+), #?128
103 ** ld1w z0\.s, p0/z, \[\1, z0\.s, uxtw\]
104 ** ret
105 */
106 TEST_LOAD_GATHER_ZS (ld1_gather_128_u32_offset, svuint32_t, svuint32_t,
107 z0_res = svld1_gather_u32base_offset_u32 (p0, z0, 128),
108 z0_res = svld1_gather_offset_u32 (p0, z0, 128))
109
110 /*
111 ** ld1_gather_x0_u32_index:
112 ** lsl (x[0-9]+), x0, #?2
113 ** ld1w z0\.s, p0/z, \[\1, z0\.s, uxtw\]
114 ** ret
115 */
116 TEST_LOAD_GATHER_ZS (ld1_gather_x0_u32_index, svuint32_t, svuint32_t,
117 z0_res = svld1_gather_u32base_index_u32 (p0, z0, x0),
118 z0_res = svld1_gather_index_u32 (p0, z0, x0))
119
120 /*
121 ** ld1_gather_m1_u32_index:
122 ** mov (x[0-9]+), #?-4
123 ** ld1w z0\.s, p0/z, \[\1, z0\.s, uxtw\]
124 ** ret
125 */
126 TEST_LOAD_GATHER_ZS (ld1_gather_m1_u32_index, svuint32_t, svuint32_t,
127 z0_res = svld1_gather_u32base_index_u32 (p0, z0, -1),
128 z0_res = svld1_gather_index_u32 (p0, z0, -1))
129
130 /*
131 ** ld1_gather_0_u32_index:
132 ** ld1w z0\.s, p0/z, \[z0\.s\]
133 ** ret
134 */
135 TEST_LOAD_GATHER_ZS (ld1_gather_0_u32_index, svuint32_t, svuint32_t,
136 z0_res = svld1_gather_u32base_index_u32 (p0, z0, 0),
137 z0_res = svld1_gather_index_u32 (p0, z0, 0))
138
139 /*
140 ** ld1_gather_5_u32_index:
141 ** ld1w z0\.s, p0/z, \[z0\.s, #20\]
142 ** ret
143 */
144 TEST_LOAD_GATHER_ZS (ld1_gather_5_u32_index, svuint32_t, svuint32_t,
145 z0_res = svld1_gather_u32base_index_u32 (p0, z0, 5),
146 z0_res = svld1_gather_index_u32 (p0, z0, 5))
147
148 /*
149 ** ld1_gather_31_u32_index:
150 ** ld1w z0\.s, p0/z, \[z0\.s, #124\]
151 ** ret
152 */
153 TEST_LOAD_GATHER_ZS (ld1_gather_31_u32_index, svuint32_t, svuint32_t,
154 z0_res = svld1_gather_u32base_index_u32 (p0, z0, 31),
155 z0_res = svld1_gather_index_u32 (p0, z0, 31))
156
157 /*
158 ** ld1_gather_32_u32_index:
159 ** mov (x[0-9]+), #?128
160 ** ld1w z0\.s, p0/z, \[\1, z0\.s, uxtw\]
161 ** ret
162 */
163 TEST_LOAD_GATHER_ZS (ld1_gather_32_u32_index, svuint32_t, svuint32_t,
164 z0_res = svld1_gather_u32base_index_u32 (p0, z0, 32),
165 z0_res = svld1_gather_index_u32 (p0, z0, 32))
166
167 /*
168 ** ld1_gather_x0_u32_s32offset:
169 ** ld1w z0\.s, p0/z, \[x0, z0\.s, sxtw\]
170 ** ret
171 */
172 TEST_LOAD_GATHER_SZ (ld1_gather_x0_u32_s32offset, svuint32_t, uint32_t, svint32_t,
173 z0_res = svld1_gather_s32offset_u32 (p0, x0, z0),
174 z0_res = svld1_gather_offset (p0, x0, z0))
175
176 /*
177 ** ld1_gather_tied1_u32_s32offset:
178 ** ld1w z0\.s, p0/z, \[x0, z0\.s, sxtw\]
179 ** ret
180 */
181 TEST_LOAD_GATHER_SZ (ld1_gather_tied1_u32_s32offset, svuint32_t, uint32_t, svint32_t,
182 z0_res = svld1_gather_s32offset_u32 (p0, x0, z0),
183 z0_res = svld1_gather_offset (p0, x0, z0))
184
185 /*
186 ** ld1_gather_untied_u32_s32offset:
187 ** ld1w z0\.s, p0/z, \[x0, z1\.s, sxtw\]
188 ** ret
189 */
190 TEST_LOAD_GATHER_SZ (ld1_gather_untied_u32_s32offset, svuint32_t, uint32_t, svint32_t,
191 z0_res = svld1_gather_s32offset_u32 (p0, x0, z1),
192 z0_res = svld1_gather_offset (p0, x0, z1))
193
194 /*
195 ** ld1_gather_x0_u32_u32offset:
196 ** ld1w z0\.s, p0/z, \[x0, z0\.s, uxtw\]
197 ** ret
198 */
199 TEST_LOAD_GATHER_SZ (ld1_gather_x0_u32_u32offset, svuint32_t, uint32_t, svuint32_t,
200 z0_res = svld1_gather_u32offset_u32 (p0, x0, z0),
201 z0_res = svld1_gather_offset (p0, x0, z0))
202
203 /*
204 ** ld1_gather_tied1_u32_u32offset:
205 ** ld1w z0\.s, p0/z, \[x0, z0\.s, uxtw\]
206 ** ret
207 */
208 TEST_LOAD_GATHER_SZ (ld1_gather_tied1_u32_u32offset, svuint32_t, uint32_t, svuint32_t,
209 z0_res = svld1_gather_u32offset_u32 (p0, x0, z0),
210 z0_res = svld1_gather_offset (p0, x0, z0))
211
212 /*
213 ** ld1_gather_untied_u32_u32offset:
214 ** ld1w z0\.s, p0/z, \[x0, z1\.s, uxtw\]
215 ** ret
216 */
217 TEST_LOAD_GATHER_SZ (ld1_gather_untied_u32_u32offset, svuint32_t, uint32_t, svuint32_t,
218 z0_res = svld1_gather_u32offset_u32 (p0, x0, z1),
219 z0_res = svld1_gather_offset (p0, x0, z1))
220
221 /*
222 ** ld1_gather_x0_u32_s32index:
223 ** ld1w z0\.s, p0/z, \[x0, z0\.s, sxtw 2\]
224 ** ret
225 */
226 TEST_LOAD_GATHER_SZ (ld1_gather_x0_u32_s32index, svuint32_t, uint32_t, svint32_t,
227 z0_res = svld1_gather_s32index_u32 (p0, x0, z0),
228 z0_res = svld1_gather_index (p0, x0, z0))
229
230 /*
231 ** ld1_gather_tied1_u32_s32index:
232 ** ld1w z0\.s, p0/z, \[x0, z0\.s, sxtw 2\]
233 ** ret
234 */
235 TEST_LOAD_GATHER_SZ (ld1_gather_tied1_u32_s32index, svuint32_t, uint32_t, svint32_t,
236 z0_res = svld1_gather_s32index_u32 (p0, x0, z0),
237 z0_res = svld1_gather_index (p0, x0, z0))
238
239 /*
240 ** ld1_gather_untied_u32_s32index:
241 ** ld1w z0\.s, p0/z, \[x0, z1\.s, sxtw 2\]
242 ** ret
243 */
244 TEST_LOAD_GATHER_SZ (ld1_gather_untied_u32_s32index, svuint32_t, uint32_t, svint32_t,
245 z0_res = svld1_gather_s32index_u32 (p0, x0, z1),
246 z0_res = svld1_gather_index (p0, x0, z1))
247
248 /*
249 ** ld1_gather_x0_u32_u32index:
250 ** ld1w z0\.s, p0/z, \[x0, z0\.s, uxtw 2\]
251 ** ret
252 */
253 TEST_LOAD_GATHER_SZ (ld1_gather_x0_u32_u32index, svuint32_t, uint32_t, svuint32_t,
254 z0_res = svld1_gather_u32index_u32 (p0, x0, z0),
255 z0_res = svld1_gather_index (p0, x0, z0))
256
257 /*
258 ** ld1_gather_tied1_u32_u32index:
259 ** ld1w z0\.s, p0/z, \[x0, z0\.s, uxtw 2\]
260 ** ret
261 */
262 TEST_LOAD_GATHER_SZ (ld1_gather_tied1_u32_u32index, svuint32_t, uint32_t, svuint32_t,
263 z0_res = svld1_gather_u32index_u32 (p0, x0, z0),
264 z0_res = svld1_gather_index (p0, x0, z0))
265
266 /*
267 ** ld1_gather_untied_u32_u32index:
268 ** ld1w z0\.s, p0/z, \[x0, z1\.s, uxtw 2\]
269 ** ret
270 */
271 TEST_LOAD_GATHER_SZ (ld1_gather_untied_u32_u32index, svuint32_t, uint32_t, svuint32_t,
272 z0_res = svld1_gather_u32index_u32 (p0, x0, z1),
273 z0_res = svld1_gather_index (p0, x0, z1))