Debian Codegraph @

llvm/test/CodeGen/Thumb2/mve-intrinsics/strict-intrinsics.ll

raw
1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=thumbv8.1m.main -mattr=+mve.fp -o - %s | FileCheck %s
3
4 define arm_aapcs_vfpcc <8 x half> @test_vaddq_f16(<8 x half> %a, <8 x half> %b) #0 {
5 ; CHECK-LABEL: test_vaddq_f16:
6 ; CHECK: @ %bb.0: @ %entry
7 ; CHECK-NEXT: vadd.f16 q0, q0, q1
8 ; CHECK-NEXT: bx lr
9 entry:
10 %0 = tail call <8 x half> @llvm.arm.mve.vadd.v8f16(<8 x half> %a, <8 x half> %b)
11 ret <8 x half> %0
12 }
13
14 define arm_aapcs_vfpcc <4 x float> @test_vaddq_f32(<4 x float> %a, <4 x float> %b) #0 {
15 ; CHECK-LABEL: test_vaddq_f32:
16 ; CHECK: @ %bb.0: @ %entry
17 ; CHECK-NEXT: vadd.f32 q0, q0, q1
18 ; CHECK-NEXT: bx lr
19 entry:
20 %0 = tail call <4 x float> @llvm.arm.mve.vadd.v4f32(<4 x float> %a, <4 x float> %b)
21 ret <4 x float> %0
22 }
23
24 define arm_aapcs_vfpcc <8 x half> @test_vsubq_f16(<8 x half> %a, <8 x half> %b) #0 {
25 ; CHECK-LABEL: test_vsubq_f16:
26 ; CHECK: @ %bb.0: @ %entry
27 ; CHECK-NEXT: vsub.f16 q0, q0, q1
28 ; CHECK-NEXT: bx lr
29 entry:
30 %0 = tail call <8 x half> @llvm.arm.mve.vsub.v8f16(<8 x half> %a, <8 x half> %b)
31 ret <8 x half> %0
32 }
33
34 define arm_aapcs_vfpcc <4 x float> @test_vsubq_f32(<4 x float> %a, <4 x float> %b) #0 {
35 ; CHECK-LABEL: test_vsubq_f32:
36 ; CHECK: @ %bb.0: @ %entry
37 ; CHECK-NEXT: vsub.f32 q0, q0, q1
38 ; CHECK-NEXT: bx lr
39 entry:
40 %0 = tail call <4 x float> @llvm.arm.mve.vsub.v4f32(<4 x float> %a, <4 x float> %b)
41 ret <4 x float> %0
42 }
43
44 define arm_aapcs_vfpcc <8 x half> @test_vmulq_f16(<8 x half> %a, <8 x half> %b) #0 {
45 ; CHECK-LABEL: test_vmulq_f16:
46 ; CHECK: @ %bb.0: @ %entry
47 ; CHECK-NEXT: vmul.f16 q0, q0, q1
48 ; CHECK-NEXT: bx lr
49 entry:
50 %0 = tail call <8 x half> @llvm.arm.mve.vmul.v8f16(<8 x half> %a, <8 x half> %b)
51 ret <8 x half> %0
52 }
53
54 define arm_aapcs_vfpcc <4 x float> @test_vmulq_f32(<4 x float> %a, <4 x float> %b) #0 {
55 ; CHECK-LABEL: test_vmulq_f32:
56 ; CHECK: @ %bb.0: @ %entry
57 ; CHECK-NEXT: vmul.f32 q0, q0, q1
58 ; CHECK-NEXT: bx lr
59 entry:
60 %0 = tail call <4 x float> @llvm.arm.mve.vmul.v4f32(<4 x float> %a, <4 x float> %b)
61 ret <4 x float> %0
62 }
63
64
65
66
67 define arm_aapcs_vfpcc <8 x half> @test_vaddq_f16_splat(<8 x half> %a, half %b) #0 {
68 ; CHECK-LABEL: test_vaddq_f16_splat:
69 ; CHECK: @ %bb.0: @ %entry
70 ; CHECK-NEXT: vmov.f16 r0, s4
71 ; CHECK-NEXT: vadd.f16 q0, q0, r0
72 ; CHECK-NEXT: bx lr
73 entry:
74 %i = insertelement <8 x half> poison, half %b, i32 0
75 %s = shufflevector <8 x half> %i, <8 x half> poison, <8 x i32> zeroinitializer
76 %0 = tail call <8 x half> @llvm.arm.mve.vadd.v8f16(<8 x half> %a, <8 x half> %s)
77 ret <8 x half> %0
78 }
79
80 define arm_aapcs_vfpcc <4 x float> @test_vaddq_f32_splat(<4 x float> %a, float %b) #0 {
81 ; CHECK-LABEL: test_vaddq_f32_splat:
82 ; CHECK: @ %bb.0: @ %entry
83 ; CHECK-NEXT: vmov r0, s4
84 ; CHECK-NEXT: vadd.f32 q0, q0, r0
85 ; CHECK-NEXT: bx lr
86 entry:
87 %i = insertelement <4 x float> poison, float %b, i32 0
88 %s = shufflevector <4 x float> %i, <4 x float> poison, <4 x i32> zeroinitializer
89 %0 = tail call <4 x float> @llvm.arm.mve.vadd.v4f32(<4 x float> %a, <4 x float> %s)
90 ret <4 x float> %0
91 }
92
93 define arm_aapcs_vfpcc <8 x half> @test_vsubq_f16_splat(<8 x half> %a, half %b) #0 {
94 ; CHECK-LABEL: test_vsubq_f16_splat:
95 ; CHECK: @ %bb.0: @ %entry
96 ; CHECK-NEXT: vmov.f16 r0, s4
97 ; CHECK-NEXT: vsub.f16 q0, q0, r0
98 ; CHECK-NEXT: bx lr
99 entry:
100 %i = insertelement <8 x half> poison, half %b, i32 0
101 %s = shufflevector <8 x half> %i, <8 x half> poison, <8 x i32> zeroinitializer
102 %0 = tail call <8 x half> @llvm.arm.mve.vsub.v8f16(<8 x half> %a, <8 x half> %s)
103 ret <8 x half> %0
104 }
105
106 define arm_aapcs_vfpcc <4 x float> @test_vsubq_f32_splat(<4 x float> %a, float %b) #0 {
107 ; CHECK-LABEL: test_vsubq_f32_splat:
108 ; CHECK: @ %bb.0: @ %entry
109 ; CHECK-NEXT: vmov r0, s4
110 ; CHECK-NEXT: vsub.f32 q0, q0, r0
111 ; CHECK-NEXT: bx lr
112 entry:
113 %i = insertelement <4 x float> poison, float %b, i32 0
114 %s = shufflevector <4 x float> %i, <4 x float> poison, <4 x i32> zeroinitializer
115 %0 = tail call <4 x float> @llvm.arm.mve.vsub.v4f32(<4 x float> %a, <4 x float> %s)
116 ret <4 x float> %0
117 }
118
119 define arm_aapcs_vfpcc <8 x half> @test_vmulq_f16_splat(<8 x half> %a, half %b) #0 {
120 ; CHECK-LABEL: test_vmulq_f16_splat:
121 ; CHECK: @ %bb.0: @ %entry
122 ; CHECK-NEXT: vmov.f16 r0, s4
123 ; CHECK-NEXT: vmul.f16 q0, q0, r0
124 ; CHECK-NEXT: bx lr
125 entry:
126 %i = insertelement <8 x half> poison, half %b, i32 0
127 %s = shufflevector <8 x half> %i, <8 x half> poison, <8 x i32> zeroinitializer
128 %0 = tail call <8 x half> @llvm.arm.mve.vmul.v8f16(<8 x half> %a, <8 x half> %s)
129 ret <8 x half> %0
130 }
131
132 define arm_aapcs_vfpcc <4 x float> @test_vmulq_f32_splat(<4 x float> %a, float %b) #0 {
133 ; CHECK-LABEL: test_vmulq_f32_splat:
134 ; CHECK: @ %bb.0: @ %entry
135 ; CHECK-NEXT: vmov r0, s4
136 ; CHECK-NEXT: vmul.f32 q0, q0, r0
137 ; CHECK-NEXT: bx lr
138 entry:
139 %i = insertelement <4 x float> poison, float %b, i32 0
140 %s = shufflevector <4 x float> %i, <4 x float> poison, <4 x i32> zeroinitializer
141 %0 = tail call <4 x float> @llvm.arm.mve.vmul.v4f32(<4 x float> %a, <4 x float> %s)
142 ret <4 x float> %0
143 }
144
145 define arm_aapcs_vfpcc <4 x float> @fma_v4f32(<4 x float> %dst, <4 x float> %s1, <4 x float> %s2) #0 {
146 ; CHECK-LABEL: fma_v4f32:
147 ; CHECK: @ %bb.0: @ %entry
148 ; CHECK-NEXT: vfma.f32 q0, q1, q2
149 ; CHECK-NEXT: bx lr
150 entry:
151 %0 = tail call <4 x float> @llvm.arm.mve.fma.v4f32(<4 x float> %s1, <4 x float> %s2, <4 x float> %dst)
152 ret <4 x float> %0
153 }
154
155 define arm_aapcs_vfpcc <8 x half> @fma_v8f16(<8 x half> %dst, <8 x half> %s1, <8 x half> %s2) #0 {
156 ; CHECK-LABEL: fma_v8f16:
157 ; CHECK: @ %bb.0: @ %entry
158 ; CHECK-NEXT: vfma.f16 q0, q1, q2
159 ; CHECK-NEXT: bx lr
160 entry:
161 %0 = tail call <8 x half> @llvm.arm.mve.fma.v8f16(<8 x half> %s1, <8 x half> %s2, <8 x half> %dst)
162 ret <8 x half> %0
163 }
164
165 define arm_aapcs_vfpcc <4 x float> @fma_n_v8f16(<4 x float> %s1, <4 x float> %s2, float %s3) #0 {
166 ; CHECK-LABEL: fma_n_v8f16:
167 ; CHECK: @ %bb.0: @ %entry
168 ; CHECK-NEXT: vmov r0, s8
169 ; CHECK-NEXT: vfma.f32 q0, q1, r0
170 ; CHECK-NEXT: bx lr
171 entry:
172 %i = insertelement <4 x float> poison, float %s3, i32 0
173 %sp = shufflevector <4 x float> %i, <4 x float> poison, <4 x i32> zeroinitializer
174 %0 = tail call <4 x float> @llvm.arm.mve.fma.v4f32(<4 x float> %s2, <4 x float> %sp, <4 x float> %s1)
175 ret <4 x float> %0
176 }
177
178 define arm_aapcs_vfpcc <8 x half> @fma_n_v4f32(<8 x half> %s1, <8 x half> %s2, half %s3) #0 {
179 ; CHECK-LABEL: fma_n_v4f32:
180 ; CHECK: @ %bb.0: @ %entry
181 ; CHECK-NEXT: vmov.f16 r0, s8
182 ; CHECK-NEXT: vfma.f16 q0, q1, r0
183 ; CHECK-NEXT: bx lr
184 entry:
185 %i = insertelement <8 x half> poison, half %s3, i32 0
186 %sp = shufflevector <8 x half> %i, <8 x half> poison, <8 x i32> zeroinitializer
187 %0 = tail call <8 x half> @llvm.arm.mve.fma.v8f16(<8 x half> %s2, <8 x half> %sp, <8 x half> %s1)
188 ret <8 x half> %0
189 }
190
191 define arm_aapcs_vfpcc <4 x float> @fms_v4f32(<4 x float> %dst, <4 x float> %s1, <4 x float> %s2) #0 {
192 ; CHECK-LABEL: fms_v4f32:
193 ; CHECK: @ %bb.0: @ %entry
194 ; CHECK-NEXT: vfms.f32 q0, q1, q2
195 ; CHECK-NEXT: bx lr
196 entry:
197 %c = fneg <4 x float> %s1
198 %0 = tail call <4 x float> @llvm.arm.mve.fma.v4f32(<4 x float> %c, <4 x float> %s2, <4 x float> %dst)
199 ret <4 x float> %0
200 }
201
202 define arm_aapcs_vfpcc <8 x half> @fms_v8f16(<8 x half> %dst, <8 x half> %s1, <8 x half> %s2) #0 {
203 ; CHECK-LABEL: fms_v8f16:
204 ; CHECK: @ %bb.0: @ %entry
205 ; CHECK-NEXT: vfms.f16 q0, q1, q2
206 ; CHECK-NEXT: bx lr
207 entry:
208 %c = fneg <8 x half> %s1
209 %0 = tail call <8 x half> @llvm.arm.mve.fma.v8f16(<8 x half> %c, <8 x half> %s2, <8 x half> %dst)
210 ret <8 x half> %0
211 }
212
213 define arm_aapcs_vfpcc <4 x float> @fms_n_v8f16(<4 x float> %s1, <4 x float> %s2, float %s3) #0 {
214 ; CHECK-LABEL: fms_n_v8f16:
215 ; CHECK: @ %bb.0: @ %entry
216 ; CHECK-NEXT: vmov r0, s8
217 ; CHECK-NEXT: vdup.32 q2, r0
218 ; CHECK-NEXT: vfms.f32 q0, q1, q2
219 ; CHECK-NEXT: bx lr
220 entry:
221 %c = fneg <4 x float> %s2
222 %i = insertelement <4 x float> poison, float %s3, i32 0
223 %sp = shufflevector <4 x float> %i, <4 x float> poison, <4 x i32> zeroinitializer
224 %0 = tail call <4 x float> @llvm.arm.mve.fma.v4f32(<4 x float> %c, <4 x float> %sp, <4 x float> %s1)
225 ret <4 x float> %0
226 }
227
228 define arm_aapcs_vfpcc <8 x half> @fms_n_v4f32(<8 x half> %s1, <8 x half> %s2, half %s3) #0 {
229 ; CHECK-LABEL: fms_n_v4f32:
230 ; CHECK: @ %bb.0: @ %entry
231 ; CHECK-NEXT: vmov.f16 r0, s8
232 ; CHECK-NEXT: vdup.16 q2, r0
233 ; CHECK-NEXT: vfms.f16 q0, q1, q2
234 ; CHECK-NEXT: bx lr
235 entry:
236 %c = fneg <8 x half> %s2
237 %i = insertelement <8 x half> poison, half %s3, i32 0
238 %sp = shufflevector <8 x half> %i, <8 x half> poison, <8 x i32> zeroinitializer
239 %0 = tail call <8 x half> @llvm.arm.mve.fma.v8f16(<8 x half> %c, <8 x half> %sp, <8 x half> %s1)
240 ret <8 x half> %0
241 }
242
243
244 define arm_aapcs_vfpcc <8 x half> @test_vminnmq_f16(<8 x half> %a, <8 x half> %b) #0 {
245 ; CHECK-LABEL: test_vminnmq_f16:
246 ; CHECK: @ %bb.0: @ %entry
247 ; CHECK-NEXT: vmaxnm.f16 q0, q0, q1
248 ; CHECK-NEXT: bx lr
249 entry:
250 %2 = tail call <8 x half> @llvm.arm.mve.vmaxnm.v8f16(<8 x half> %a, <8 x half> %b)
251 ret <8 x half> %2
252 }
253
254 define arm_aapcs_vfpcc <4 x float> @test_vminnmq_f32(<4 x float> %a, <4 x float> %b) #0 {
255 ; CHECK-LABEL: test_vminnmq_f32:
256 ; CHECK: @ %bb.0: @ %entry
257 ; CHECK-NEXT: vmaxnm.f32 q0, q0, q1
258 ; CHECK-NEXT: bx lr
259 entry:
260 %2 = tail call <4 x float> @llvm.arm.mve.vmaxnm.v4f32(<4 x float> %a, <4 x float> %b)
261 ret <4 x float> %2
262 }
263
264 define arm_aapcs_vfpcc <8 x half> @test_vmaxnmq_f16(<8 x half> %a, <8 x half> %b) #0 {
265 ; CHECK-LABEL: test_vmaxnmq_f16:
266 ; CHECK: @ %bb.0: @ %entry
267 ; CHECK-NEXT: vmaxnm.f16 q0, q0, q1
268 ; CHECK-NEXT: bx lr
269 entry:
270 %2 = tail call <8 x half> @llvm.arm.mve.vmaxnm.v8f16(<8 x half> %a, <8 x half> %b)
271 ret <8 x half> %2
272 }
273
274 define arm_aapcs_vfpcc <4 x float> @test_vmaxnmq_f32(<4 x float> %a, <4 x float> %b) #0 {
275 ; CHECK-LABEL: test_vmaxnmq_f32:
276 ; CHECK: @ %bb.0: @ %entry
277 ; CHECK-NEXT: vmaxnm.f32 q0, q0, q1
278 ; CHECK-NEXT: bx lr
279 entry:
280 %2 = tail call <4 x float> @llvm.arm.mve.vmaxnm.v4f32(<4 x float> %a, <4 x float> %b)
281 ret <4 x float> %2
282 }
283
284 define arm_aapcs_vfpcc <8 x half> @test_vminnmaq_f16(<8 x half> %a, <8 x half> %b) #0 {
285 ; CHECK-LABEL: test_vminnmaq_f16:
286 ; CHECK: @ %bb.0: @ %entry
287 ; CHECK-NEXT: vmaxnma.f16 q0, q1
288 ; CHECK-NEXT: bx lr
289 entry:
290 %0 = tail call <8 x half> @llvm.fabs.v8f16(<8 x half> %a)
291 %1 = tail call <8 x half> @llvm.fabs.v8f16(<8 x half> %b)
292 %2 = tail call <8 x half> @llvm.arm.mve.vmaxnm.v8f16(<8 x half> %0, <8 x half> %1)
293 ret <8 x half> %2
294 }
295
296 define arm_aapcs_vfpcc <4 x float> @test_vminnmaq_f32(<4 x float> %a, <4 x float> %b) #0 {
297 ; CHECK-LABEL: test_vminnmaq_f32:
298 ; CHECK: @ %bb.0: @ %entry
299 ; CHECK-NEXT: vmaxnma.f32 q0, q1
300 ; CHECK-NEXT: bx lr
301 entry:
302 %0 = tail call <4 x float> @llvm.fabs.v4f32(<4 x float> %a)
303 %1 = tail call <4 x float> @llvm.fabs.v4f32(<4 x float> %b)
304 %2 = tail call <4 x float> @llvm.arm.mve.vmaxnm.v4f32(<4 x float> %0, <4 x float> %1)
305 ret <4 x float> %2
306 }
307
308 define arm_aapcs_vfpcc <8 x half> @test_vmaxnmaq_f16(<8 x half> %a, <8 x half> %b) #0 {
309 ; CHECK-LABEL: test_vmaxnmaq_f16:
310 ; CHECK: @ %bb.0: @ %entry
311 ; CHECK-NEXT: vmaxnma.f16 q0, q1
312 ; CHECK-NEXT: bx lr
313 entry:
314 %0 = tail call <8 x half> @llvm.fabs.v8f16(<8 x half> %a)
315 %1 = tail call <8 x half> @llvm.fabs.v8f16(<8 x half> %b)
316 %2 = tail call <8 x half> @llvm.arm.mve.vmaxnm.v8f16(<8 x half> %0, <8 x half> %1)
317 ret <8 x half> %2
318 }
319
320 define arm_aapcs_vfpcc <4 x float> @test_vmaxnmaq_f32(<4 x float> %a, <4 x float> %b) #0 {
321 ; CHECK-LABEL: test_vmaxnmaq_f32:
322 ; CHECK: @ %bb.0: @ %entry
323 ; CHECK-NEXT: vmaxnma.f32 q0, q1
324 ; CHECK-NEXT: bx lr
325 entry:
326 %0 = tail call <4 x float> @llvm.fabs.v4f32(<4 x float> %a)
327 %1 = tail call <4 x float> @llvm.fabs.v4f32(<4 x float> %b)
328 %2 = tail call <4 x float> @llvm.arm.mve.vmaxnm.v4f32(<4 x float> %0, <4 x float> %1)
329 ret <4 x float> %2
330 }
331
332
333 define arm_aapcs_vfpcc <8 x half> @test_vrndnq_f16(<8 x half> %a) #0 {
334 ; CHECK-LABEL: test_vrndnq_f16:
335 ; CHECK: @ %bb.0: @ %entry
336 ; CHECK-NEXT: vrintn.f16 q0, q0
337 ; CHECK-NEXT: bx lr
338 entry:
339 %0 = tail call <8 x half> @llvm.arm.mve.vrintn.v8f16(<8 x half> %a)
340 ret <8 x half> %0
341 }
342
343 define arm_aapcs_vfpcc <4 x float> @test_vrndnq_f32(<4 x float> %a) #0 {
344 ; CHECK-LABEL: test_vrndnq_f32:
345 ; CHECK: @ %bb.0: @ %entry
346 ; CHECK-NEXT: vrintn.f32 q0, q0
347 ; CHECK-NEXT: bx lr
348 entry:
349 %0 = tail call <4 x float> @llvm.arm.mve.vrintn.v4f32(<4 x float> %a)
350 ret <4 x float> %0
351 }
352
353 define arm_aapcs_vfpcc <8 x half> @test_vrndxq_f16(<8 x half> %a) #0 {
354 ; CHECK-LABEL: test_vrndxq_f16:
355 ; CHECK: @ %bb.0: @ %entry
356 ; CHECK-NEXT: vrintx.f16 q0, q0
357 ; CHECK-NEXT: bx lr
358 entry:
359 %0 = tail call <8 x half> @llvm.arm.mve.vrintx.v8f16(<8 x half> %a)
360 ret <8 x half> %0
361 }
362
363 define arm_aapcs_vfpcc <4 x float> @test_vrndxq_f32(<4 x float> %a) #0 {
364 ; CHECK-LABEL: test_vrndxq_f32:
365 ; CHECK: @ %bb.0: @ %entry
366 ; CHECK-NEXT: vrintx.f32 q0, q0
367 ; CHECK-NEXT: bx lr
368 entry:
369 %0 = tail call <4 x float> @llvm.arm.mve.vrintx.v4f32(<4 x float> %a)
370 ret <4 x float> %0
371 }
372
373 define arm_aapcs_vfpcc <8 x half> @test_vrndaq_f16(<8 x half> %a) #0 {
374 ; CHECK-LABEL: test_vrndaq_f16:
375 ; CHECK: @ %bb.0: @ %entry
376 ; CHECK-NEXT: vrinta.f16 q0, q0
377 ; CHECK-NEXT: bx lr
378 entry:
379 %0 = tail call <8 x half> @llvm.arm.mve.vrinta.v8f16(<8 x half> %a)
380 ret <8 x half> %0
381 }
382
383 define arm_aapcs_vfpcc <4 x float> @test_vrndaq_f32(<4 x float> %a) #0 {
384 ; CHECK-LABEL: test_vrndaq_f32:
385 ; CHECK: @ %bb.0: @ %entry
386 ; CHECK-NEXT: vrinta.f32 q0, q0
387 ; CHECK-NEXT: bx lr
388 entry:
389 %0 = tail call <4 x float> @llvm.arm.mve.vrinta.v4f32(<4 x float> %a)
390 ret <4 x float> %0
391 }
392
393 define arm_aapcs_vfpcc <8 x half> @test_vrndzq_f16(<8 x half> %a) #0 {
394 ; CHECK-LABEL: test_vrndzq_f16:
395 ; CHECK: @ %bb.0: @ %entry
396 ; CHECK-NEXT: vrintz.f16 q0, q0
397 ; CHECK-NEXT: bx lr
398 entry:
399 %0 = tail call <8 x half> @llvm.arm.mve.vrintz.v8f16(<8 x half> %a)
400 ret <8 x half> %0
401 }
402
403 define arm_aapcs_vfpcc <4 x float> @test_vrndzq_f32(<4 x float> %a) #0 {
404 ; CHECK-LABEL: test_vrndzq_f32:
405 ; CHECK: @ %bb.0: @ %entry
406 ; CHECK-NEXT: vrintz.f32 q0, q0
407 ; CHECK-NEXT: bx lr
408 entry:
409 %0 = tail call <4 x float> @llvm.arm.mve.vrintz.v4f32(<4 x float> %a)
410 ret <4 x float> %0
411 }
412
413 define arm_aapcs_vfpcc <8 x half> @test_vrndmq_f16(<8 x half> %a) #0 {
414 ; CHECK-LABEL: test_vrndmq_f16:
415 ; CHECK: @ %bb.0: @ %entry
416 ; CHECK-NEXT: vrintm.f16 q0, q0
417 ; CHECK-NEXT: bx lr
418 entry:
419 %0 = tail call <8 x half> @llvm.arm.mve.vrintm.v8f16(<8 x half> %a)
420 ret <8 x half> %0
421 }
422
423 define arm_aapcs_vfpcc <4 x float> @test_vrndmq_f32(<4 x float> %a) #0 {
424 ; CHECK-LABEL: test_vrndmq_f32:
425 ; CHECK: @ %bb.0: @ %entry
426 ; CHECK-NEXT: vrintm.f32 q0, q0
427 ; CHECK-NEXT: bx lr
428 entry:
429 %0 = tail call <4 x float> @llvm.arm.mve.vrintm.v4f32(<4 x float> %a)
430 ret <4 x float> %0
431 }
432
433 define arm_aapcs_vfpcc <8 x half> @test_vrndpq_f16(<8 x half> %a) #0 {
434 ; CHECK-LABEL: test_vrndpq_f16:
435 ; CHECK: @ %bb.0: @ %entry
436 ; CHECK-NEXT: vrintp.f16 q0, q0
437 ; CHECK-NEXT: bx lr
438 entry:
439 %0 = tail call <8 x half> @llvm.arm.mve.vrintp.v8f16(<8 x half> %a)
440 ret <8 x half> %0
441 }
442
443 define arm_aapcs_vfpcc <4 x float> @test_vrndpq_f32(<4 x float> %a) #0 {
444 ; CHECK-LABEL: test_vrndpq_f32:
445 ; CHECK: @ %bb.0: @ %entry
446 ; CHECK-NEXT: vrintp.f32 q0, q0
447 ; CHECK-NEXT: bx lr
448 entry:
449 %0 = tail call <4 x float> @llvm.arm.mve.vrintp.v4f32(<4 x float> %a)
450 ret <4 x float> %0
451 }
452
453
454
455
456 define arm_aapcs_vfpcc <8 x half> @test_vcvtq_f16_s16(<8 x i16> noundef %a) #0 {
457 ; CHECK-LABEL: test_vcvtq_f16_s16:
458 ; CHECK: @ %bb.0: @ %entry
459 ; CHECK-NEXT: vcvt.f16.s16 q0, q0
460 ; CHECK-NEXT: bx lr
461 entry:
462 %0 = tail call <8 x half> @llvm.arm.mve.vcvt.fp.int.v8f16.v8i16(<8 x i16> %a, i32 0)
463 ret <8 x half> %0
464 }
465
466 define arm_aapcs_vfpcc <8 x half> @test_vcvtq_f16_u16(<8 x i16> noundef %a) #0 {
467 ; CHECK-LABEL: test_vcvtq_f16_u16:
468 ; CHECK: @ %bb.0: @ %entry
469 ; CHECK-NEXT: vcvt.f16.u16 q0, q0
470 ; CHECK-NEXT: bx lr
471 entry:
472 %0 = tail call <8 x half> @llvm.arm.mve.vcvt.fp.int.v8f16.v8i16(<8 x i16> %a, i32 1)
473 ret <8 x half> %0
474 }
475
476 define arm_aapcs_vfpcc <4 x float> @test_vcvtq_f32_s32(<4 x i32> noundef %a) #0 {
477 ; CHECK-LABEL: test_vcvtq_f32_s32:
478 ; CHECK: @ %bb.0: @ %entry
479 ; CHECK-NEXT: vcvt.f32.s32 q0, q0
480 ; CHECK-NEXT: bx lr
481 entry:
482 %0 = tail call <4 x float> @llvm.arm.mve.vcvt.fp.int.v4f32.v4i32(<4 x i32> %a, i32 0)
483 ret <4 x float> %0
484 }
485
486 define arm_aapcs_vfpcc <4 x float> @test_vcvtq_f32_u32(<4 x i32> noundef %a) #0 {
487 ; CHECK-LABEL: test_vcvtq_f32_u32:
488 ; CHECK: @ %bb.0: @ %entry
489 ; CHECK-NEXT: vcvt.f32.u32 q0, q0
490 ; CHECK-NEXT: bx lr
491 entry:
492 %0 = tail call <4 x float> @llvm.arm.mve.vcvt.fp.int.v4f32.v4i32(<4 x i32> %a, i32 1)
493 ret <4 x float> %0
494 }
495
496 define arm_aapcs_vfpcc <8 x i16> @test_vcvtq_s16_f16(<8 x half> noundef %a) #0 {
497 ; CHECK-LABEL: test_vcvtq_s16_f16:
498 ; CHECK: @ %bb.0: @ %entry
499 ; CHECK-NEXT: vcvt.s16.f16 q0, q0
500 ; CHECK-NEXT: bx lr
501 entry:
502 %0 = tail call <8 x i16> @llvm.arm.mve.vcvt.int.fp.v8i16.v8f16(<8 x half> %a, i32 0)
503 ret <8 x i16> %0
504 }
505
506 define arm_aapcs_vfpcc <4 x i32> @test_vcvtq_s32_f32(<4 x float> noundef %a) #0 {
507 ; CHECK-LABEL: test_vcvtq_s32_f32:
508 ; CHECK: @ %bb.0: @ %entry
509 ; CHECK-NEXT: vcvt.s32.f32 q0, q0
510 ; CHECK-NEXT: bx lr
511 entry:
512 %0 = tail call <4 x i32> @llvm.arm.mve.vcvt.int.fp.v4i32.v4f32(<4 x float> %a, i32 0)
513 ret <4 x i32> %0
514 }
515
516 define arm_aapcs_vfpcc <8 x i16> @test_vcvtq_u16_f16(<8 x half> noundef %a) #0 {
517 ; CHECK-LABEL: test_vcvtq_u16_f16:
518 ; CHECK: @ %bb.0: @ %entry
519 ; CHECK-NEXT: vcvt.u16.f16 q0, q0
520 ; CHECK-NEXT: bx lr
521 entry:
522 %0 = tail call <8 x i16> @llvm.arm.mve.vcvt.int.fp.v8i16.v8f16(<8 x half> %a, i32 1)
523 ret <8 x i16> %0
524 }
525
526 define arm_aapcs_vfpcc <4 x i32> @test_vcvtq_u32_f32(<4 x float> noundef %a) #0 {
527 ; CHECK-LABEL: test_vcvtq_u32_f32:
528 ; CHECK: @ %bb.0: @ %entry
529 ; CHECK-NEXT: vcvt.u32.f32 q0, q0
530 ; CHECK-NEXT: bx lr
531 entry:
532 %0 = tail call <4 x i32> @llvm.arm.mve.vcvt.int.fp.v4i32.v4f32(<4 x float> %a, i32 1)
533 ret <4 x i32> %0
534 }
535
536 attributes #0 = { strictfp }