Debian Codegraph @

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