1 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
2 // REQUIRES: aarch64-registered-target
3 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -S -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
4 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -S -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
5 // RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64-none-linux-gnu -target-feature +sve -S -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
6 // RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64-none-linux-gnu -target-feature +sve -S -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
7 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -S -disable-O0-optnone -Werror -Wall -o /dev/null %s
10 #ifdef SVE_OVERLOADED_FORMS
11 // A simple used,unused... macro, long enough to represent any SVE builtin.
12 #define SVE_ACLE_FUNC(A1,A2_UNUSED,A3,A4_UNUSED) A1##A3
14 #define SVE_ACLE_FUNC(A1,A2,A3,A4) A1##A2##A3##A4
17 // CHECK-LABEL: @test_svprfb(
19 // CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[BASE:%.*]], i32 0)
20 // CHECK-NEXT: ret void
22 // CPP-CHECK-LABEL: @_Z11test_svprfbu10__SVBool_tPKv(
23 // CPP-CHECK-NEXT: entry:
24 // CPP-CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[BASE:%.*]], i32 0)
25 // CPP-CHECK-NEXT: ret void
27 void test_svprfb(svbool_t pg
, const void *base
)
29 return svprfb(pg
, base
, SV_PLDL1KEEP
);
32 // CHECK-LABEL: @test_svprfb_1(
34 // CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[BASE:%.*]], i32 1)
35 // CHECK-NEXT: ret void
37 // CPP-CHECK-LABEL: @_Z13test_svprfb_1u10__SVBool_tPKv(
38 // CPP-CHECK-NEXT: entry:
39 // CPP-CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[BASE:%.*]], i32 1)
40 // CPP-CHECK-NEXT: ret void
42 void test_svprfb_1(svbool_t pg
, const void *base
)
44 return svprfb(pg
, base
, SV_PLDL1STRM
);
47 // CHECK-LABEL: @test_svprfb_2(
49 // CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[BASE:%.*]], i32 2)
50 // CHECK-NEXT: ret void
52 // CPP-CHECK-LABEL: @_Z13test_svprfb_2u10__SVBool_tPKv(
53 // CPP-CHECK-NEXT: entry:
54 // CPP-CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[BASE:%.*]], i32 2)
55 // CPP-CHECK-NEXT: ret void
57 void test_svprfb_2(svbool_t pg
, const void *base
)
59 return svprfb(pg
, base
, SV_PLDL2KEEP
);
62 // CHECK-LABEL: @test_svprfb_3(
64 // CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[BASE:%.*]], i32 3)
65 // CHECK-NEXT: ret void
67 // CPP-CHECK-LABEL: @_Z13test_svprfb_3u10__SVBool_tPKv(
68 // CPP-CHECK-NEXT: entry:
69 // CPP-CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[BASE:%.*]], i32 3)
70 // CPP-CHECK-NEXT: ret void
72 void test_svprfb_3(svbool_t pg
, const void *base
)
74 return svprfb(pg
, base
, SV_PLDL2STRM
);
77 // CHECK-LABEL: @test_svprfb_4(
79 // CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[BASE:%.*]], i32 4)
80 // CHECK-NEXT: ret void
82 // CPP-CHECK-LABEL: @_Z13test_svprfb_4u10__SVBool_tPKv(
83 // CPP-CHECK-NEXT: entry:
84 // CPP-CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[BASE:%.*]], i32 4)
85 // CPP-CHECK-NEXT: ret void
87 void test_svprfb_4(svbool_t pg
, const void *base
)
89 return svprfb(pg
, base
, SV_PLDL3KEEP
);
92 // CHECK-LABEL: @test_svprfb_5(
94 // CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[BASE:%.*]], i32 5)
95 // CHECK-NEXT: ret void
97 // CPP-CHECK-LABEL: @_Z13test_svprfb_5u10__SVBool_tPKv(
98 // CPP-CHECK-NEXT: entry:
99 // CPP-CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[BASE:%.*]], i32 5)
100 // CPP-CHECK-NEXT: ret void
102 void test_svprfb_5(svbool_t pg
, const void *base
)
104 return svprfb(pg
, base
, SV_PLDL3STRM
);
107 // CHECK-LABEL: @test_svprfb_6(
108 // CHECK-NEXT: entry:
109 // CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[BASE:%.*]], i32 8)
110 // CHECK-NEXT: ret void
112 // CPP-CHECK-LABEL: @_Z13test_svprfb_6u10__SVBool_tPKv(
113 // CPP-CHECK-NEXT: entry:
114 // CPP-CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[BASE:%.*]], i32 8)
115 // CPP-CHECK-NEXT: ret void
117 void test_svprfb_6(svbool_t pg
, const void *base
)
119 return svprfb(pg
, base
, SV_PSTL1KEEP
);
122 // CHECK-LABEL: @test_svprfb_7(
123 // CHECK-NEXT: entry:
124 // CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[BASE:%.*]], i32 9)
125 // CHECK-NEXT: ret void
127 // CPP-CHECK-LABEL: @_Z13test_svprfb_7u10__SVBool_tPKv(
128 // CPP-CHECK-NEXT: entry:
129 // CPP-CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[BASE:%.*]], i32 9)
130 // CPP-CHECK-NEXT: ret void
132 void test_svprfb_7(svbool_t pg
, const void *base
)
134 return svprfb(pg
, base
, SV_PSTL1STRM
);
137 // CHECK-LABEL: @test_svprfb_8(
138 // CHECK-NEXT: entry:
139 // CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[BASE:%.*]], i32 10)
140 // CHECK-NEXT: ret void
142 // CPP-CHECK-LABEL: @_Z13test_svprfb_8u10__SVBool_tPKv(
143 // CPP-CHECK-NEXT: entry:
144 // CPP-CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[BASE:%.*]], i32 10)
145 // CPP-CHECK-NEXT: ret void
147 void test_svprfb_8(svbool_t pg
, const void *base
)
149 return svprfb(pg
, base
, SV_PSTL2KEEP
);
152 // CHECK-LABEL: @test_svprfb_9(
153 // CHECK-NEXT: entry:
154 // CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[BASE:%.*]], i32 11)
155 // CHECK-NEXT: ret void
157 // CPP-CHECK-LABEL: @_Z13test_svprfb_9u10__SVBool_tPKv(
158 // CPP-CHECK-NEXT: entry:
159 // CPP-CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[BASE:%.*]], i32 11)
160 // CPP-CHECK-NEXT: ret void
162 void test_svprfb_9(svbool_t pg
, const void *base
)
164 return svprfb(pg
, base
, SV_PSTL2STRM
);
167 // CHECK-LABEL: @test_svprfb_10(
168 // CHECK-NEXT: entry:
169 // CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[BASE:%.*]], i32 12)
170 // CHECK-NEXT: ret void
172 // CPP-CHECK-LABEL: @_Z14test_svprfb_10u10__SVBool_tPKv(
173 // CPP-CHECK-NEXT: entry:
174 // CPP-CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[BASE:%.*]], i32 12)
175 // CPP-CHECK-NEXT: ret void
177 void test_svprfb_10(svbool_t pg
, const void *base
)
179 return svprfb(pg
, base
, SV_PSTL3KEEP
);
182 // CHECK-LABEL: @test_svprfb_11(
183 // CHECK-NEXT: entry:
184 // CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[BASE:%.*]], i32 13)
185 // CHECK-NEXT: ret void
187 // CPP-CHECK-LABEL: @_Z14test_svprfb_11u10__SVBool_tPKv(
188 // CPP-CHECK-NEXT: entry:
189 // CPP-CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[BASE:%.*]], i32 13)
190 // CPP-CHECK-NEXT: ret void
192 void test_svprfb_11(svbool_t pg
, const void *base
)
194 return svprfb(pg
, base
, SV_PSTL3STRM
);
197 // CHECK-LABEL: @test_svprfb_vnum(
198 // CHECK-NEXT: entry:
199 // CHECK-NEXT: [[TMP0:%.*]] = getelementptr <vscale x 16 x i8>, ptr [[BASE:%.*]], i64 [[VNUM:%.*]]
200 // CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[TMP0]], i32 0)
201 // CHECK-NEXT: ret void
203 // CPP-CHECK-LABEL: @_Z16test_svprfb_vnumu10__SVBool_tPKvl(
204 // CPP-CHECK-NEXT: entry:
205 // CPP-CHECK-NEXT: [[TMP0:%.*]] = getelementptr <vscale x 16 x i8>, ptr [[BASE:%.*]], i64 [[VNUM:%.*]]
206 // CPP-CHECK-NEXT: tail call void @llvm.aarch64.sve.prf.nxv16i1(<vscale x 16 x i1> [[PG:%.*]], ptr [[TMP0]], i32 0)
207 // CPP-CHECK-NEXT: ret void
209 void test_svprfb_vnum(svbool_t pg
, const void *base
, int64_t vnum
)
211 return svprfb_vnum(pg
, base
, vnum
, SV_PLDL1KEEP
);
214 // CHECK-LABEL: @test_svprfb_gather_u32base(
215 // CHECK-NEXT: entry:
216 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG:%.*]])
217 // CHECK-NEXT: tail call void @llvm.aarch64.sve.prfb.gather.scalar.offset.nxv4i32(<vscale x 4 x i1> [[TMP0]], <vscale x 4 x i32> [[BASES:%.*]], i64 0, i32 0)
218 // CHECK-NEXT: ret void
220 // CPP-CHECK-LABEL: @_Z26test_svprfb_gather_u32baseu10__SVBool_tu12__SVUint32_t(
221 // CPP-CHECK-NEXT: entry:
222 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG:%.*]])
223 // CPP-CHECK-NEXT: tail call void @llvm.aarch64.sve.prfb.gather.scalar.offset.nxv4i32(<vscale x 4 x i1> [[TMP0]], <vscale x 4 x i32> [[BASES:%.*]], i64 0, i32 0)
224 // CPP-CHECK-NEXT: ret void
226 void test_svprfb_gather_u32base(svbool_t pg
, svuint32_t bases
)
228 return SVE_ACLE_FUNC(svprfb_gather
,_u32base
,,)(pg
, bases
, SV_PLDL1KEEP
);
231 // CHECK-LABEL: @test_svprfb_gather_u64base(
232 // CHECK-NEXT: entry:
233 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG:%.*]])
234 // CHECK-NEXT: tail call void @llvm.aarch64.sve.prfb.gather.scalar.offset.nxv2i64(<vscale x 2 x i1> [[TMP0]], <vscale x 2 x i64> [[BASES:%.*]], i64 0, i32 0)
235 // CHECK-NEXT: ret void
237 // CPP-CHECK-LABEL: @_Z26test_svprfb_gather_u64baseu10__SVBool_tu12__SVUint64_t(
238 // CPP-CHECK-NEXT: entry:
239 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG:%.*]])
240 // CPP-CHECK-NEXT: tail call void @llvm.aarch64.sve.prfb.gather.scalar.offset.nxv2i64(<vscale x 2 x i1> [[TMP0]], <vscale x 2 x i64> [[BASES:%.*]], i64 0, i32 0)
241 // CPP-CHECK-NEXT: ret void
243 void test_svprfb_gather_u64base(svbool_t pg
, svuint64_t bases
)
245 return SVE_ACLE_FUNC(svprfb_gather
,_u64base
,,)(pg
, bases
, SV_PLDL1KEEP
);
248 // CHECK-LABEL: @test_svprfb_gather_s32offset(
249 // CHECK-NEXT: entry:
250 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG:%.*]])
251 // CHECK-NEXT: tail call void @llvm.aarch64.sve.prfb.gather.sxtw.index.nxv4i32(<vscale x 4 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 4 x i32> [[OFFSETS:%.*]], i32 0)
252 // CHECK-NEXT: ret void
254 // CPP-CHECK-LABEL: @_Z28test_svprfb_gather_s32offsetu10__SVBool_tPKvu11__SVInt32_t(
255 // CPP-CHECK-NEXT: entry:
256 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG:%.*]])
257 // CPP-CHECK-NEXT: tail call void @llvm.aarch64.sve.prfb.gather.sxtw.index.nxv4i32(<vscale x 4 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 4 x i32> [[OFFSETS:%.*]], i32 0)
258 // CPP-CHECK-NEXT: ret void
260 void test_svprfb_gather_s32offset(svbool_t pg
, const void *base
, svint32_t offsets
)
262 return SVE_ACLE_FUNC(svprfb_gather_
,s32
,offset
,)(pg
, base
, offsets
, SV_PLDL1KEEP
);
265 // CHECK-LABEL: @test_svprfb_gather_s64offset(
266 // CHECK-NEXT: entry:
267 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG:%.*]])
268 // CHECK-NEXT: tail call void @llvm.aarch64.sve.prfb.gather.index.nxv2i64(<vscale x 2 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFFSETS:%.*]], i32 0)
269 // CHECK-NEXT: ret void
271 // CPP-CHECK-LABEL: @_Z28test_svprfb_gather_s64offsetu10__SVBool_tPKvu11__SVInt64_t(
272 // CPP-CHECK-NEXT: entry:
273 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG:%.*]])
274 // CPP-CHECK-NEXT: tail call void @llvm.aarch64.sve.prfb.gather.index.nxv2i64(<vscale x 2 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFFSETS:%.*]], i32 0)
275 // CPP-CHECK-NEXT: ret void
277 void test_svprfb_gather_s64offset(svbool_t pg
, const void *base
, svint64_t offsets
)
279 return SVE_ACLE_FUNC(svprfb_gather_
,s64
,offset
,)(pg
, base
, offsets
, SV_PLDL1KEEP
);
282 // CHECK-LABEL: @test_svprfb_gather_u32offset(
283 // CHECK-NEXT: entry:
284 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG:%.*]])
285 // CHECK-NEXT: tail call void @llvm.aarch64.sve.prfb.gather.uxtw.index.nxv4i32(<vscale x 4 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 4 x i32> [[OFFSETS:%.*]], i32 0)
286 // CHECK-NEXT: ret void
288 // CPP-CHECK-LABEL: @_Z28test_svprfb_gather_u32offsetu10__SVBool_tPKvu12__SVUint32_t(
289 // CPP-CHECK-NEXT: entry:
290 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG:%.*]])
291 // CPP-CHECK-NEXT: tail call void @llvm.aarch64.sve.prfb.gather.uxtw.index.nxv4i32(<vscale x 4 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 4 x i32> [[OFFSETS:%.*]], i32 0)
292 // CPP-CHECK-NEXT: ret void
294 void test_svprfb_gather_u32offset(svbool_t pg
, const void *base
, svuint32_t offsets
)
296 return SVE_ACLE_FUNC(svprfb_gather_
,u32
,offset
,)(pg
, base
, offsets
, SV_PLDL1KEEP
);
299 // CHECK-LABEL: @test_svprfb_gather_u64offset(
300 // CHECK-NEXT: entry:
301 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG:%.*]])
302 // CHECK-NEXT: tail call void @llvm.aarch64.sve.prfb.gather.index.nxv2i64(<vscale x 2 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFFSETS:%.*]], i32 0)
303 // CHECK-NEXT: ret void
305 // CPP-CHECK-LABEL: @_Z28test_svprfb_gather_u64offsetu10__SVBool_tPKvu12__SVUint64_t(
306 // CPP-CHECK-NEXT: entry:
307 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG:%.*]])
308 // CPP-CHECK-NEXT: tail call void @llvm.aarch64.sve.prfb.gather.index.nxv2i64(<vscale x 2 x i1> [[TMP0]], ptr [[BASE:%.*]], <vscale x 2 x i64> [[OFFSETS:%.*]], i32 0)
309 // CPP-CHECK-NEXT: ret void
311 void test_svprfb_gather_u64offset(svbool_t pg
, const void *base
, svuint64_t offsets
)
313 return SVE_ACLE_FUNC(svprfb_gather_
,u64
,offset
,)(pg
, base
, offsets
, SV_PLDL1KEEP
);
316 // CHECK-LABEL: @test_svprfb_gather_u32base_offset(
317 // CHECK-NEXT: entry:
318 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG:%.*]])
319 // CHECK-NEXT: tail call void @llvm.aarch64.sve.prfb.gather.scalar.offset.nxv4i32(<vscale x 4 x i1> [[TMP0]], <vscale x 4 x i32> [[BASES:%.*]], i64 [[OFFSET:%.*]], i32 0)
320 // CHECK-NEXT: ret void
322 // CPP-CHECK-LABEL: @_Z33test_svprfb_gather_u32base_offsetu10__SVBool_tu12__SVUint32_tl(
323 // CPP-CHECK-NEXT: entry:
324 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> [[PG:%.*]])
325 // CPP-CHECK-NEXT: tail call void @llvm.aarch64.sve.prfb.gather.scalar.offset.nxv4i32(<vscale x 4 x i1> [[TMP0]], <vscale x 4 x i32> [[BASES:%.*]], i64 [[OFFSET:%.*]], i32 0)
326 // CPP-CHECK-NEXT: ret void
328 void test_svprfb_gather_u32base_offset(svbool_t pg
, svuint32_t bases
, int64_t offset
)
330 return svprfb_gather_u32base_offset(pg
, bases
, offset
, SV_PLDL1KEEP
);
331 return SVE_ACLE_FUNC(svprfb_gather
,_u32base
,_offset
,)(pg
, bases
, offset
, SV_PLDL1KEEP
);
334 // CHECK-LABEL: @test_svprfb_gather_u64base_offset(
335 // CHECK-NEXT: entry:
336 // CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG:%.*]])
337 // CHECK-NEXT: tail call void @llvm.aarch64.sve.prfb.gather.scalar.offset.nxv2i64(<vscale x 2 x i1> [[TMP0]], <vscale x 2 x i64> [[BASES:%.*]], i64 [[OFFSET:%.*]], i32 0)
338 // CHECK-NEXT: ret void
340 // CPP-CHECK-LABEL: @_Z33test_svprfb_gather_u64base_offsetu10__SVBool_tu12__SVUint64_tl(
341 // CPP-CHECK-NEXT: entry:
342 // CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> [[PG:%.*]])
343 // CPP-CHECK-NEXT: tail call void @llvm.aarch64.sve.prfb.gather.scalar.offset.nxv2i64(<vscale x 2 x i1> [[TMP0]], <vscale x 2 x i64> [[BASES:%.*]], i64 [[OFFSET:%.*]], i32 0)
344 // CPP-CHECK-NEXT: ret void
346 void test_svprfb_gather_u64base_offset(svbool_t pg
, svuint64_t bases
, int64_t offset
)
348 return SVE_ACLE_FUNC(svprfb_gather
,_u64base
,_offset
,)(pg
, bases
, offset
, SV_PLDL1KEEP
);