Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/acle/asm/prfw_gather.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 ** prfw_gather_u32base:
8 ** prfw pldl1keep, p0, \[z0\.s\]
9 ** ret
10 */
11 TEST_PREFETCH_GATHER_ZS (prfw_gather_u32base, svuint32_t,
12 svprfw_gather_u32base (p0, z0, SV_PLDL1KEEP),
13 svprfw_gather (p0, z0, SV_PLDL1KEEP))
14
15 /*
16 ** prfw_gather_u64base:
17 ** prfw pldl1strm, p0, \[z0\.d\]
18 ** ret
19 */
20 TEST_PREFETCH_GATHER_ZS (prfw_gather_u64base, svuint64_t,
21 svprfw_gather_u64base (p0, z0, SV_PLDL1STRM),
22 svprfw_gather (p0, z0, SV_PLDL1STRM))
23
24 /*
25 ** prfw_gather_x0_u32base_index:
26 ** lsl (x[0-9]+), x0, #?2
27 ** prfb pldl2keep, p0, \[\1, z0\.s, uxtw\]
28 ** ret
29 */
30 TEST_PREFETCH_GATHER_ZS (prfw_gather_x0_u32base_index, svuint32_t,
31 svprfw_gather_u32base_index (p0, z0, x0, SV_PLDL2KEEP),
32 svprfw_gather_index (p0, z0, x0, SV_PLDL2KEEP))
33
34 /*
35 ** prfw_gather_m1_u32base_index:
36 ** mov (x[0-9]+), #?-4
37 ** prfb pldl2strm, p0, \[\1, z0\.s, uxtw\]
38 ** ret
39 */
40 TEST_PREFETCH_GATHER_ZS (prfw_gather_m1_u32base_index, svuint32_t,
41 svprfw_gather_u32base_index (p0, z0, -1, SV_PLDL2STRM),
42 svprfw_gather_index (p0, z0, -1, SV_PLDL2STRM))
43
44 /*
45 ** prfw_gather_0_u32base_index:
46 ** prfw pldl3keep, p0, \[z0\.s\]
47 ** ret
48 */
49 TEST_PREFETCH_GATHER_ZS (prfw_gather_0_u32base_index, svuint32_t,
50 svprfw_gather_u32base_index (p0, z0, 0, SV_PLDL3KEEP),
51 svprfw_gather_index (p0, z0, 0, SV_PLDL3KEEP))
52
53 /*
54 ** prfw_gather_5_u32base_index:
55 ** prfw pldl3strm, p0, \[z0\.s, #20\]
56 ** ret
57 */
58 TEST_PREFETCH_GATHER_ZS (prfw_gather_5_u32base_index, svuint32_t,
59 svprfw_gather_u32base_index (p0, z0, 5, SV_PLDL3STRM),
60 svprfw_gather_index (p0, z0, 5, SV_PLDL3STRM))
61
62 /*
63 ** prfw_gather_31_u32base_index:
64 ** prfw pstl1keep, p0, \[z0\.s, #124\]
65 ** ret
66 */
67 TEST_PREFETCH_GATHER_ZS (prfw_gather_31_u32base_index, svuint32_t,
68 svprfw_gather_u32base_index (p0, z0, 31, SV_PSTL1KEEP),
69 svprfw_gather_index (p0, z0, 31, SV_PSTL1KEEP))
70
71 /*
72 ** prfw_gather_32_u32base_index:
73 ** mov (x[0-9]+), #?128
74 ** prfb pstl1strm, p0, \[\1, z0\.s, uxtw\]
75 ** ret
76 */
77 TEST_PREFETCH_GATHER_ZS (prfw_gather_32_u32base_index, svuint32_t,
78 svprfw_gather_u32base_index (p0, z0, 32, SV_PSTL1STRM),
79 svprfw_gather_index (p0, z0, 32, SV_PSTL1STRM))
80
81 /*
82 ** prfw_gather_x0_u64base_index:
83 ** lsl (x[0-9]+), x0, #?2
84 ** prfb pstl2keep, p0, \[\1, z0\.d\]
85 ** ret
86 */
87 TEST_PREFETCH_GATHER_ZS (prfw_gather_x0_u64base_index, svuint64_t,
88 svprfw_gather_u64base_index (p0, z0, x0, SV_PSTL2KEEP),
89 svprfw_gather_index (p0, z0, x0, SV_PSTL2KEEP))
90
91 /*
92 ** prfw_gather_m1_u64base_index:
93 ** mov (x[0-9]+), #?-4
94 ** prfb pstl2strm, p0, \[\1, z0\.d\]
95 ** ret
96 */
97 TEST_PREFETCH_GATHER_ZS (prfw_gather_m1_u64base_index, svuint64_t,
98 svprfw_gather_u64base_index (p0, z0, -1, SV_PSTL2STRM),
99 svprfw_gather_index (p0, z0, -1, SV_PSTL2STRM))
100
101 /*
102 ** prfw_gather_0_u64base_index:
103 ** prfw pstl3keep, p0, \[z0\.d\]
104 ** ret
105 */
106 TEST_PREFETCH_GATHER_ZS (prfw_gather_0_u64base_index, svuint64_t,
107 svprfw_gather_u64base_index (p0, z0, 0, SV_PSTL3KEEP),
108 svprfw_gather_index (p0, z0, 0, SV_PSTL3KEEP))
109
110 /*
111 ** prfw_gather_5_u64base_index:
112 ** prfw pstl3strm, p0, \[z0\.d, #20\]
113 ** ret
114 */
115 TEST_PREFETCH_GATHER_ZS (prfw_gather_5_u64base_index, svuint64_t,
116 svprfw_gather_u64base_index (p0, z0, 5, SV_PSTL3STRM),
117 svprfw_gather_index (p0, z0, 5, SV_PSTL3STRM))
118
119 /*
120 ** prfw_gather_31_u64base_index:
121 ** prfw pldl1keep, p0, \[z0\.d, #124\]
122 ** ret
123 */
124 TEST_PREFETCH_GATHER_ZS (prfw_gather_31_u64base_index, svuint64_t,
125 svprfw_gather_u64base_index (p0, z0, 31, SV_PLDL1KEEP),
126 svprfw_gather_index (p0, z0, 31, SV_PLDL1KEEP))
127
128 /*
129 ** prfw_gather_32_u64base_index:
130 ** mov (x[0-9]+), #?128
131 ** prfb pldl1strm, p0, \[\1, z0\.d\]
132 ** ret
133 */
134 TEST_PREFETCH_GATHER_ZS (prfw_gather_32_u64base_index, svuint64_t,
135 svprfw_gather_u64base_index (p0, z0, 32, SV_PLDL1STRM),
136 svprfw_gather_index (p0, z0, 32, SV_PLDL1STRM))
137
138 /*
139 ** prfw_gather_x0_s32index:
140 ** prfw pldl2keep, p0, \[x0, z0\.s, sxtw 2\]
141 ** ret
142 */
143 TEST_PREFETCH_GATHER_SZ (prfw_gather_x0_s32index, svint32_t,
144 svprfw_gather_s32index (p0, x0, z0, SV_PLDL2KEEP),
145 svprfw_gather_index (p0, x0, z0, SV_PLDL2KEEP))
146
147 /*
148 ** prfw_gather_s32index:
149 ** prfw pldl2strm, p0, \[x0, z1\.s, sxtw 2\]
150 ** ret
151 */
152 TEST_PREFETCH_GATHER_SZ (prfw_gather_s32index, svint32_t,
153 svprfw_gather_s32index (p0, x0, z1, SV_PLDL2STRM),
154 svprfw_gather_index (p0, x0, z1, SV_PLDL2STRM))
155
156 /*
157 ** prfw_gather_x0_u32index:
158 ** prfw pldl3keep, p0, \[x0, z0\.s, uxtw 2\]
159 ** ret
160 */
161 TEST_PREFETCH_GATHER_SZ (prfw_gather_x0_u32index, svuint32_t,
162 svprfw_gather_u32index (p0, x0, z0, SV_PLDL3KEEP),
163 svprfw_gather_index (p0, x0, z0, SV_PLDL3KEEP))
164
165 /*
166 ** prfw_gather_u32index:
167 ** prfw pldl3strm, p0, \[x0, z1\.s, uxtw 2\]
168 ** ret
169 */
170 TEST_PREFETCH_GATHER_SZ (prfw_gather_u32index, svuint32_t,
171 svprfw_gather_u32index (p0, x0, z1, SV_PLDL3STRM),
172 svprfw_gather_index (p0, x0, z1, SV_PLDL3STRM))
173
174 /*
175 ** prfw_gather_x0_s64index:
176 ** prfw pstl1keep, p0, \[x0, z0\.d, lsl 2\]
177 ** ret
178 */
179 TEST_PREFETCH_GATHER_SZ (prfw_gather_x0_s64index, svint64_t,
180 svprfw_gather_s64index (p0, x0, z0, SV_PSTL1KEEP),
181 svprfw_gather_index (p0, x0, z0, SV_PSTL1KEEP))
182
183 /*
184 ** prfw_gather_s64index:
185 ** prfw pstl1strm, p0, \[x0, z1\.d, lsl 2\]
186 ** ret
187 */
188 TEST_PREFETCH_GATHER_SZ (prfw_gather_s64index, svint64_t,
189 svprfw_gather_s64index (p0, x0, z1, SV_PSTL1STRM),
190 svprfw_gather_index (p0, x0, z1, SV_PSTL1STRM))
191
192 /*
193 ** prfw_gather_ext_s64index:
194 ** prfw pstl1strm, p0, \[x0, z1\.d, sxtw 2\]
195 ** ret
196 */
197 TEST_PREFETCH_GATHER_SZ (prfw_gather_ext_s64index, svint64_t,
198 svprfw_gather_s64index (p0, x0, svextw_s64_x (p0, z1), SV_PSTL1STRM),
199 svprfw_gather_index (p0, x0, svextw_x (p0, z1), SV_PSTL1STRM))
200
201 /*
202 ** prfw_gather_x0_u64index:
203 ** prfw pstl2keep, p0, \[x0, z0\.d, lsl 2\]
204 ** ret
205 */
206 TEST_PREFETCH_GATHER_SZ (prfw_gather_x0_u64index, svuint64_t,
207 svprfw_gather_u64index (p0, x0, z0, SV_PSTL2KEEP),
208 svprfw_gather_index (p0, x0, z0, SV_PSTL2KEEP))
209
210 /*
211 ** prfw_gather_u64index:
212 ** prfw pstl2strm, p0, \[x0, z1\.d, lsl 2\]
213 ** ret
214 */
215 TEST_PREFETCH_GATHER_SZ (prfw_gather_u64index, svuint64_t,
216 svprfw_gather_u64index (p0, x0, z1, SV_PSTL2STRM),
217 svprfw_gather_index (p0, x0, z1, SV_PSTL2STRM))
218
219 /*
220 ** prfw_gather_ext_u64index:
221 ** prfw pstl2strm, p0, \[x0, z1\.d, uxtw 2\]
222 ** ret
223 */
224 TEST_PREFETCH_GATHER_SZ (prfw_gather_ext_u64index, svuint64_t,
225 svprfw_gather_u64index (p0, x0, svextw_u64_x (p0, z1), SV_PSTL2STRM),
226 svprfw_gather_index (p0, x0, svextw_x (p0, z1), SV_PSTL2STRM))