1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: sed 's/iXLen/i32/g' %s | llc -mtriple=riscv32 -mattr=+v,+zfh,+zvfh \
3 ; RUN: -verify-machineinstrs -target-abi=ilp32d | FileCheck %s
4 ; RUN: sed 's/iXLen/i64/g' %s | llc -mtriple=riscv64 -mattr=+v,+zfh,+zvfh \
5 ; RUN: -verify-machineinstrs -target-abi=lp64d | FileCheck %s
7 declare <vscale x 1 x half> @llvm.riscv.vfrdiv.nxv1f16.f16(
13 define <vscale x 1 x half> @intrinsic_vfrdiv_vf_nxv1f16_nxv1f16_f16(<vscale x 1 x half> %0, half %1, iXLen %2) nounwind {
14 ; CHECK-LABEL: intrinsic_vfrdiv_vf_nxv1f16_nxv1f16_f16:
15 ; CHECK: # %bb.0: # %entry
16 ; CHECK-NEXT: fsrmi a1, 0
17 ; CHECK-NEXT: vsetvli zero, a0, e16, mf4, ta, ma
18 ; CHECK-NEXT: vfrdiv.vf v8, v8, fa0
22 %a = call <vscale x 1 x half> @llvm.riscv.vfrdiv.nxv1f16.f16(
23 <vscale x 1 x half> undef,
24 <vscale x 1 x half> %0,
28 ret <vscale x 1 x half> %a
31 declare <vscale x 1 x half> @llvm.riscv.vfrdiv.mask.nxv1f16.f16(
38 define <vscale x 1 x half> @intrinsic_vfrdiv_mask_vf_nxv1f16_nxv1f16_f16(<vscale x 1 x half> %0, <vscale x 1 x half> %1, half %2, <vscale x 1 x i1> %3, iXLen %4) nounwind {
39 ; CHECK-LABEL: intrinsic_vfrdiv_mask_vf_nxv1f16_nxv1f16_f16:
40 ; CHECK: # %bb.0: # %entry
41 ; CHECK-NEXT: fsrmi a1, 0
42 ; CHECK-NEXT: vsetvli zero, a0, e16, mf4, ta, mu
43 ; CHECK-NEXT: vfrdiv.vf v8, v9, fa0, v0.t
47 %a = call <vscale x 1 x half> @llvm.riscv.vfrdiv.mask.nxv1f16.f16(
48 <vscale x 1 x half> %0,
49 <vscale x 1 x half> %1,
52 iXLen 0, iXLen %4, iXLen 1)
54 ret <vscale x 1 x half> %a
57 declare <vscale x 2 x half> @llvm.riscv.vfrdiv.nxv2f16.f16(
63 define <vscale x 2 x half> @intrinsic_vfrdiv_vf_nxv2f16_nxv2f16_f16(<vscale x 2 x half> %0, half %1, iXLen %2) nounwind {
64 ; CHECK-LABEL: intrinsic_vfrdiv_vf_nxv2f16_nxv2f16_f16:
65 ; CHECK: # %bb.0: # %entry
66 ; CHECK-NEXT: fsrmi a1, 0
67 ; CHECK-NEXT: vsetvli zero, a0, e16, mf2, ta, ma
68 ; CHECK-NEXT: vfrdiv.vf v8, v8, fa0
72 %a = call <vscale x 2 x half> @llvm.riscv.vfrdiv.nxv2f16.f16(
73 <vscale x 2 x half> undef,
74 <vscale x 2 x half> %0,
78 ret <vscale x 2 x half> %a
81 declare <vscale x 2 x half> @llvm.riscv.vfrdiv.mask.nxv2f16.f16(
88 define <vscale x 2 x half> @intrinsic_vfrdiv_mask_vf_nxv2f16_nxv2f16_f16(<vscale x 2 x half> %0, <vscale x 2 x half> %1, half %2, <vscale x 2 x i1> %3, iXLen %4) nounwind {
89 ; CHECK-LABEL: intrinsic_vfrdiv_mask_vf_nxv2f16_nxv2f16_f16:
90 ; CHECK: # %bb.0: # %entry
91 ; CHECK-NEXT: fsrmi a1, 0
92 ; CHECK-NEXT: vsetvli zero, a0, e16, mf2, ta, mu
93 ; CHECK-NEXT: vfrdiv.vf v8, v9, fa0, v0.t
97 %a = call <vscale x 2 x half> @llvm.riscv.vfrdiv.mask.nxv2f16.f16(
98 <vscale x 2 x half> %0,
99 <vscale x 2 x half> %1,
101 <vscale x 2 x i1> %3,
102 iXLen 0, iXLen %4, iXLen 1)
104 ret <vscale x 2 x half> %a
107 declare <vscale x 4 x half> @llvm.riscv.vfrdiv.nxv4f16.f16(
113 define <vscale x 4 x half> @intrinsic_vfrdiv_vf_nxv4f16_nxv4f16_f16(<vscale x 4 x half> %0, half %1, iXLen %2) nounwind {
114 ; CHECK-LABEL: intrinsic_vfrdiv_vf_nxv4f16_nxv4f16_f16:
115 ; CHECK: # %bb.0: # %entry
116 ; CHECK-NEXT: fsrmi a1, 0
117 ; CHECK-NEXT: vsetvli zero, a0, e16, m1, ta, ma
118 ; CHECK-NEXT: vfrdiv.vf v8, v8, fa0
119 ; CHECK-NEXT: fsrm a1
122 %a = call <vscale x 4 x half> @llvm.riscv.vfrdiv.nxv4f16.f16(
123 <vscale x 4 x half> undef,
124 <vscale x 4 x half> %0,
128 ret <vscale x 4 x half> %a
131 declare <vscale x 4 x half> @llvm.riscv.vfrdiv.mask.nxv4f16.f16(
136 iXLen, iXLen, iXLen);
138 define <vscale x 4 x half> @intrinsic_vfrdiv_mask_vf_nxv4f16_nxv4f16_f16(<vscale x 4 x half> %0, <vscale x 4 x half> %1, half %2, <vscale x 4 x i1> %3, iXLen %4) nounwind {
139 ; CHECK-LABEL: intrinsic_vfrdiv_mask_vf_nxv4f16_nxv4f16_f16:
140 ; CHECK: # %bb.0: # %entry
141 ; CHECK-NEXT: fsrmi a1, 0
142 ; CHECK-NEXT: vsetvli zero, a0, e16, m1, ta, mu
143 ; CHECK-NEXT: vfrdiv.vf v8, v9, fa0, v0.t
144 ; CHECK-NEXT: fsrm a1
147 %a = call <vscale x 4 x half> @llvm.riscv.vfrdiv.mask.nxv4f16.f16(
148 <vscale x 4 x half> %0,
149 <vscale x 4 x half> %1,
151 <vscale x 4 x i1> %3,
152 iXLen 0, iXLen %4, iXLen 1)
154 ret <vscale x 4 x half> %a
157 declare <vscale x 8 x half> @llvm.riscv.vfrdiv.nxv8f16.f16(
163 define <vscale x 8 x half> @intrinsic_vfrdiv_vf_nxv8f16_nxv8f16_f16(<vscale x 8 x half> %0, half %1, iXLen %2) nounwind {
164 ; CHECK-LABEL: intrinsic_vfrdiv_vf_nxv8f16_nxv8f16_f16:
165 ; CHECK: # %bb.0: # %entry
166 ; CHECK-NEXT: fsrmi a1, 0
167 ; CHECK-NEXT: vsetvli zero, a0, e16, m2, ta, ma
168 ; CHECK-NEXT: vfrdiv.vf v8, v8, fa0
169 ; CHECK-NEXT: fsrm a1
172 %a = call <vscale x 8 x half> @llvm.riscv.vfrdiv.nxv8f16.f16(
173 <vscale x 8 x half> undef,
174 <vscale x 8 x half> %0,
178 ret <vscale x 8 x half> %a
181 declare <vscale x 8 x half> @llvm.riscv.vfrdiv.mask.nxv8f16.f16(
186 iXLen, iXLen, iXLen);
188 define <vscale x 8 x half> @intrinsic_vfrdiv_mask_vf_nxv8f16_nxv8f16_f16(<vscale x 8 x half> %0, <vscale x 8 x half> %1, half %2, <vscale x 8 x i1> %3, iXLen %4) nounwind {
189 ; CHECK-LABEL: intrinsic_vfrdiv_mask_vf_nxv8f16_nxv8f16_f16:
190 ; CHECK: # %bb.0: # %entry
191 ; CHECK-NEXT: fsrmi a1, 0
192 ; CHECK-NEXT: vsetvli zero, a0, e16, m2, ta, mu
193 ; CHECK-NEXT: vfrdiv.vf v8, v10, fa0, v0.t
194 ; CHECK-NEXT: fsrm a1
197 %a = call <vscale x 8 x half> @llvm.riscv.vfrdiv.mask.nxv8f16.f16(
198 <vscale x 8 x half> %0,
199 <vscale x 8 x half> %1,
201 <vscale x 8 x i1> %3,
202 iXLen 0, iXLen %4, iXLen 1)
204 ret <vscale x 8 x half> %a
207 declare <vscale x 16 x half> @llvm.riscv.vfrdiv.nxv16f16.f16(
208 <vscale x 16 x half>,
209 <vscale x 16 x half>,
213 define <vscale x 16 x half> @intrinsic_vfrdiv_vf_nxv16f16_nxv16f16_f16(<vscale x 16 x half> %0, half %1, iXLen %2) nounwind {
214 ; CHECK-LABEL: intrinsic_vfrdiv_vf_nxv16f16_nxv16f16_f16:
215 ; CHECK: # %bb.0: # %entry
216 ; CHECK-NEXT: fsrmi a1, 0
217 ; CHECK-NEXT: vsetvli zero, a0, e16, m4, ta, ma
218 ; CHECK-NEXT: vfrdiv.vf v8, v8, fa0
219 ; CHECK-NEXT: fsrm a1
222 %a = call <vscale x 16 x half> @llvm.riscv.vfrdiv.nxv16f16.f16(
223 <vscale x 16 x half> undef,
224 <vscale x 16 x half> %0,
228 ret <vscale x 16 x half> %a
231 declare <vscale x 16 x half> @llvm.riscv.vfrdiv.mask.nxv16f16.f16(
232 <vscale x 16 x half>,
233 <vscale x 16 x half>,
236 iXLen, iXLen, iXLen);
238 define <vscale x 16 x half> @intrinsic_vfrdiv_mask_vf_nxv16f16_nxv16f16_f16(<vscale x 16 x half> %0, <vscale x 16 x half> %1, half %2, <vscale x 16 x i1> %3, iXLen %4) nounwind {
239 ; CHECK-LABEL: intrinsic_vfrdiv_mask_vf_nxv16f16_nxv16f16_f16:
240 ; CHECK: # %bb.0: # %entry
241 ; CHECK-NEXT: fsrmi a1, 0
242 ; CHECK-NEXT: vsetvli zero, a0, e16, m4, ta, mu
243 ; CHECK-NEXT: vfrdiv.vf v8, v12, fa0, v0.t
244 ; CHECK-NEXT: fsrm a1
247 %a = call <vscale x 16 x half> @llvm.riscv.vfrdiv.mask.nxv16f16.f16(
248 <vscale x 16 x half> %0,
249 <vscale x 16 x half> %1,
251 <vscale x 16 x i1> %3,
252 iXLen 0, iXLen %4, iXLen 1)
254 ret <vscale x 16 x half> %a
257 declare <vscale x 32 x half> @llvm.riscv.vfrdiv.nxv32f16.f16(
258 <vscale x 32 x half>,
259 <vscale x 32 x half>,
263 define <vscale x 32 x half> @intrinsic_vfrdiv_vf_nxv32f16_nxv32f16_f16(<vscale x 32 x half> %0, half %1, iXLen %2) nounwind {
264 ; CHECK-LABEL: intrinsic_vfrdiv_vf_nxv32f16_nxv32f16_f16:
265 ; CHECK: # %bb.0: # %entry
266 ; CHECK-NEXT: fsrmi a1, 0
267 ; CHECK-NEXT: vsetvli zero, a0, e16, m8, ta, ma
268 ; CHECK-NEXT: vfrdiv.vf v8, v8, fa0
269 ; CHECK-NEXT: fsrm a1
272 %a = call <vscale x 32 x half> @llvm.riscv.vfrdiv.nxv32f16.f16(
273 <vscale x 32 x half> undef,
274 <vscale x 32 x half> %0,
278 ret <vscale x 32 x half> %a
281 declare <vscale x 32 x half> @llvm.riscv.vfrdiv.mask.nxv32f16.f16(
282 <vscale x 32 x half>,
283 <vscale x 32 x half>,
286 iXLen, iXLen, iXLen);
288 define <vscale x 32 x half> @intrinsic_vfrdiv_mask_vf_nxv32f16_nxv32f16_f16(<vscale x 32 x half> %0, <vscale x 32 x half> %1, half %2, <vscale x 32 x i1> %3, iXLen %4) nounwind {
289 ; CHECK-LABEL: intrinsic_vfrdiv_mask_vf_nxv32f16_nxv32f16_f16:
290 ; CHECK: # %bb.0: # %entry
291 ; CHECK-NEXT: fsrmi a1, 0
292 ; CHECK-NEXT: vsetvli zero, a0, e16, m8, ta, mu
293 ; CHECK-NEXT: vfrdiv.vf v8, v16, fa0, v0.t
294 ; CHECK-NEXT: fsrm a1
297 %a = call <vscale x 32 x half> @llvm.riscv.vfrdiv.mask.nxv32f16.f16(
298 <vscale x 32 x half> %0,
299 <vscale x 32 x half> %1,
301 <vscale x 32 x i1> %3,
302 iXLen 0, iXLen %4, iXLen 1)
304 ret <vscale x 32 x half> %a
307 declare <vscale x 1 x float> @llvm.riscv.vfrdiv.nxv1f32.f32(
308 <vscale x 1 x float>,
309 <vscale x 1 x float>,
313 define <vscale x 1 x float> @intrinsic_vfrdiv_vf_nxv1f32_nxv1f32_f32(<vscale x 1 x float> %0, float %1, iXLen %2) nounwind {
314 ; CHECK-LABEL: intrinsic_vfrdiv_vf_nxv1f32_nxv1f32_f32:
315 ; CHECK: # %bb.0: # %entry
316 ; CHECK-NEXT: fsrmi a1, 0
317 ; CHECK-NEXT: vsetvli zero, a0, e32, mf2, ta, ma
318 ; CHECK-NEXT: vfrdiv.vf v8, v8, fa0
319 ; CHECK-NEXT: fsrm a1
322 %a = call <vscale x 1 x float> @llvm.riscv.vfrdiv.nxv1f32.f32(
323 <vscale x 1 x float> undef,
324 <vscale x 1 x float> %0,
328 ret <vscale x 1 x float> %a
331 declare <vscale x 1 x float> @llvm.riscv.vfrdiv.mask.nxv1f32.f32(
332 <vscale x 1 x float>,
333 <vscale x 1 x float>,
336 iXLen, iXLen, iXLen);
338 define <vscale x 1 x float> @intrinsic_vfrdiv_mask_vf_nxv1f32_nxv1f32_f32(<vscale x 1 x float> %0, <vscale x 1 x float> %1, float %2, <vscale x 1 x i1> %3, iXLen %4) nounwind {
339 ; CHECK-LABEL: intrinsic_vfrdiv_mask_vf_nxv1f32_nxv1f32_f32:
340 ; CHECK: # %bb.0: # %entry
341 ; CHECK-NEXT: fsrmi a1, 0
342 ; CHECK-NEXT: vsetvli zero, a0, e32, mf2, ta, mu
343 ; CHECK-NEXT: vfrdiv.vf v8, v9, fa0, v0.t
344 ; CHECK-NEXT: fsrm a1
347 %a = call <vscale x 1 x float> @llvm.riscv.vfrdiv.mask.nxv1f32.f32(
348 <vscale x 1 x float> %0,
349 <vscale x 1 x float> %1,
351 <vscale x 1 x i1> %3,
352 iXLen 0, iXLen %4, iXLen 1)
354 ret <vscale x 1 x float> %a
357 declare <vscale x 2 x float> @llvm.riscv.vfrdiv.nxv2f32.f32(
358 <vscale x 2 x float>,
359 <vscale x 2 x float>,
363 define <vscale x 2 x float> @intrinsic_vfrdiv_vf_nxv2f32_nxv2f32_f32(<vscale x 2 x float> %0, float %1, iXLen %2) nounwind {
364 ; CHECK-LABEL: intrinsic_vfrdiv_vf_nxv2f32_nxv2f32_f32:
365 ; CHECK: # %bb.0: # %entry
366 ; CHECK-NEXT: fsrmi a1, 0
367 ; CHECK-NEXT: vsetvli zero, a0, e32, m1, ta, ma
368 ; CHECK-NEXT: vfrdiv.vf v8, v8, fa0
369 ; CHECK-NEXT: fsrm a1
372 %a = call <vscale x 2 x float> @llvm.riscv.vfrdiv.nxv2f32.f32(
373 <vscale x 2 x float> undef,
374 <vscale x 2 x float> %0,
378 ret <vscale x 2 x float> %a
381 declare <vscale x 2 x float> @llvm.riscv.vfrdiv.mask.nxv2f32.f32(
382 <vscale x 2 x float>,
383 <vscale x 2 x float>,
386 iXLen, iXLen, iXLen);
388 define <vscale x 2 x float> @intrinsic_vfrdiv_mask_vf_nxv2f32_nxv2f32_f32(<vscale x 2 x float> %0, <vscale x 2 x float> %1, float %2, <vscale x 2 x i1> %3, iXLen %4) nounwind {
389 ; CHECK-LABEL: intrinsic_vfrdiv_mask_vf_nxv2f32_nxv2f32_f32:
390 ; CHECK: # %bb.0: # %entry
391 ; CHECK-NEXT: fsrmi a1, 0
392 ; CHECK-NEXT: vsetvli zero, a0, e32, m1, ta, mu
393 ; CHECK-NEXT: vfrdiv.vf v8, v9, fa0, v0.t
394 ; CHECK-NEXT: fsrm a1
397 %a = call <vscale x 2 x float> @llvm.riscv.vfrdiv.mask.nxv2f32.f32(
398 <vscale x 2 x float> %0,
399 <vscale x 2 x float> %1,
401 <vscale x 2 x i1> %3,
402 iXLen 0, iXLen %4, iXLen 1)
404 ret <vscale x 2 x float> %a
407 declare <vscale x 4 x float> @llvm.riscv.vfrdiv.nxv4f32.f32(
408 <vscale x 4 x float>,
409 <vscale x 4 x float>,
413 define <vscale x 4 x float> @intrinsic_vfrdiv_vf_nxv4f32_nxv4f32_f32(<vscale x 4 x float> %0, float %1, iXLen %2) nounwind {
414 ; CHECK-LABEL: intrinsic_vfrdiv_vf_nxv4f32_nxv4f32_f32:
415 ; CHECK: # %bb.0: # %entry
416 ; CHECK-NEXT: fsrmi a1, 0
417 ; CHECK-NEXT: vsetvli zero, a0, e32, m2, ta, ma
418 ; CHECK-NEXT: vfrdiv.vf v8, v8, fa0
419 ; CHECK-NEXT: fsrm a1
422 %a = call <vscale x 4 x float> @llvm.riscv.vfrdiv.nxv4f32.f32(
423 <vscale x 4 x float> undef,
424 <vscale x 4 x float> %0,
428 ret <vscale x 4 x float> %a
431 declare <vscale x 4 x float> @llvm.riscv.vfrdiv.mask.nxv4f32.f32(
432 <vscale x 4 x float>,
433 <vscale x 4 x float>,
436 iXLen, iXLen, iXLen);
438 define <vscale x 4 x float> @intrinsic_vfrdiv_mask_vf_nxv4f32_nxv4f32_f32(<vscale x 4 x float> %0, <vscale x 4 x float> %1, float %2, <vscale x 4 x i1> %3, iXLen %4) nounwind {
439 ; CHECK-LABEL: intrinsic_vfrdiv_mask_vf_nxv4f32_nxv4f32_f32:
440 ; CHECK: # %bb.0: # %entry
441 ; CHECK-NEXT: fsrmi a1, 0
442 ; CHECK-NEXT: vsetvli zero, a0, e32, m2, ta, mu
443 ; CHECK-NEXT: vfrdiv.vf v8, v10, fa0, v0.t
444 ; CHECK-NEXT: fsrm a1
447 %a = call <vscale x 4 x float> @llvm.riscv.vfrdiv.mask.nxv4f32.f32(
448 <vscale x 4 x float> %0,
449 <vscale x 4 x float> %1,
451 <vscale x 4 x i1> %3,
452 iXLen 0, iXLen %4, iXLen 1)
454 ret <vscale x 4 x float> %a
457 declare <vscale x 8 x float> @llvm.riscv.vfrdiv.nxv8f32.f32(
458 <vscale x 8 x float>,
459 <vscale x 8 x float>,
463 define <vscale x 8 x float> @intrinsic_vfrdiv_vf_nxv8f32_nxv8f32_f32(<vscale x 8 x float> %0, float %1, iXLen %2) nounwind {
464 ; CHECK-LABEL: intrinsic_vfrdiv_vf_nxv8f32_nxv8f32_f32:
465 ; CHECK: # %bb.0: # %entry
466 ; CHECK-NEXT: fsrmi a1, 0
467 ; CHECK-NEXT: vsetvli zero, a0, e32, m4, ta, ma
468 ; CHECK-NEXT: vfrdiv.vf v8, v8, fa0
469 ; CHECK-NEXT: fsrm a1
472 %a = call <vscale x 8 x float> @llvm.riscv.vfrdiv.nxv8f32.f32(
473 <vscale x 8 x float> undef,
474 <vscale x 8 x float> %0,
478 ret <vscale x 8 x float> %a
481 declare <vscale x 8 x float> @llvm.riscv.vfrdiv.mask.nxv8f32.f32(
482 <vscale x 8 x float>,
483 <vscale x 8 x float>,
486 iXLen, iXLen, iXLen);
488 define <vscale x 8 x float> @intrinsic_vfrdiv_mask_vf_nxv8f32_nxv8f32_f32(<vscale x 8 x float> %0, <vscale x 8 x float> %1, float %2, <vscale x 8 x i1> %3, iXLen %4) nounwind {
489 ; CHECK-LABEL: intrinsic_vfrdiv_mask_vf_nxv8f32_nxv8f32_f32:
490 ; CHECK: # %bb.0: # %entry
491 ; CHECK-NEXT: fsrmi a1, 0
492 ; CHECK-NEXT: vsetvli zero, a0, e32, m4, ta, mu
493 ; CHECK-NEXT: vfrdiv.vf v8, v12, fa0, v0.t
494 ; CHECK-NEXT: fsrm a1
497 %a = call <vscale x 8 x float> @llvm.riscv.vfrdiv.mask.nxv8f32.f32(
498 <vscale x 8 x float> %0,
499 <vscale x 8 x float> %1,
501 <vscale x 8 x i1> %3,
502 iXLen 0, iXLen %4, iXLen 1)
504 ret <vscale x 8 x float> %a
507 declare <vscale x 16 x float> @llvm.riscv.vfrdiv.nxv16f32.f32(
508 <vscale x 16 x float>,
509 <vscale x 16 x float>,
513 define <vscale x 16 x float> @intrinsic_vfrdiv_vf_nxv16f32_nxv16f32_f32(<vscale x 16 x float> %0, float %1, iXLen %2) nounwind {
514 ; CHECK-LABEL: intrinsic_vfrdiv_vf_nxv16f32_nxv16f32_f32:
515 ; CHECK: # %bb.0: # %entry
516 ; CHECK-NEXT: fsrmi a1, 0
517 ; CHECK-NEXT: vsetvli zero, a0, e32, m8, ta, ma
518 ; CHECK-NEXT: vfrdiv.vf v8, v8, fa0
519 ; CHECK-NEXT: fsrm a1
522 %a = call <vscale x 16 x float> @llvm.riscv.vfrdiv.nxv16f32.f32(
523 <vscale x 16 x float> undef,
524 <vscale x 16 x float> %0,
528 ret <vscale x 16 x float> %a
531 declare <vscale x 16 x float> @llvm.riscv.vfrdiv.mask.nxv16f32.f32(
532 <vscale x 16 x float>,
533 <vscale x 16 x float>,
536 iXLen, iXLen, iXLen);
538 define <vscale x 16 x float> @intrinsic_vfrdiv_mask_vf_nxv16f32_nxv16f32_f32(<vscale x 16 x float> %0, <vscale x 16 x float> %1, float %2, <vscale x 16 x i1> %3, iXLen %4) nounwind {
539 ; CHECK-LABEL: intrinsic_vfrdiv_mask_vf_nxv16f32_nxv16f32_f32:
540 ; CHECK: # %bb.0: # %entry
541 ; CHECK-NEXT: fsrmi a1, 0
542 ; CHECK-NEXT: vsetvli zero, a0, e32, m8, ta, mu
543 ; CHECK-NEXT: vfrdiv.vf v8, v16, fa0, v0.t
544 ; CHECK-NEXT: fsrm a1
547 %a = call <vscale x 16 x float> @llvm.riscv.vfrdiv.mask.nxv16f32.f32(
548 <vscale x 16 x float> %0,
549 <vscale x 16 x float> %1,
551 <vscale x 16 x i1> %3,
552 iXLen 0, iXLen %4, iXLen 1)
554 ret <vscale x 16 x float> %a
557 declare <vscale x 1 x double> @llvm.riscv.vfrdiv.nxv1f64.f64(
558 <vscale x 1 x double>,
559 <vscale x 1 x double>,
563 define <vscale x 1 x double> @intrinsic_vfrdiv_vf_nxv1f64_nxv1f64_f64(<vscale x 1 x double> %0, double %1, iXLen %2) nounwind {
564 ; CHECK-LABEL: intrinsic_vfrdiv_vf_nxv1f64_nxv1f64_f64:
565 ; CHECK: # %bb.0: # %entry
566 ; CHECK-NEXT: fsrmi a1, 0
567 ; CHECK-NEXT: vsetvli zero, a0, e64, m1, ta, ma
568 ; CHECK-NEXT: vfrdiv.vf v8, v8, fa0
569 ; CHECK-NEXT: fsrm a1
572 %a = call <vscale x 1 x double> @llvm.riscv.vfrdiv.nxv1f64.f64(
573 <vscale x 1 x double> undef,
574 <vscale x 1 x double> %0,
578 ret <vscale x 1 x double> %a
581 declare <vscale x 1 x double> @llvm.riscv.vfrdiv.mask.nxv1f64.f64(
582 <vscale x 1 x double>,
583 <vscale x 1 x double>,
586 iXLen, iXLen, iXLen);
588 define <vscale x 1 x double> @intrinsic_vfrdiv_mask_vf_nxv1f64_nxv1f64_f64(<vscale x 1 x double> %0, <vscale x 1 x double> %1, double %2, <vscale x 1 x i1> %3, iXLen %4) nounwind {
589 ; CHECK-LABEL: intrinsic_vfrdiv_mask_vf_nxv1f64_nxv1f64_f64:
590 ; CHECK: # %bb.0: # %entry
591 ; CHECK-NEXT: fsrmi a1, 0
592 ; CHECK-NEXT: vsetvli zero, a0, e64, m1, ta, mu
593 ; CHECK-NEXT: vfrdiv.vf v8, v9, fa0, v0.t
594 ; CHECK-NEXT: fsrm a1
597 %a = call <vscale x 1 x double> @llvm.riscv.vfrdiv.mask.nxv1f64.f64(
598 <vscale x 1 x double> %0,
599 <vscale x 1 x double> %1,
601 <vscale x 1 x i1> %3,
602 iXLen 0, iXLen %4, iXLen 1)
604 ret <vscale x 1 x double> %a
607 declare <vscale x 2 x double> @llvm.riscv.vfrdiv.nxv2f64.f64(
608 <vscale x 2 x double>,
609 <vscale x 2 x double>,
613 define <vscale x 2 x double> @intrinsic_vfrdiv_vf_nxv2f64_nxv2f64_f64(<vscale x 2 x double> %0, double %1, iXLen %2) nounwind {
614 ; CHECK-LABEL: intrinsic_vfrdiv_vf_nxv2f64_nxv2f64_f64:
615 ; CHECK: # %bb.0: # %entry
616 ; CHECK-NEXT: fsrmi a1, 0
617 ; CHECK-NEXT: vsetvli zero, a0, e64, m2, ta, ma
618 ; CHECK-NEXT: vfrdiv.vf v8, v8, fa0
619 ; CHECK-NEXT: fsrm a1
622 %a = call <vscale x 2 x double> @llvm.riscv.vfrdiv.nxv2f64.f64(
623 <vscale x 2 x double> undef,
624 <vscale x 2 x double> %0,
628 ret <vscale x 2 x double> %a
631 declare <vscale x 2 x double> @llvm.riscv.vfrdiv.mask.nxv2f64.f64(
632 <vscale x 2 x double>,
633 <vscale x 2 x double>,
636 iXLen, iXLen, iXLen);
638 define <vscale x 2 x double> @intrinsic_vfrdiv_mask_vf_nxv2f64_nxv2f64_f64(<vscale x 2 x double> %0, <vscale x 2 x double> %1, double %2, <vscale x 2 x i1> %3, iXLen %4) nounwind {
639 ; CHECK-LABEL: intrinsic_vfrdiv_mask_vf_nxv2f64_nxv2f64_f64:
640 ; CHECK: # %bb.0: # %entry
641 ; CHECK-NEXT: fsrmi a1, 0
642 ; CHECK-NEXT: vsetvli zero, a0, e64, m2, ta, mu
643 ; CHECK-NEXT: vfrdiv.vf v8, v10, fa0, v0.t
644 ; CHECK-NEXT: fsrm a1
647 %a = call <vscale x 2 x double> @llvm.riscv.vfrdiv.mask.nxv2f64.f64(
648 <vscale x 2 x double> %0,
649 <vscale x 2 x double> %1,
651 <vscale x 2 x i1> %3,
652 iXLen 0, iXLen %4, iXLen 1)
654 ret <vscale x 2 x double> %a
657 declare <vscale x 4 x double> @llvm.riscv.vfrdiv.nxv4f64.f64(
658 <vscale x 4 x double>,
659 <vscale x 4 x double>,
663 define <vscale x 4 x double> @intrinsic_vfrdiv_vf_nxv4f64_nxv4f64_f64(<vscale x 4 x double> %0, double %1, iXLen %2) nounwind {
664 ; CHECK-LABEL: intrinsic_vfrdiv_vf_nxv4f64_nxv4f64_f64:
665 ; CHECK: # %bb.0: # %entry
666 ; CHECK-NEXT: fsrmi a1, 0
667 ; CHECK-NEXT: vsetvli zero, a0, e64, m4, ta, ma
668 ; CHECK-NEXT: vfrdiv.vf v8, v8, fa0
669 ; CHECK-NEXT: fsrm a1
672 %a = call <vscale x 4 x double> @llvm.riscv.vfrdiv.nxv4f64.f64(
673 <vscale x 4 x double> undef,
674 <vscale x 4 x double> %0,
678 ret <vscale x 4 x double> %a
681 declare <vscale x 4 x double> @llvm.riscv.vfrdiv.mask.nxv4f64.f64(
682 <vscale x 4 x double>,
683 <vscale x 4 x double>,
686 iXLen, iXLen, iXLen);
688 define <vscale x 4 x double> @intrinsic_vfrdiv_mask_vf_nxv4f64_nxv4f64_f64(<vscale x 4 x double> %0, <vscale x 4 x double> %1, double %2, <vscale x 4 x i1> %3, iXLen %4) nounwind {
689 ; CHECK-LABEL: intrinsic_vfrdiv_mask_vf_nxv4f64_nxv4f64_f64:
690 ; CHECK: # %bb.0: # %entry
691 ; CHECK-NEXT: fsrmi a1, 0
692 ; CHECK-NEXT: vsetvli zero, a0, e64, m4, ta, mu
693 ; CHECK-NEXT: vfrdiv.vf v8, v12, fa0, v0.t
694 ; CHECK-NEXT: fsrm a1
697 %a = call <vscale x 4 x double> @llvm.riscv.vfrdiv.mask.nxv4f64.f64(
698 <vscale x 4 x double> %0,
699 <vscale x 4 x double> %1,
701 <vscale x 4 x i1> %3,
702 iXLen 0, iXLen %4, iXLen 1)
704 ret <vscale x 4 x double> %a
707 declare <vscale x 8 x double> @llvm.riscv.vfrdiv.nxv8f64.f64(
708 <vscale x 8 x double>,
709 <vscale x 8 x double>,
713 define <vscale x 8 x double> @intrinsic_vfrdiv_vf_nxv8f64_nxv8f64_f64(<vscale x 8 x double> %0, double %1, iXLen %2) nounwind {
714 ; CHECK-LABEL: intrinsic_vfrdiv_vf_nxv8f64_nxv8f64_f64:
715 ; CHECK: # %bb.0: # %entry
716 ; CHECK-NEXT: fsrmi a1, 0
717 ; CHECK-NEXT: vsetvli zero, a0, e64, m8, ta, ma
718 ; CHECK-NEXT: vfrdiv.vf v8, v8, fa0
719 ; CHECK-NEXT: fsrm a1
722 %a = call <vscale x 8 x double> @llvm.riscv.vfrdiv.nxv8f64.f64(
723 <vscale x 8 x double> undef,
724 <vscale x 8 x double> %0,
728 ret <vscale x 8 x double> %a
731 declare <vscale x 8 x double> @llvm.riscv.vfrdiv.mask.nxv8f64.f64(
732 <vscale x 8 x double>,
733 <vscale x 8 x double>,
736 iXLen, iXLen, iXLen);
738 define <vscale x 8 x double> @intrinsic_vfrdiv_mask_vf_nxv8f64_nxv8f64_f64(<vscale x 8 x double> %0, <vscale x 8 x double> %1, double %2, <vscale x 8 x i1> %3, iXLen %4) nounwind {
739 ; CHECK-LABEL: intrinsic_vfrdiv_mask_vf_nxv8f64_nxv8f64_f64:
740 ; CHECK: # %bb.0: # %entry
741 ; CHECK-NEXT: fsrmi a1, 0
742 ; CHECK-NEXT: vsetvli zero, a0, e64, m8, ta, mu
743 ; CHECK-NEXT: vfrdiv.vf v8, v16, fa0, v0.t
744 ; CHECK-NEXT: fsrm a1
747 %a = call <vscale x 8 x double> @llvm.riscv.vfrdiv.mask.nxv8f64.f64(
748 <vscale x 8 x double> %0,
749 <vscale x 8 x double> %1,
751 <vscale x 8 x i1> %3,
752 iXLen 0, iXLen %4, iXLen 1)
754 ret <vscale x 8 x double> %a