Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve2/acle/asm/ldnt1sh_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 ** ldnt1sh_gather_u64_tied1:
8 ** ldnt1sh z0\.d, p0/z, \[z0\.d\]
9 ** ret
10 */
11 TEST_LOAD_GATHER_ZS (ldnt1sh_gather_u64_tied1, svuint64_t, svuint64_t,
12 z0_res = svldnt1sh_gather_u64base_u64 (p0, z0),
13 z0_res = svldnt1sh_gather_u64 (p0, z0))
14
15 /*
16 ** ldnt1sh_gather_u64_untied:
17 ** ldnt1sh z0\.d, p0/z, \[z1\.d\]
18 ** ret
19 */
20 TEST_LOAD_GATHER_ZS (ldnt1sh_gather_u64_untied, svuint64_t, svuint64_t,
21 z0_res = svldnt1sh_gather_u64base_u64 (p0, z1),
22 z0_res = svldnt1sh_gather_u64 (p0, z1))
23
24 /*
25 ** ldnt1sh_gather_x0_u64_offset:
26 ** ldnt1sh z0\.d, p0/z, \[z0\.d, x0\]
27 ** ret
28 */
29 TEST_LOAD_GATHER_ZS (ldnt1sh_gather_x0_u64_offset, svuint64_t, svuint64_t,
30 z0_res = svldnt1sh_gather_u64base_offset_u64 (p0, z0, x0),
31 z0_res = svldnt1sh_gather_offset_u64 (p0, z0, x0))
32
33 /*
34 ** ldnt1sh_gather_m2_u64_offset:
35 ** mov (x[0-9]+), #?-2
36 ** ldnt1sh z0\.d, p0/z, \[z0\.d, \1\]
37 ** ret
38 */
39 TEST_LOAD_GATHER_ZS (ldnt1sh_gather_m2_u64_offset, svuint64_t, svuint64_t,
40 z0_res = svldnt1sh_gather_u64base_offset_u64 (p0, z0, -2),
41 z0_res = svldnt1sh_gather_offset_u64 (p0, z0, -2))
42
43 /*
44 ** ldnt1sh_gather_0_u64_offset:
45 ** ldnt1sh z0\.d, p0/z, \[z0\.d\]
46 ** ret
47 */
48 TEST_LOAD_GATHER_ZS (ldnt1sh_gather_0_u64_offset, svuint64_t, svuint64_t,
49 z0_res = svldnt1sh_gather_u64base_offset_u64 (p0, z0, 0),
50 z0_res = svldnt1sh_gather_offset_u64 (p0, z0, 0))
51
52 /*
53 ** ldnt1sh_gather_5_u64_offset:
54 ** mov (x[0-9]+), #?5
55 ** ldnt1sh z0\.d, p0/z, \[z0\.d, \1\]
56 ** ret
57 */
58 TEST_LOAD_GATHER_ZS (ldnt1sh_gather_5_u64_offset, svuint64_t, svuint64_t,
59 z0_res = svldnt1sh_gather_u64base_offset_u64 (p0, z0, 5),
60 z0_res = svldnt1sh_gather_offset_u64 (p0, z0, 5))
61
62 /*
63 ** ldnt1sh_gather_6_u64_offset:
64 ** mov (x[0-9]+), #?6
65 ** ldnt1sh z0\.d, p0/z, \[z0\.d, \1\]
66 ** ret
67 */
68 TEST_LOAD_GATHER_ZS (ldnt1sh_gather_6_u64_offset, svuint64_t, svuint64_t,
69 z0_res = svldnt1sh_gather_u64base_offset_u64 (p0, z0, 6),
70 z0_res = svldnt1sh_gather_offset_u64 (p0, z0, 6))
71
72 /*
73 ** ldnt1sh_gather_62_u64_offset:
74 ** mov (x[0-9]+), #?62
75 ** ldnt1sh z0\.d, p0/z, \[z0\.d, \1\]
76 ** ret
77 */
78 TEST_LOAD_GATHER_ZS (ldnt1sh_gather_62_u64_offset, svuint64_t, svuint64_t,
79 z0_res = svldnt1sh_gather_u64base_offset_u64 (p0, z0, 62),
80 z0_res = svldnt1sh_gather_offset_u64 (p0, z0, 62))
81
82 /*
83 ** ldnt1sh_gather_64_u64_offset:
84 ** mov (x[0-9]+), #?64
85 ** ldnt1sh z0\.d, p0/z, \[z0\.d, \1\]
86 ** ret
87 */
88 TEST_LOAD_GATHER_ZS (ldnt1sh_gather_64_u64_offset, svuint64_t, svuint64_t,
89 z0_res = svldnt1sh_gather_u64base_offset_u64 (p0, z0, 64),
90 z0_res = svldnt1sh_gather_offset_u64 (p0, z0, 64))
91
92 /*
93 ** ldnt1sh_gather_x0_u64_index:
94 ** lsl (x[0-9]+), x0, #?1
95 ** ldnt1sh z0\.d, p0/z, \[z0\.d, \1\]
96 ** ret
97 */
98 TEST_LOAD_GATHER_ZS (ldnt1sh_gather_x0_u64_index, svuint64_t, svuint64_t,
99 z0_res = svldnt1sh_gather_u64base_index_u64 (p0, z0, x0),
100 z0_res = svldnt1sh_gather_index_u64 (p0, z0, x0))
101
102 /*
103 ** ldnt1sh_gather_m1_u64_index:
104 ** mov (x[0-9]+), #?-2
105 ** ldnt1sh z0\.d, p0/z, \[z0\.d, \1\]
106 ** ret
107 */
108 TEST_LOAD_GATHER_ZS (ldnt1sh_gather_m1_u64_index, svuint64_t, svuint64_t,
109 z0_res = svldnt1sh_gather_u64base_index_u64 (p0, z0, -1),
110 z0_res = svldnt1sh_gather_index_u64 (p0, z0, -1))
111
112 /*
113 ** ldnt1sh_gather_0_u64_index:
114 ** ldnt1sh z0\.d, p0/z, \[z0\.d\]
115 ** ret
116 */
117 TEST_LOAD_GATHER_ZS (ldnt1sh_gather_0_u64_index, svuint64_t, svuint64_t,
118 z0_res = svldnt1sh_gather_u64base_index_u64 (p0, z0, 0),
119 z0_res = svldnt1sh_gather_index_u64 (p0, z0, 0))
120
121 /*
122 ** ldnt1sh_gather_5_u64_index:
123 ** mov (x[0-9]+), #?10
124 ** ldnt1sh z0\.d, p0/z, \[z0\.d, \1\]
125 ** ret
126 */
127 TEST_LOAD_GATHER_ZS (ldnt1sh_gather_5_u64_index, svuint64_t, svuint64_t,
128 z0_res = svldnt1sh_gather_u64base_index_u64 (p0, z0, 5),
129 z0_res = svldnt1sh_gather_index_u64 (p0, z0, 5))
130
131 /*
132 ** ldnt1sh_gather_31_u64_index:
133 ** mov (x[0-9]+), #?62
134 ** ldnt1sh z0\.d, p0/z, \[z0\.d, \1\]
135 ** ret
136 */
137 TEST_LOAD_GATHER_ZS (ldnt1sh_gather_31_u64_index, svuint64_t, svuint64_t,
138 z0_res = svldnt1sh_gather_u64base_index_u64 (p0, z0, 31),
139 z0_res = svldnt1sh_gather_index_u64 (p0, z0, 31))
140
141 /*
142 ** ldnt1sh_gather_32_u64_index:
143 ** mov (x[0-9]+), #?64
144 ** ldnt1sh z0\.d, p0/z, \[z0\.d, \1\]
145 ** ret
146 */
147 TEST_LOAD_GATHER_ZS (ldnt1sh_gather_32_u64_index, svuint64_t, svuint64_t,
148 z0_res = svldnt1sh_gather_u64base_index_u64 (p0, z0, 32),
149 z0_res = svldnt1sh_gather_index_u64 (p0, z0, 32))
150
151 /*
152 ** ldnt1sh_gather_x0_u64_s64offset:
153 ** ldnt1sh z0\.d, p0/z, \[z0\.d, x0\]
154 ** ret
155 */
156 TEST_LOAD_GATHER_SZ (ldnt1sh_gather_x0_u64_s64offset, svuint64_t, int16_t, svint64_t,
157 z0_res = svldnt1sh_gather_s64offset_u64 (p0, x0, z0),
158 z0_res = svldnt1sh_gather_offset_u64 (p0, x0, z0))
159
160 /*
161 ** ldnt1sh_gather_tied1_u64_s64offset:
162 ** ldnt1sh z0\.d, p0/z, \[z0\.d, x0\]
163 ** ret
164 */
165 TEST_LOAD_GATHER_SZ (ldnt1sh_gather_tied1_u64_s64offset, svuint64_t, int16_t, svint64_t,
166 z0_res = svldnt1sh_gather_s64offset_u64 (p0, x0, z0),
167 z0_res = svldnt1sh_gather_offset_u64 (p0, x0, z0))
168
169 /*
170 ** ldnt1sh_gather_untied_u64_s64offset:
171 ** ldnt1sh z0\.d, p0/z, \[z1\.d, x0\]
172 ** ret
173 */
174 TEST_LOAD_GATHER_SZ (ldnt1sh_gather_untied_u64_s64offset, svuint64_t, int16_t, svint64_t,
175 z0_res = svldnt1sh_gather_s64offset_u64 (p0, x0, z1),
176 z0_res = svldnt1sh_gather_offset_u64 (p0, x0, z1))
177
178 /*
179 ** ldnt1sh_gather_x0_u64_u64offset:
180 ** ldnt1sh z0\.d, p0/z, \[z0\.d, x0\]
181 ** ret
182 */
183 TEST_LOAD_GATHER_SZ (ldnt1sh_gather_x0_u64_u64offset, svuint64_t, int16_t, svuint64_t,
184 z0_res = svldnt1sh_gather_u64offset_u64 (p0, x0, z0),
185 z0_res = svldnt1sh_gather_offset_u64 (p0, x0, z0))
186
187 /*
188 ** ldnt1sh_gather_tied1_u64_u64offset:
189 ** ldnt1sh z0\.d, p0/z, \[z0\.d, x0\]
190 ** ret
191 */
192 TEST_LOAD_GATHER_SZ (ldnt1sh_gather_tied1_u64_u64offset, svuint64_t, int16_t, svuint64_t,
193 z0_res = svldnt1sh_gather_u64offset_u64 (p0, x0, z0),
194 z0_res = svldnt1sh_gather_offset_u64 (p0, x0, z0))
195
196 /*
197 ** ldnt1sh_gather_untied_u64_u64offset:
198 ** ldnt1sh z0\.d, p0/z, \[z1\.d, x0\]
199 ** ret
200 */
201 TEST_LOAD_GATHER_SZ (ldnt1sh_gather_untied_u64_u64offset, svuint64_t, int16_t, svuint64_t,
202 z0_res = svldnt1sh_gather_u64offset_u64 (p0, x0, z1),
203 z0_res = svldnt1sh_gather_offset_u64 (p0, x0, z1))
204
205 /*
206 ** ldnt1sh_gather_x0_u64_s64index:
207 ** add (z[0-9]+\.d), z0\.d, z0\.d
208 ** ldnt1sh z0\.d, p0/z, \[\1, x0\]
209 ** ret
210 */
211 TEST_LOAD_GATHER_SZ (ldnt1sh_gather_x0_u64_s64index, svuint64_t, int16_t, svint64_t,
212 z0_res = svldnt1sh_gather_s64index_u64 (p0, x0, z0),
213 z0_res = svldnt1sh_gather_index_u64 (p0, x0, z0))
214
215 /*
216 ** ldnt1sh_gather_tied1_u64_s64index:
217 ** add (z[0-9]+\.d), z0\.d, z0\.d
218 ** ldnt1sh z0\.d, p0/z, \[\1, x0\]
219 ** ret
220 */
221 TEST_LOAD_GATHER_SZ (ldnt1sh_gather_tied1_u64_s64index, svuint64_t, int16_t, svint64_t,
222 z0_res = svldnt1sh_gather_s64index_u64 (p0, x0, z0),
223 z0_res = svldnt1sh_gather_index_u64 (p0, x0, z0))
224
225 /*
226 ** ldnt1sh_gather_untied_u64_s64index:
227 ** add (z[0-9]+\.d), z1\.d, z1\.d
228 ** ldnt1sh z0\.d, p0/z, \[\1, x0\]
229 ** ret
230 */
231 TEST_LOAD_GATHER_SZ (ldnt1sh_gather_untied_u64_s64index, svuint64_t, int16_t, svint64_t,
232 z0_res = svldnt1sh_gather_s64index_u64 (p0, x0, z1),
233 z0_res = svldnt1sh_gather_index_u64 (p0, x0, z1))
234
235 /*
236 ** ldnt1sh_gather_x0_u64_u64index:
237 ** add (z[0-9]+\.d), z0\.d, z0\.d
238 ** ldnt1sh z0\.d, p0/z, \[\1, x0\]
239 ** ret
240 */
241 TEST_LOAD_GATHER_SZ (ldnt1sh_gather_x0_u64_u64index, svuint64_t, int16_t, svuint64_t,
242 z0_res = svldnt1sh_gather_u64index_u64 (p0, x0, z0),
243 z0_res = svldnt1sh_gather_index_u64 (p0, x0, z0))
244
245 /*
246 ** ldnt1sh_gather_tied1_u64_u64index:
247 ** add (z[0-9]+\.d), z0\.d, z0\.d
248 ** ldnt1sh z0\.d, p0/z, \[\1, x0\]
249 ** ret
250 */
251 TEST_LOAD_GATHER_SZ (ldnt1sh_gather_tied1_u64_u64index, svuint64_t, int16_t, svuint64_t,
252 z0_res = svldnt1sh_gather_u64index_u64 (p0, x0, z0),
253 z0_res = svldnt1sh_gather_index_u64 (p0, x0, z0))
254
255 /*
256 ** ldnt1sh_gather_untied_u64_u64index:
257 ** add (z[0-9]+\.d), z1\.d, z1\.d
258 ** ldnt1sh z0\.d, p0/z, \[\1, x0\]
259 ** ret
260 */
261 TEST_LOAD_GATHER_SZ (ldnt1sh_gather_untied_u64_u64index, svuint64_t, int16_t, svuint64_t,
262 z0_res = svldnt1sh_gather_u64index_u64 (p0, x0, z1),
263 z0_res = svldnt1sh_gather_index_u64 (p0, x0, z1))