Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/acle/asm/prfb_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 ** prfb_gather_u32base:
8 ** prfb pldl1keep, p0, \[z0\.s\]
9 ** ret
10 */
11 TEST_PREFETCH_GATHER_ZS (prfb_gather_u32base, svuint32_t,
12 svprfb_gather_u32base (p0, z0, SV_PLDL1KEEP),
13 svprfb_gather (p0, z0, SV_PLDL1KEEP))
14
15 /*
16 ** prfb_gather_u64base:
17 ** prfb pldl1strm, p0, \[z0\.d\]
18 ** ret
19 */
20 TEST_PREFETCH_GATHER_ZS (prfb_gather_u64base, svuint64_t,
21 svprfb_gather_u64base (p0, z0, SV_PLDL1STRM),
22 svprfb_gather (p0, z0, SV_PLDL1STRM))
23
24 /*
25 ** prfb_gather_x0_u32base_offset:
26 ** prfb pldl2keep, p0, \[x0, z0\.s, uxtw\]
27 ** ret
28 */
29 TEST_PREFETCH_GATHER_ZS (prfb_gather_x0_u32base_offset, svuint32_t,
30 svprfb_gather_u32base_offset (p0, z0, x0, SV_PLDL2KEEP),
31 svprfb_gather_offset (p0, z0, x0, SV_PLDL2KEEP))
32
33 /*
34 ** prfb_gather_m1_u32base_offset:
35 ** mov (x[0-9]+), #?-1
36 ** prfb pldl2strm, p0, \[\1, z0\.s, uxtw\]
37 ** ret
38 */
39 TEST_PREFETCH_GATHER_ZS (prfb_gather_m1_u32base_offset, svuint32_t,
40 svprfb_gather_u32base_offset (p0, z0, -1, SV_PLDL2STRM),
41 svprfb_gather_offset (p0, z0, -1, SV_PLDL2STRM))
42
43 /*
44 ** prfb_gather_0_u32base_offset:
45 ** prfb pldl3keep, p0, \[z0\.s\]
46 ** ret
47 */
48 TEST_PREFETCH_GATHER_ZS (prfb_gather_0_u32base_offset, svuint32_t,
49 svprfb_gather_u32base_offset (p0, z0, 0, SV_PLDL3KEEP),
50 svprfb_gather_offset (p0, z0, 0, SV_PLDL3KEEP))
51
52 /*
53 ** prfb_gather_5_u32base_offset:
54 ** prfb pldl3strm, p0, \[z0\.s, #5\]
55 ** ret
56 */
57 TEST_PREFETCH_GATHER_ZS (prfb_gather_5_u32base_offset, svuint32_t,
58 svprfb_gather_u32base_offset (p0, z0, 5, SV_PLDL3STRM),
59 svprfb_gather_offset (p0, z0, 5, SV_PLDL3STRM))
60
61 /*
62 ** prfb_gather_31_u32base_offset:
63 ** prfb pstl1keep, p0, \[z0\.s, #31\]
64 ** ret
65 */
66 TEST_PREFETCH_GATHER_ZS (prfb_gather_31_u32base_offset, svuint32_t,
67 svprfb_gather_u32base_offset (p0, z0, 31, SV_PSTL1KEEP),
68 svprfb_gather_offset (p0, z0, 31, SV_PSTL1KEEP))
69
70 /*
71 ** prfb_gather_32_u32base_offset:
72 ** mov (x[0-9]+), #?32
73 ** prfb pstl1strm, p0, \[\1, z0\.s, uxtw\]
74 ** ret
75 */
76 TEST_PREFETCH_GATHER_ZS (prfb_gather_32_u32base_offset, svuint32_t,
77 svprfb_gather_u32base_offset (p0, z0, 32, SV_PSTL1STRM),
78 svprfb_gather_offset (p0, z0, 32, SV_PSTL1STRM))
79
80 /*
81 ** prfb_gather_x0_u64base_offset:
82 ** prfb pstl2keep, p0, \[x0, z0\.d\]
83 ** ret
84 */
85 TEST_PREFETCH_GATHER_ZS (prfb_gather_x0_u64base_offset, svuint64_t,
86 svprfb_gather_u64base_offset (p0, z0, x0, SV_PSTL2KEEP),
87 svprfb_gather_offset (p0, z0, x0, SV_PSTL2KEEP))
88
89 /*
90 ** prfb_gather_m1_u64base_offset:
91 ** mov (x[0-9]+), #?-1
92 ** prfb pstl2strm, p0, \[\1, z0\.d\]
93 ** ret
94 */
95 TEST_PREFETCH_GATHER_ZS (prfb_gather_m1_u64base_offset, svuint64_t,
96 svprfb_gather_u64base_offset (p0, z0, -1, SV_PSTL2STRM),
97 svprfb_gather_offset (p0, z0, -1, SV_PSTL2STRM))
98
99 /*
100 ** prfb_gather_0_u64base_offset:
101 ** prfb pstl3keep, p0, \[z0\.d\]
102 ** ret
103 */
104 TEST_PREFETCH_GATHER_ZS (prfb_gather_0_u64base_offset, svuint64_t,
105 svprfb_gather_u64base_offset (p0, z0, 0, SV_PSTL3KEEP),
106 svprfb_gather_offset (p0, z0, 0, SV_PSTL3KEEP))
107
108 /*
109 ** prfb_gather_5_u64base_offset:
110 ** prfb pstl3strm, p0, \[z0\.d, #5\]
111 ** ret
112 */
113 TEST_PREFETCH_GATHER_ZS (prfb_gather_5_u64base_offset, svuint64_t,
114 svprfb_gather_u64base_offset (p0, z0, 5, SV_PSTL3STRM),
115 svprfb_gather_offset (p0, z0, 5, SV_PSTL3STRM))
116
117 /*
118 ** prfb_gather_31_u64base_offset:
119 ** prfb pldl1keep, p0, \[z0\.d, #31\]
120 ** ret
121 */
122 TEST_PREFETCH_GATHER_ZS (prfb_gather_31_u64base_offset, svuint64_t,
123 svprfb_gather_u64base_offset (p0, z0, 31, SV_PLDL1KEEP),
124 svprfb_gather_offset (p0, z0, 31, SV_PLDL1KEEP))
125
126 /*
127 ** prfb_gather_32_u64base_offset:
128 ** mov (x[0-9]+), #?32
129 ** prfb pldl1strm, p0, \[\1, z0\.d\]
130 ** ret
131 */
132 TEST_PREFETCH_GATHER_ZS (prfb_gather_32_u64base_offset, svuint64_t,
133 svprfb_gather_u64base_offset (p0, z0, 32, SV_PLDL1STRM),
134 svprfb_gather_offset (p0, z0, 32, SV_PLDL1STRM))
135
136 /*
137 ** prfb_gather_x0_s32offset:
138 ** prfb pldl2keep, p0, \[x0, z0\.s, sxtw\]
139 ** ret
140 */
141 TEST_PREFETCH_GATHER_SZ (prfb_gather_x0_s32offset, svint32_t,
142 svprfb_gather_s32offset (p0, x0, z0, SV_PLDL2KEEP),
143 svprfb_gather_offset (p0, x0, z0, SV_PLDL2KEEP))
144
145 /*
146 ** prfb_gather_s32offset:
147 ** prfb pldl2strm, p0, \[x0, z1\.s, sxtw\]
148 ** ret
149 */
150 TEST_PREFETCH_GATHER_SZ (prfb_gather_s32offset, svint32_t,
151 svprfb_gather_s32offset (p0, x0, z1, SV_PLDL2STRM),
152 svprfb_gather_offset (p0, x0, z1, SV_PLDL2STRM))
153
154 /*
155 ** prfb_gather_x0_u32offset:
156 ** prfb pldl3keep, p0, \[x0, z0\.s, uxtw\]
157 ** ret
158 */
159 TEST_PREFETCH_GATHER_SZ (prfb_gather_x0_u32offset, svuint32_t,
160 svprfb_gather_u32offset (p0, x0, z0, SV_PLDL3KEEP),
161 svprfb_gather_offset (p0, x0, z0, SV_PLDL3KEEP))
162
163 /*
164 ** prfb_gather_u32offset:
165 ** prfb pldl3strm, p0, \[x0, z1\.s, uxtw\]
166 ** ret
167 */
168 TEST_PREFETCH_GATHER_SZ (prfb_gather_u32offset, svuint32_t,
169 svprfb_gather_u32offset (p0, x0, z1, SV_PLDL3STRM),
170 svprfb_gather_offset (p0, x0, z1, SV_PLDL3STRM))
171
172 /*
173 ** prfb_gather_x0_s64offset:
174 ** prfb pstl1keep, p0, \[x0, z0\.d\]
175 ** ret
176 */
177 TEST_PREFETCH_GATHER_SZ (prfb_gather_x0_s64offset, svint64_t,
178 svprfb_gather_s64offset (p0, x0, z0, SV_PSTL1KEEP),
179 svprfb_gather_offset (p0, x0, z0, SV_PSTL1KEEP))
180
181 /*
182 ** prfb_gather_s64offset:
183 ** prfb pstl1strm, p0, \[x0, z1\.d\]
184 ** ret
185 */
186 TEST_PREFETCH_GATHER_SZ (prfb_gather_s64offset, svint64_t,
187 svprfb_gather_s64offset (p0, x0, z1, SV_PSTL1STRM),
188 svprfb_gather_offset (p0, x0, z1, SV_PSTL1STRM))
189
190 /*
191 ** prfb_gather_ext_s64offset:
192 ** prfb pstl1strm, p0, \[x0, z1\.d, sxtw\]
193 ** ret
194 */
195 TEST_PREFETCH_GATHER_SZ (prfb_gather_ext_s64offset, svint64_t,
196 svprfb_gather_s64offset (p0, x0, svextw_s64_x (p0, z1), SV_PSTL1STRM),
197 svprfb_gather_offset (p0, x0, svextw_x (p0, z1), SV_PSTL1STRM))
198
199 /*
200 ** prfb_gather_x0_u64offset:
201 ** prfb pstl2keep, p0, \[x0, z0\.d\]
202 ** ret
203 */
204 TEST_PREFETCH_GATHER_SZ (prfb_gather_x0_u64offset, svuint64_t,
205 svprfb_gather_u64offset (p0, x0, z0, SV_PSTL2KEEP),
206 svprfb_gather_offset (p0, x0, z0, SV_PSTL2KEEP))
207
208 /*
209 ** prfb_gather_u64offset:
210 ** prfb pstl2strm, p0, \[x0, z1\.d\]
211 ** ret
212 */
213 TEST_PREFETCH_GATHER_SZ (prfb_gather_u64offset, svuint64_t,
214 svprfb_gather_u64offset (p0, x0, z1, SV_PSTL2STRM),
215 svprfb_gather_offset (p0, x0, z1, SV_PSTL2STRM))
216
217 /*
218 ** prfb_gather_ext_u64offset:
219 ** prfb pstl2strm, p0, \[x0, z1\.d, uxtw\]
220 ** ret
221 */
222 TEST_PREFETCH_GATHER_SZ (prfb_gather_ext_u64offset, svuint64_t,
223 svprfb_gather_u64offset (p0, x0, svextw_u64_x (p0, z1), SV_PSTL2STRM),
224 svprfb_gather_offset (p0, x0, svextw_x (p0, z1), SV_PSTL2STRM))