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.vfrsqrt7.nxv1f16(
12 define <vscale x 1 x half> @intrinsic_vfrsqrt7_v_nxv1f16_nxv1f16(<vscale x 1 x half> %0, iXLen %1) nounwind {
13 ; CHECK-LABEL: intrinsic_vfrsqrt7_v_nxv1f16_nxv1f16:
14 ; CHECK: # %bb.0: # %entry
15 ; CHECK-NEXT: vsetvli zero, a0, e16, mf4, ta, ma
16 ; CHECK-NEXT: vfrsqrt7.v v8, v8
19 %a = call <vscale x 1 x half> @llvm.riscv.vfrsqrt7.nxv1f16(
20 <vscale x 1 x half> undef,
21 <vscale x 1 x half> %0,
24 ret <vscale x 1 x half> %a
27 declare <vscale x 1 x half> @llvm.riscv.vfrsqrt7.mask.nxv1f16(
34 define <vscale x 1 x half> @intrinsic_vfrsqrt7_mask_v_nxv1f16_nxv1f16(<vscale x 1 x i1> %0, <vscale x 1 x half> %1, <vscale x 1 x half> %2, iXLen %3) nounwind {
35 ; CHECK-LABEL: intrinsic_vfrsqrt7_mask_v_nxv1f16_nxv1f16:
36 ; CHECK: # %bb.0: # %entry
37 ; CHECK-NEXT: vsetvli zero, a0, e16, mf4, ta, mu
38 ; CHECK-NEXT: vfrsqrt7.v v8, v9, v0.t
41 %a = call <vscale x 1 x half> @llvm.riscv.vfrsqrt7.mask.nxv1f16(
42 <vscale x 1 x half> %1,
43 <vscale x 1 x half> %2,
47 ret <vscale x 1 x half> %a
50 declare <vscale x 2 x half> @llvm.riscv.vfrsqrt7.nxv2f16(
55 define <vscale x 2 x half> @intrinsic_vfrsqrt7_v_nxv2f16_nxv2f16(<vscale x 2 x half> %0, iXLen %1) nounwind {
56 ; CHECK-LABEL: intrinsic_vfrsqrt7_v_nxv2f16_nxv2f16:
57 ; CHECK: # %bb.0: # %entry
58 ; CHECK-NEXT: vsetvli zero, a0, e16, mf2, ta, ma
59 ; CHECK-NEXT: vfrsqrt7.v v8, v8
62 %a = call <vscale x 2 x half> @llvm.riscv.vfrsqrt7.nxv2f16(
63 <vscale x 2 x half> undef,
64 <vscale x 2 x half> %0,
67 ret <vscale x 2 x half> %a
70 declare <vscale x 2 x half> @llvm.riscv.vfrsqrt7.mask.nxv2f16(
77 define <vscale x 2 x half> @intrinsic_vfrsqrt7_mask_v_nxv2f16_nxv2f16(<vscale x 2 x i1> %0, <vscale x 2 x half> %1, <vscale x 2 x half> %2, iXLen %3) nounwind {
78 ; CHECK-LABEL: intrinsic_vfrsqrt7_mask_v_nxv2f16_nxv2f16:
79 ; CHECK: # %bb.0: # %entry
80 ; CHECK-NEXT: vsetvli zero, a0, e16, mf2, ta, mu
81 ; CHECK-NEXT: vfrsqrt7.v v8, v9, v0.t
84 %a = call <vscale x 2 x half> @llvm.riscv.vfrsqrt7.mask.nxv2f16(
85 <vscale x 2 x half> %1,
86 <vscale x 2 x half> %2,
90 ret <vscale x 2 x half> %a
93 declare <vscale x 4 x half> @llvm.riscv.vfrsqrt7.nxv4f16(
98 define <vscale x 4 x half> @intrinsic_vfrsqrt7_v_nxv4f16_nxv4f16(<vscale x 4 x half> %0, iXLen %1) nounwind {
99 ; CHECK-LABEL: intrinsic_vfrsqrt7_v_nxv4f16_nxv4f16:
100 ; CHECK: # %bb.0: # %entry
101 ; CHECK-NEXT: vsetvli zero, a0, e16, m1, ta, ma
102 ; CHECK-NEXT: vfrsqrt7.v v8, v8
105 %a = call <vscale x 4 x half> @llvm.riscv.vfrsqrt7.nxv4f16(
106 <vscale x 4 x half> undef,
107 <vscale x 4 x half> %0,
110 ret <vscale x 4 x half> %a
113 declare <vscale x 4 x half> @llvm.riscv.vfrsqrt7.mask.nxv4f16(
120 define <vscale x 4 x half> @intrinsic_vfrsqrt7_mask_v_nxv4f16_nxv4f16(<vscale x 4 x i1> %0, <vscale x 4 x half> %1, <vscale x 4 x half> %2, iXLen %3) nounwind {
121 ; CHECK-LABEL: intrinsic_vfrsqrt7_mask_v_nxv4f16_nxv4f16:
122 ; CHECK: # %bb.0: # %entry
123 ; CHECK-NEXT: vsetvli zero, a0, e16, m1, ta, mu
124 ; CHECK-NEXT: vfrsqrt7.v v8, v9, v0.t
127 %a = call <vscale x 4 x half> @llvm.riscv.vfrsqrt7.mask.nxv4f16(
128 <vscale x 4 x half> %1,
129 <vscale x 4 x half> %2,
130 <vscale x 4 x i1> %0,
133 ret <vscale x 4 x half> %a
136 declare <vscale x 8 x half> @llvm.riscv.vfrsqrt7.nxv8f16(
141 define <vscale x 8 x half> @intrinsic_vfrsqrt7_v_nxv8f16_nxv8f16(<vscale x 8 x half> %0, iXLen %1) nounwind {
142 ; CHECK-LABEL: intrinsic_vfrsqrt7_v_nxv8f16_nxv8f16:
143 ; CHECK: # %bb.0: # %entry
144 ; CHECK-NEXT: vsetvli zero, a0, e16, m2, ta, ma
145 ; CHECK-NEXT: vfrsqrt7.v v8, v8
148 %a = call <vscale x 8 x half> @llvm.riscv.vfrsqrt7.nxv8f16(
149 <vscale x 8 x half> undef,
150 <vscale x 8 x half> %0,
153 ret <vscale x 8 x half> %a
156 declare <vscale x 8 x half> @llvm.riscv.vfrsqrt7.mask.nxv8f16(
163 define <vscale x 8 x half> @intrinsic_vfrsqrt7_mask_v_nxv8f16_nxv8f16(<vscale x 8 x i1> %0, <vscale x 8 x half> %1, <vscale x 8 x half> %2, iXLen %3) nounwind {
164 ; CHECK-LABEL: intrinsic_vfrsqrt7_mask_v_nxv8f16_nxv8f16:
165 ; CHECK: # %bb.0: # %entry
166 ; CHECK-NEXT: vsetvli zero, a0, e16, m2, ta, mu
167 ; CHECK-NEXT: vfrsqrt7.v v8, v10, v0.t
170 %a = call <vscale x 8 x half> @llvm.riscv.vfrsqrt7.mask.nxv8f16(
171 <vscale x 8 x half> %1,
172 <vscale x 8 x half> %2,
173 <vscale x 8 x i1> %0,
176 ret <vscale x 8 x half> %a
179 declare <vscale x 16 x half> @llvm.riscv.vfrsqrt7.nxv16f16(
180 <vscale x 16 x half>,
181 <vscale x 16 x half>,
184 define <vscale x 16 x half> @intrinsic_vfrsqrt7_v_nxv16f16_nxv16f16(<vscale x 16 x half> %0, iXLen %1) nounwind {
185 ; CHECK-LABEL: intrinsic_vfrsqrt7_v_nxv16f16_nxv16f16:
186 ; CHECK: # %bb.0: # %entry
187 ; CHECK-NEXT: vsetvli zero, a0, e16, m4, ta, ma
188 ; CHECK-NEXT: vfrsqrt7.v v8, v8
191 %a = call <vscale x 16 x half> @llvm.riscv.vfrsqrt7.nxv16f16(
192 <vscale x 16 x half> undef,
193 <vscale x 16 x half> %0,
196 ret <vscale x 16 x half> %a
199 declare <vscale x 16 x half> @llvm.riscv.vfrsqrt7.mask.nxv16f16(
200 <vscale x 16 x half>,
201 <vscale x 16 x half>,
206 define <vscale x 16 x half> @intrinsic_vfrsqrt7_mask_v_nxv16f16_nxv16f16(<vscale x 16 x i1> %0, <vscale x 16 x half> %1, <vscale x 16 x half> %2, iXLen %3) nounwind {
207 ; CHECK-LABEL: intrinsic_vfrsqrt7_mask_v_nxv16f16_nxv16f16:
208 ; CHECK: # %bb.0: # %entry
209 ; CHECK-NEXT: vsetvli zero, a0, e16, m4, ta, mu
210 ; CHECK-NEXT: vfrsqrt7.v v8, v12, v0.t
213 %a = call <vscale x 16 x half> @llvm.riscv.vfrsqrt7.mask.nxv16f16(
214 <vscale x 16 x half> %1,
215 <vscale x 16 x half> %2,
216 <vscale x 16 x i1> %0,
219 ret <vscale x 16 x half> %a
222 declare <vscale x 32 x half> @llvm.riscv.vfrsqrt7.nxv32f16(
223 <vscale x 32 x half>,
224 <vscale x 32 x half>,
227 define <vscale x 32 x half> @intrinsic_vfrsqrt7_v_nxv32f16_nxv32f16(<vscale x 32 x half> %0, iXLen %1) nounwind {
228 ; CHECK-LABEL: intrinsic_vfrsqrt7_v_nxv32f16_nxv32f16:
229 ; CHECK: # %bb.0: # %entry
230 ; CHECK-NEXT: vsetvli zero, a0, e16, m8, ta, ma
231 ; CHECK-NEXT: vfrsqrt7.v v8, v8
234 %a = call <vscale x 32 x half> @llvm.riscv.vfrsqrt7.nxv32f16(
235 <vscale x 32 x half> undef,
236 <vscale x 32 x half> %0,
239 ret <vscale x 32 x half> %a
242 declare <vscale x 32 x half> @llvm.riscv.vfrsqrt7.mask.nxv32f16(
243 <vscale x 32 x half>,
244 <vscale x 32 x half>,
249 define <vscale x 32 x half> @intrinsic_vfrsqrt7_mask_v_nxv32f16_nxv32f16(<vscale x 32 x i1> %0, <vscale x 32 x half> %1, <vscale x 32 x half> %2, iXLen %3) nounwind {
250 ; CHECK-LABEL: intrinsic_vfrsqrt7_mask_v_nxv32f16_nxv32f16:
251 ; CHECK: # %bb.0: # %entry
252 ; CHECK-NEXT: vsetvli zero, a0, e16, m8, ta, mu
253 ; CHECK-NEXT: vfrsqrt7.v v8, v16, v0.t
256 %a = call <vscale x 32 x half> @llvm.riscv.vfrsqrt7.mask.nxv32f16(
257 <vscale x 32 x half> %1,
258 <vscale x 32 x half> %2,
259 <vscale x 32 x i1> %0,
262 ret <vscale x 32 x half> %a
265 declare <vscale x 1 x float> @llvm.riscv.vfrsqrt7.nxv1f32(
266 <vscale x 1 x float>,
267 <vscale x 1 x float>,
270 define <vscale x 1 x float> @intrinsic_vfrsqrt7_v_nxv1f32_nxv1f32(<vscale x 1 x float> %0, iXLen %1) nounwind {
271 ; CHECK-LABEL: intrinsic_vfrsqrt7_v_nxv1f32_nxv1f32:
272 ; CHECK: # %bb.0: # %entry
273 ; CHECK-NEXT: vsetvli zero, a0, e32, mf2, ta, ma
274 ; CHECK-NEXT: vfrsqrt7.v v8, v8
277 %a = call <vscale x 1 x float> @llvm.riscv.vfrsqrt7.nxv1f32(
278 <vscale x 1 x float> undef,
279 <vscale x 1 x float> %0,
282 ret <vscale x 1 x float> %a
285 declare <vscale x 1 x float> @llvm.riscv.vfrsqrt7.mask.nxv1f32(
286 <vscale x 1 x float>,
287 <vscale x 1 x float>,
292 define <vscale x 1 x float> @intrinsic_vfrsqrt7_mask_v_nxv1f32_nxv1f32(<vscale x 1 x i1> %0, <vscale x 1 x float> %1, <vscale x 1 x float> %2, iXLen %3) nounwind {
293 ; CHECK-LABEL: intrinsic_vfrsqrt7_mask_v_nxv1f32_nxv1f32:
294 ; CHECK: # %bb.0: # %entry
295 ; CHECK-NEXT: vsetvli zero, a0, e32, mf2, ta, mu
296 ; CHECK-NEXT: vfrsqrt7.v v8, v9, v0.t
299 %a = call <vscale x 1 x float> @llvm.riscv.vfrsqrt7.mask.nxv1f32(
300 <vscale x 1 x float> %1,
301 <vscale x 1 x float> %2,
302 <vscale x 1 x i1> %0,
305 ret <vscale x 1 x float> %a
308 declare <vscale x 2 x float> @llvm.riscv.vfrsqrt7.nxv2f32(
309 <vscale x 2 x float>,
310 <vscale x 2 x float>,
313 define <vscale x 2 x float> @intrinsic_vfrsqrt7_v_nxv2f32_nxv2f32(<vscale x 2 x float> %0, iXLen %1) nounwind {
314 ; CHECK-LABEL: intrinsic_vfrsqrt7_v_nxv2f32_nxv2f32:
315 ; CHECK: # %bb.0: # %entry
316 ; CHECK-NEXT: vsetvli zero, a0, e32, m1, ta, ma
317 ; CHECK-NEXT: vfrsqrt7.v v8, v8
320 %a = call <vscale x 2 x float> @llvm.riscv.vfrsqrt7.nxv2f32(
321 <vscale x 2 x float> undef,
322 <vscale x 2 x float> %0,
325 ret <vscale x 2 x float> %a
328 declare <vscale x 2 x float> @llvm.riscv.vfrsqrt7.mask.nxv2f32(
329 <vscale x 2 x float>,
330 <vscale x 2 x float>,
335 define <vscale x 2 x float> @intrinsic_vfrsqrt7_mask_v_nxv2f32_nxv2f32(<vscale x 2 x i1> %0, <vscale x 2 x float> %1, <vscale x 2 x float> %2, iXLen %3) nounwind {
336 ; CHECK-LABEL: intrinsic_vfrsqrt7_mask_v_nxv2f32_nxv2f32:
337 ; CHECK: # %bb.0: # %entry
338 ; CHECK-NEXT: vsetvli zero, a0, e32, m1, ta, mu
339 ; CHECK-NEXT: vfrsqrt7.v v8, v9, v0.t
342 %a = call <vscale x 2 x float> @llvm.riscv.vfrsqrt7.mask.nxv2f32(
343 <vscale x 2 x float> %1,
344 <vscale x 2 x float> %2,
345 <vscale x 2 x i1> %0,
348 ret <vscale x 2 x float> %a
351 declare <vscale x 4 x float> @llvm.riscv.vfrsqrt7.nxv4f32(
352 <vscale x 4 x float>,
353 <vscale x 4 x float>,
356 define <vscale x 4 x float> @intrinsic_vfrsqrt7_v_nxv4f32_nxv4f32(<vscale x 4 x float> %0, iXLen %1) nounwind {
357 ; CHECK-LABEL: intrinsic_vfrsqrt7_v_nxv4f32_nxv4f32:
358 ; CHECK: # %bb.0: # %entry
359 ; CHECK-NEXT: vsetvli zero, a0, e32, m2, ta, ma
360 ; CHECK-NEXT: vfrsqrt7.v v8, v8
363 %a = call <vscale x 4 x float> @llvm.riscv.vfrsqrt7.nxv4f32(
364 <vscale x 4 x float> undef,
365 <vscale x 4 x float> %0,
368 ret <vscale x 4 x float> %a
371 declare <vscale x 4 x float> @llvm.riscv.vfrsqrt7.mask.nxv4f32(
372 <vscale x 4 x float>,
373 <vscale x 4 x float>,
378 define <vscale x 4 x float> @intrinsic_vfrsqrt7_mask_v_nxv4f32_nxv4f32(<vscale x 4 x i1> %0, <vscale x 4 x float> %1, <vscale x 4 x float> %2, iXLen %3) nounwind {
379 ; CHECK-LABEL: intrinsic_vfrsqrt7_mask_v_nxv4f32_nxv4f32:
380 ; CHECK: # %bb.0: # %entry
381 ; CHECK-NEXT: vsetvli zero, a0, e32, m2, ta, mu
382 ; CHECK-NEXT: vfrsqrt7.v v8, v10, v0.t
385 %a = call <vscale x 4 x float> @llvm.riscv.vfrsqrt7.mask.nxv4f32(
386 <vscale x 4 x float> %1,
387 <vscale x 4 x float> %2,
388 <vscale x 4 x i1> %0,
391 ret <vscale x 4 x float> %a
394 declare <vscale x 8 x float> @llvm.riscv.vfrsqrt7.nxv8f32(
395 <vscale x 8 x float>,
396 <vscale x 8 x float>,
399 define <vscale x 8 x float> @intrinsic_vfrsqrt7_v_nxv8f32_nxv8f32(<vscale x 8 x float> %0, iXLen %1) nounwind {
400 ; CHECK-LABEL: intrinsic_vfrsqrt7_v_nxv8f32_nxv8f32:
401 ; CHECK: # %bb.0: # %entry
402 ; CHECK-NEXT: vsetvli zero, a0, e32, m4, ta, ma
403 ; CHECK-NEXT: vfrsqrt7.v v8, v8
406 %a = call <vscale x 8 x float> @llvm.riscv.vfrsqrt7.nxv8f32(
407 <vscale x 8 x float> undef,
408 <vscale x 8 x float> %0,
411 ret <vscale x 8 x float> %a
414 declare <vscale x 8 x float> @llvm.riscv.vfrsqrt7.mask.nxv8f32(
415 <vscale x 8 x float>,
416 <vscale x 8 x float>,
421 define <vscale x 8 x float> @intrinsic_vfrsqrt7_mask_v_nxv8f32_nxv8f32(<vscale x 8 x i1> %0, <vscale x 8 x float> %1, <vscale x 8 x float> %2, iXLen %3) nounwind {
422 ; CHECK-LABEL: intrinsic_vfrsqrt7_mask_v_nxv8f32_nxv8f32:
423 ; CHECK: # %bb.0: # %entry
424 ; CHECK-NEXT: vsetvli zero, a0, e32, m4, ta, mu
425 ; CHECK-NEXT: vfrsqrt7.v v8, v12, v0.t
428 %a = call <vscale x 8 x float> @llvm.riscv.vfrsqrt7.mask.nxv8f32(
429 <vscale x 8 x float> %1,
430 <vscale x 8 x float> %2,
431 <vscale x 8 x i1> %0,
434 ret <vscale x 8 x float> %a
437 declare <vscale x 16 x float> @llvm.riscv.vfrsqrt7.nxv16f32(
438 <vscale x 16 x float>,
439 <vscale x 16 x float>,
442 define <vscale x 16 x float> @intrinsic_vfrsqrt7_v_nxv16f32_nxv16f32(<vscale x 16 x float> %0, iXLen %1) nounwind {
443 ; CHECK-LABEL: intrinsic_vfrsqrt7_v_nxv16f32_nxv16f32:
444 ; CHECK: # %bb.0: # %entry
445 ; CHECK-NEXT: vsetvli zero, a0, e32, m8, ta, ma
446 ; CHECK-NEXT: vfrsqrt7.v v8, v8
449 %a = call <vscale x 16 x float> @llvm.riscv.vfrsqrt7.nxv16f32(
450 <vscale x 16 x float> undef,
451 <vscale x 16 x float> %0,
454 ret <vscale x 16 x float> %a
457 declare <vscale x 16 x float> @llvm.riscv.vfrsqrt7.mask.nxv16f32(
458 <vscale x 16 x float>,
459 <vscale x 16 x float>,
464 define <vscale x 16 x float> @intrinsic_vfrsqrt7_mask_v_nxv16f32_nxv16f32(<vscale x 16 x i1> %0, <vscale x 16 x float> %1, <vscale x 16 x float> %2, iXLen %3) nounwind {
465 ; CHECK-LABEL: intrinsic_vfrsqrt7_mask_v_nxv16f32_nxv16f32:
466 ; CHECK: # %bb.0: # %entry
467 ; CHECK-NEXT: vsetvli zero, a0, e32, m8, ta, mu
468 ; CHECK-NEXT: vfrsqrt7.v v8, v16, v0.t
471 %a = call <vscale x 16 x float> @llvm.riscv.vfrsqrt7.mask.nxv16f32(
472 <vscale x 16 x float> %1,
473 <vscale x 16 x float> %2,
474 <vscale x 16 x i1> %0,
477 ret <vscale x 16 x float> %a
480 declare <vscale x 1 x double> @llvm.riscv.vfrsqrt7.nxv1f64(
481 <vscale x 1 x double>,
482 <vscale x 1 x double>,
485 define <vscale x 1 x double> @intrinsic_vfrsqrt7_v_nxv1f64_nxv1f64(<vscale x 1 x double> %0, iXLen %1) nounwind {
486 ; CHECK-LABEL: intrinsic_vfrsqrt7_v_nxv1f64_nxv1f64:
487 ; CHECK: # %bb.0: # %entry
488 ; CHECK-NEXT: vsetvli zero, a0, e64, m1, ta, ma
489 ; CHECK-NEXT: vfrsqrt7.v v8, v8
492 %a = call <vscale x 1 x double> @llvm.riscv.vfrsqrt7.nxv1f64(
493 <vscale x 1 x double> undef,
494 <vscale x 1 x double> %0,
497 ret <vscale x 1 x double> %a
500 declare <vscale x 1 x double> @llvm.riscv.vfrsqrt7.mask.nxv1f64(
501 <vscale x 1 x double>,
502 <vscale x 1 x double>,
507 define <vscale x 1 x double> @intrinsic_vfrsqrt7_mask_v_nxv1f64_nxv1f64(<vscale x 1 x i1> %0, <vscale x 1 x double> %1, <vscale x 1 x double> %2, iXLen %3) nounwind {
508 ; CHECK-LABEL: intrinsic_vfrsqrt7_mask_v_nxv1f64_nxv1f64:
509 ; CHECK: # %bb.0: # %entry
510 ; CHECK-NEXT: vsetvli zero, a0, e64, m1, ta, mu
511 ; CHECK-NEXT: vfrsqrt7.v v8, v9, v0.t
514 %a = call <vscale x 1 x double> @llvm.riscv.vfrsqrt7.mask.nxv1f64(
515 <vscale x 1 x double> %1,
516 <vscale x 1 x double> %2,
517 <vscale x 1 x i1> %0,
520 ret <vscale x 1 x double> %a
523 declare <vscale x 2 x double> @llvm.riscv.vfrsqrt7.nxv2f64(
524 <vscale x 2 x double>,
525 <vscale x 2 x double>,
528 define <vscale x 2 x double> @intrinsic_vfrsqrt7_v_nxv2f64_nxv2f64(<vscale x 2 x double> %0, iXLen %1) nounwind {
529 ; CHECK-LABEL: intrinsic_vfrsqrt7_v_nxv2f64_nxv2f64:
530 ; CHECK: # %bb.0: # %entry
531 ; CHECK-NEXT: vsetvli zero, a0, e64, m2, ta, ma
532 ; CHECK-NEXT: vfrsqrt7.v v8, v8
535 %a = call <vscale x 2 x double> @llvm.riscv.vfrsqrt7.nxv2f64(
536 <vscale x 2 x double> undef,
537 <vscale x 2 x double> %0,
540 ret <vscale x 2 x double> %a
543 declare <vscale x 2 x double> @llvm.riscv.vfrsqrt7.mask.nxv2f64(
544 <vscale x 2 x double>,
545 <vscale x 2 x double>,
550 define <vscale x 2 x double> @intrinsic_vfrsqrt7_mask_v_nxv2f64_nxv2f64(<vscale x 2 x i1> %0, <vscale x 2 x double> %1, <vscale x 2 x double> %2, iXLen %3) nounwind {
551 ; CHECK-LABEL: intrinsic_vfrsqrt7_mask_v_nxv2f64_nxv2f64:
552 ; CHECK: # %bb.0: # %entry
553 ; CHECK-NEXT: vsetvli zero, a0, e64, m2, ta, mu
554 ; CHECK-NEXT: vfrsqrt7.v v8, v10, v0.t
557 %a = call <vscale x 2 x double> @llvm.riscv.vfrsqrt7.mask.nxv2f64(
558 <vscale x 2 x double> %1,
559 <vscale x 2 x double> %2,
560 <vscale x 2 x i1> %0,
563 ret <vscale x 2 x double> %a
566 declare <vscale x 4 x double> @llvm.riscv.vfrsqrt7.nxv4f64(
567 <vscale x 4 x double>,
568 <vscale x 4 x double>,
571 define <vscale x 4 x double> @intrinsic_vfrsqrt7_v_nxv4f64_nxv4f64(<vscale x 4 x double> %0, iXLen %1) nounwind {
572 ; CHECK-LABEL: intrinsic_vfrsqrt7_v_nxv4f64_nxv4f64:
573 ; CHECK: # %bb.0: # %entry
574 ; CHECK-NEXT: vsetvli zero, a0, e64, m4, ta, ma
575 ; CHECK-NEXT: vfrsqrt7.v v8, v8
578 %a = call <vscale x 4 x double> @llvm.riscv.vfrsqrt7.nxv4f64(
579 <vscale x 4 x double> undef,
580 <vscale x 4 x double> %0,
583 ret <vscale x 4 x double> %a
586 declare <vscale x 4 x double> @llvm.riscv.vfrsqrt7.mask.nxv4f64(
587 <vscale x 4 x double>,
588 <vscale x 4 x double>,
593 define <vscale x 4 x double> @intrinsic_vfrsqrt7_mask_v_nxv4f64_nxv4f64(<vscale x 4 x i1> %0, <vscale x 4 x double> %1, <vscale x 4 x double> %2, iXLen %3) nounwind {
594 ; CHECK-LABEL: intrinsic_vfrsqrt7_mask_v_nxv4f64_nxv4f64:
595 ; CHECK: # %bb.0: # %entry
596 ; CHECK-NEXT: vsetvli zero, a0, e64, m4, ta, mu
597 ; CHECK-NEXT: vfrsqrt7.v v8, v12, v0.t
600 %a = call <vscale x 4 x double> @llvm.riscv.vfrsqrt7.mask.nxv4f64(
601 <vscale x 4 x double> %1,
602 <vscale x 4 x double> %2,
603 <vscale x 4 x i1> %0,
606 ret <vscale x 4 x double> %a
609 declare <vscale x 8 x double> @llvm.riscv.vfrsqrt7.nxv8f64(
610 <vscale x 8 x double>,
611 <vscale x 8 x double>,
614 define <vscale x 8 x double> @intrinsic_vfrsqrt7_v_nxv8f64_nxv8f64(<vscale x 8 x double> %0, iXLen %1) nounwind {
615 ; CHECK-LABEL: intrinsic_vfrsqrt7_v_nxv8f64_nxv8f64:
616 ; CHECK: # %bb.0: # %entry
617 ; CHECK-NEXT: vsetvli zero, a0, e64, m8, ta, ma
618 ; CHECK-NEXT: vfrsqrt7.v v8, v8
621 %a = call <vscale x 8 x double> @llvm.riscv.vfrsqrt7.nxv8f64(
622 <vscale x 8 x double> undef,
623 <vscale x 8 x double> %0,
626 ret <vscale x 8 x double> %a
629 declare <vscale x 8 x double> @llvm.riscv.vfrsqrt7.mask.nxv8f64(
630 <vscale x 8 x double>,
631 <vscale x 8 x double>,
636 define <vscale x 8 x double> @intrinsic_vfrsqrt7_mask_v_nxv8f64_nxv8f64(<vscale x 8 x i1> %0, <vscale x 8 x double> %1, <vscale x 8 x double> %2, iXLen %3) nounwind {
637 ; CHECK-LABEL: intrinsic_vfrsqrt7_mask_v_nxv8f64_nxv8f64:
638 ; CHECK: # %bb.0: # %entry
639 ; CHECK-NEXT: vsetvli zero, a0, e64, m8, ta, mu
640 ; CHECK-NEXT: vfrsqrt7.v v8, v16, v0.t
643 %a = call <vscale x 8 x double> @llvm.riscv.vfrsqrt7.mask.nxv8f64(
644 <vscale x 8 x double> %1,
645 <vscale x 8 x double> %2,
646 <vscale x 8 x i1> %0,
649 ret <vscale x 8 x double> %a