1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=riscv32 -mattr=+v,+f -verify-machineinstrs \
3 ; RUN: < %s | FileCheck %s
5 declare <vscale x 1 x i8> @llvm.riscv.vslide1down.nxv1i8.i8(
11 define <vscale x 1 x i8> @intrinsic_vslide1down_vx_nxv1i8_nxv1i8_i8(<vscale x 1 x i8> %0, i8 %1, i32 %2) nounwind {
12 ; CHECK-LABEL: intrinsic_vslide1down_vx_nxv1i8_nxv1i8_i8:
13 ; CHECK: # %bb.0: # %entry
14 ; CHECK-NEXT: vsetvli zero, a1, e8, mf8, ta, ma
15 ; CHECK-NEXT: vslide1down.vx v8, v8, a0
18 %a = call <vscale x 1 x i8> @llvm.riscv.vslide1down.nxv1i8.i8(
19 <vscale x 1 x i8> undef,
24 ret <vscale x 1 x i8> %a
27 declare <vscale x 1 x i8> @llvm.riscv.vslide1down.mask.nxv1i8.i8(
35 define <vscale x 1 x i8> @intrinsic_vslide1down_mask_vx_nxv1i8_nxv1i8_i8(<vscale x 1 x i8> %0, <vscale x 1 x i8> %1, i8 %2, <vscale x 1 x i1> %3, i32 %4) nounwind {
36 ; CHECK-LABEL: intrinsic_vslide1down_mask_vx_nxv1i8_nxv1i8_i8:
37 ; CHECK: # %bb.0: # %entry
38 ; CHECK-NEXT: vsetvli zero, a1, e8, mf8, ta, mu
39 ; CHECK-NEXT: vslide1down.vx v8, v9, a0, v0.t
42 %a = call <vscale x 1 x i8> @llvm.riscv.vslide1down.mask.nxv1i8.i8(
49 ret <vscale x 1 x i8> %a
52 declare <vscale x 2 x i8> @llvm.riscv.vslide1down.nxv2i8.i8(
58 define <vscale x 2 x i8> @intrinsic_vslide1down_vx_nxv2i8_nxv2i8_i8(<vscale x 2 x i8> %0, i8 %1, i32 %2) nounwind {
59 ; CHECK-LABEL: intrinsic_vslide1down_vx_nxv2i8_nxv2i8_i8:
60 ; CHECK: # %bb.0: # %entry
61 ; CHECK-NEXT: vsetvli zero, a1, e8, mf4, ta, ma
62 ; CHECK-NEXT: vslide1down.vx v8, v8, a0
65 %a = call <vscale x 2 x i8> @llvm.riscv.vslide1down.nxv2i8.i8(
66 <vscale x 2 x i8> undef,
71 ret <vscale x 2 x i8> %a
74 declare <vscale x 2 x i8> @llvm.riscv.vslide1down.mask.nxv2i8.i8(
82 define <vscale x 2 x i8> @intrinsic_vslide1down_mask_vx_nxv2i8_nxv2i8_i8(<vscale x 2 x i8> %0, <vscale x 2 x i8> %1, i8 %2, <vscale x 2 x i1> %3, i32 %4) nounwind {
83 ; CHECK-LABEL: intrinsic_vslide1down_mask_vx_nxv2i8_nxv2i8_i8:
84 ; CHECK: # %bb.0: # %entry
85 ; CHECK-NEXT: vsetvli zero, a1, e8, mf4, ta, mu
86 ; CHECK-NEXT: vslide1down.vx v8, v9, a0, v0.t
89 %a = call <vscale x 2 x i8> @llvm.riscv.vslide1down.mask.nxv2i8.i8(
96 ret <vscale x 2 x i8> %a
99 declare <vscale x 4 x i8> @llvm.riscv.vslide1down.nxv4i8.i8(
105 define <vscale x 4 x i8> @intrinsic_vslide1down_vx_nxv4i8_nxv4i8_i8(<vscale x 4 x i8> %0, i8 %1, i32 %2) nounwind {
106 ; CHECK-LABEL: intrinsic_vslide1down_vx_nxv4i8_nxv4i8_i8:
107 ; CHECK: # %bb.0: # %entry
108 ; CHECK-NEXT: vsetvli zero, a1, e8, mf2, ta, ma
109 ; CHECK-NEXT: vslide1down.vx v8, v8, a0
112 %a = call <vscale x 4 x i8> @llvm.riscv.vslide1down.nxv4i8.i8(
113 <vscale x 4 x i8> undef,
114 <vscale x 4 x i8> %0,
118 ret <vscale x 4 x i8> %a
121 declare <vscale x 4 x i8> @llvm.riscv.vslide1down.mask.nxv4i8.i8(
129 define <vscale x 4 x i8> @intrinsic_vslide1down_mask_vx_nxv4i8_nxv4i8_i8(<vscale x 4 x i8> %0, <vscale x 4 x i8> %1, i8 %2, <vscale x 4 x i1> %3, i32 %4) nounwind {
130 ; CHECK-LABEL: intrinsic_vslide1down_mask_vx_nxv4i8_nxv4i8_i8:
131 ; CHECK: # %bb.0: # %entry
132 ; CHECK-NEXT: vsetvli zero, a1, e8, mf2, ta, mu
133 ; CHECK-NEXT: vslide1down.vx v8, v9, a0, v0.t
136 %a = call <vscale x 4 x i8> @llvm.riscv.vslide1down.mask.nxv4i8.i8(
137 <vscale x 4 x i8> %0,
138 <vscale x 4 x i8> %1,
140 <vscale x 4 x i1> %3,
143 ret <vscale x 4 x i8> %a
146 declare <vscale x 8 x i8> @llvm.riscv.vslide1down.nxv8i8.i8(
152 define <vscale x 8 x i8> @intrinsic_vslide1down_vx_nxv8i8_nxv8i8_i8(<vscale x 8 x i8> %0, i8 %1, i32 %2) nounwind {
153 ; CHECK-LABEL: intrinsic_vslide1down_vx_nxv8i8_nxv8i8_i8:
154 ; CHECK: # %bb.0: # %entry
155 ; CHECK-NEXT: vsetvli zero, a1, e8, m1, ta, ma
156 ; CHECK-NEXT: vslide1down.vx v8, v8, a0
159 %a = call <vscale x 8 x i8> @llvm.riscv.vslide1down.nxv8i8.i8(
160 <vscale x 8 x i8> undef,
161 <vscale x 8 x i8> %0,
165 ret <vscale x 8 x i8> %a
168 declare <vscale x 8 x i8> @llvm.riscv.vslide1down.mask.nxv8i8.i8(
176 define <vscale x 8 x i8> @intrinsic_vslide1down_mask_vx_nxv8i8_nxv8i8_i8(<vscale x 8 x i8> %0, <vscale x 8 x i8> %1, i8 %2, <vscale x 8 x i1> %3, i32 %4) nounwind {
177 ; CHECK-LABEL: intrinsic_vslide1down_mask_vx_nxv8i8_nxv8i8_i8:
178 ; CHECK: # %bb.0: # %entry
179 ; CHECK-NEXT: vsetvli zero, a1, e8, m1, ta, mu
180 ; CHECK-NEXT: vslide1down.vx v8, v9, a0, v0.t
183 %a = call <vscale x 8 x i8> @llvm.riscv.vslide1down.mask.nxv8i8.i8(
184 <vscale x 8 x i8> %0,
185 <vscale x 8 x i8> %1,
187 <vscale x 8 x i1> %3,
190 ret <vscale x 8 x i8> %a
193 declare <vscale x 16 x i8> @llvm.riscv.vslide1down.nxv16i8.i8(
199 define <vscale x 16 x i8> @intrinsic_vslide1down_vx_nxv16i8_nxv16i8_i8(<vscale x 16 x i8> %0, i8 %1, i32 %2) nounwind {
200 ; CHECK-LABEL: intrinsic_vslide1down_vx_nxv16i8_nxv16i8_i8:
201 ; CHECK: # %bb.0: # %entry
202 ; CHECK-NEXT: vsetvli zero, a1, e8, m2, ta, ma
203 ; CHECK-NEXT: vslide1down.vx v8, v8, a0
206 %a = call <vscale x 16 x i8> @llvm.riscv.vslide1down.nxv16i8.i8(
207 <vscale x 16 x i8> undef,
208 <vscale x 16 x i8> %0,
212 ret <vscale x 16 x i8> %a
215 declare <vscale x 16 x i8> @llvm.riscv.vslide1down.mask.nxv16i8.i8(
223 define <vscale x 16 x i8> @intrinsic_vslide1down_mask_vx_nxv16i8_nxv16i8_i8(<vscale x 16 x i8> %0, <vscale x 16 x i8> %1, i8 %2, <vscale x 16 x i1> %3, i32 %4) nounwind {
224 ; CHECK-LABEL: intrinsic_vslide1down_mask_vx_nxv16i8_nxv16i8_i8:
225 ; CHECK: # %bb.0: # %entry
226 ; CHECK-NEXT: vsetvli zero, a1, e8, m2, ta, mu
227 ; CHECK-NEXT: vslide1down.vx v8, v10, a0, v0.t
230 %a = call <vscale x 16 x i8> @llvm.riscv.vslide1down.mask.nxv16i8.i8(
231 <vscale x 16 x i8> %0,
232 <vscale x 16 x i8> %1,
234 <vscale x 16 x i1> %3,
237 ret <vscale x 16 x i8> %a
240 declare <vscale x 32 x i8> @llvm.riscv.vslide1down.nxv32i8.i8(
246 define <vscale x 32 x i8> @intrinsic_vslide1down_vx_nxv32i8_nxv32i8_i8(<vscale x 32 x i8> %0, i8 %1, i32 %2) nounwind {
247 ; CHECK-LABEL: intrinsic_vslide1down_vx_nxv32i8_nxv32i8_i8:
248 ; CHECK: # %bb.0: # %entry
249 ; CHECK-NEXT: vsetvli zero, a1, e8, m4, ta, ma
250 ; CHECK-NEXT: vslide1down.vx v8, v8, a0
253 %a = call <vscale x 32 x i8> @llvm.riscv.vslide1down.nxv32i8.i8(
254 <vscale x 32 x i8> undef,
255 <vscale x 32 x i8> %0,
259 ret <vscale x 32 x i8> %a
262 declare <vscale x 32 x i8> @llvm.riscv.vslide1down.mask.nxv32i8.i8(
270 define <vscale x 32 x i8> @intrinsic_vslide1down_mask_vx_nxv32i8_nxv32i8_i8(<vscale x 32 x i8> %0, <vscale x 32 x i8> %1, i8 %2, <vscale x 32 x i1> %3, i32 %4) nounwind {
271 ; CHECK-LABEL: intrinsic_vslide1down_mask_vx_nxv32i8_nxv32i8_i8:
272 ; CHECK: # %bb.0: # %entry
273 ; CHECK-NEXT: vsetvli zero, a1, e8, m4, ta, mu
274 ; CHECK-NEXT: vslide1down.vx v8, v12, a0, v0.t
277 %a = call <vscale x 32 x i8> @llvm.riscv.vslide1down.mask.nxv32i8.i8(
278 <vscale x 32 x i8> %0,
279 <vscale x 32 x i8> %1,
281 <vscale x 32 x i1> %3,
284 ret <vscale x 32 x i8> %a
287 declare <vscale x 64 x i8> @llvm.riscv.vslide1down.nxv64i8.i8(
293 define <vscale x 64 x i8> @intrinsic_vslide1down_vx_nxv64i8_nxv64i8_i8(<vscale x 64 x i8> %0, i8 %1, i32 %2) nounwind {
294 ; CHECK-LABEL: intrinsic_vslide1down_vx_nxv64i8_nxv64i8_i8:
295 ; CHECK: # %bb.0: # %entry
296 ; CHECK-NEXT: vsetvli zero, a1, e8, m8, ta, ma
297 ; CHECK-NEXT: vslide1down.vx v8, v8, a0
300 %a = call <vscale x 64 x i8> @llvm.riscv.vslide1down.nxv64i8.i8(
301 <vscale x 64 x i8> undef,
302 <vscale x 64 x i8> %0,
306 ret <vscale x 64 x i8> %a
309 declare <vscale x 64 x i8> @llvm.riscv.vslide1down.mask.nxv64i8.i8(
317 define <vscale x 64 x i8> @intrinsic_vslide1down_mask_vx_nxv64i8_nxv64i8_i8(<vscale x 64 x i8> %0, <vscale x 64 x i8> %1, i8 %2, <vscale x 64 x i1> %3, i32 %4) nounwind {
318 ; CHECK-LABEL: intrinsic_vslide1down_mask_vx_nxv64i8_nxv64i8_i8:
319 ; CHECK: # %bb.0: # %entry
320 ; CHECK-NEXT: vsetvli zero, a1, e8, m8, ta, mu
321 ; CHECK-NEXT: vslide1down.vx v8, v16, a0, v0.t
324 %a = call <vscale x 64 x i8> @llvm.riscv.vslide1down.mask.nxv64i8.i8(
325 <vscale x 64 x i8> %0,
326 <vscale x 64 x i8> %1,
328 <vscale x 64 x i1> %3,
331 ret <vscale x 64 x i8> %a
334 declare <vscale x 1 x i16> @llvm.riscv.vslide1down.nxv1i16.i16(
340 define <vscale x 1 x i16> @intrinsic_vslide1down_vx_nxv1i16_nxv1i16_i16(<vscale x 1 x i16> %0, i16 %1, i32 %2) nounwind {
341 ; CHECK-LABEL: intrinsic_vslide1down_vx_nxv1i16_nxv1i16_i16:
342 ; CHECK: # %bb.0: # %entry
343 ; CHECK-NEXT: vsetvli zero, a1, e16, mf4, ta, ma
344 ; CHECK-NEXT: vslide1down.vx v8, v8, a0
347 %a = call <vscale x 1 x i16> @llvm.riscv.vslide1down.nxv1i16.i16(
348 <vscale x 1 x i16> undef,
349 <vscale x 1 x i16> %0,
353 ret <vscale x 1 x i16> %a
356 declare <vscale x 1 x i16> @llvm.riscv.vslide1down.mask.nxv1i16.i16(
364 define <vscale x 1 x i16> @intrinsic_vslide1down_mask_vx_nxv1i16_nxv1i16_i16(<vscale x 1 x i16> %0, <vscale x 1 x i16> %1, i16 %2, <vscale x 1 x i1> %3, i32 %4) nounwind {
365 ; CHECK-LABEL: intrinsic_vslide1down_mask_vx_nxv1i16_nxv1i16_i16:
366 ; CHECK: # %bb.0: # %entry
367 ; CHECK-NEXT: vsetvli zero, a1, e16, mf4, ta, mu
368 ; CHECK-NEXT: vslide1down.vx v8, v9, a0, v0.t
371 %a = call <vscale x 1 x i16> @llvm.riscv.vslide1down.mask.nxv1i16.i16(
372 <vscale x 1 x i16> %0,
373 <vscale x 1 x i16> %1,
375 <vscale x 1 x i1> %3,
378 ret <vscale x 1 x i16> %a
381 declare <vscale x 2 x i16> @llvm.riscv.vslide1down.nxv2i16.i16(
387 define <vscale x 2 x i16> @intrinsic_vslide1down_vx_nxv2i16_nxv2i16_i16(<vscale x 2 x i16> %0, i16 %1, i32 %2) nounwind {
388 ; CHECK-LABEL: intrinsic_vslide1down_vx_nxv2i16_nxv2i16_i16:
389 ; CHECK: # %bb.0: # %entry
390 ; CHECK-NEXT: vsetvli zero, a1, e16, mf2, ta, ma
391 ; CHECK-NEXT: vslide1down.vx v8, v8, a0
394 %a = call <vscale x 2 x i16> @llvm.riscv.vslide1down.nxv2i16.i16(
395 <vscale x 2 x i16> undef,
396 <vscale x 2 x i16> %0,
400 ret <vscale x 2 x i16> %a
403 declare <vscale x 2 x i16> @llvm.riscv.vslide1down.mask.nxv2i16.i16(
411 define <vscale x 2 x i16> @intrinsic_vslide1down_mask_vx_nxv2i16_nxv2i16_i16(<vscale x 2 x i16> %0, <vscale x 2 x i16> %1, i16 %2, <vscale x 2 x i1> %3, i32 %4) nounwind {
412 ; CHECK-LABEL: intrinsic_vslide1down_mask_vx_nxv2i16_nxv2i16_i16:
413 ; CHECK: # %bb.0: # %entry
414 ; CHECK-NEXT: vsetvli zero, a1, e16, mf2, ta, mu
415 ; CHECK-NEXT: vslide1down.vx v8, v9, a0, v0.t
418 %a = call <vscale x 2 x i16> @llvm.riscv.vslide1down.mask.nxv2i16.i16(
419 <vscale x 2 x i16> %0,
420 <vscale x 2 x i16> %1,
422 <vscale x 2 x i1> %3,
425 ret <vscale x 2 x i16> %a
428 declare <vscale x 4 x i16> @llvm.riscv.vslide1down.nxv4i16.i16(
434 define <vscale x 4 x i16> @intrinsic_vslide1down_vx_nxv4i16_nxv4i16_i16(<vscale x 4 x i16> %0, i16 %1, i32 %2) nounwind {
435 ; CHECK-LABEL: intrinsic_vslide1down_vx_nxv4i16_nxv4i16_i16:
436 ; CHECK: # %bb.0: # %entry
437 ; CHECK-NEXT: vsetvli zero, a1, e16, m1, ta, ma
438 ; CHECK-NEXT: vslide1down.vx v8, v8, a0
441 %a = call <vscale x 4 x i16> @llvm.riscv.vslide1down.nxv4i16.i16(
442 <vscale x 4 x i16> undef,
443 <vscale x 4 x i16> %0,
447 ret <vscale x 4 x i16> %a
450 declare <vscale x 4 x i16> @llvm.riscv.vslide1down.mask.nxv4i16.i16(
458 define <vscale x 4 x i16> @intrinsic_vslide1down_mask_vx_nxv4i16_nxv4i16_i16(<vscale x 4 x i16> %0, <vscale x 4 x i16> %1, i16 %2, <vscale x 4 x i1> %3, i32 %4) nounwind {
459 ; CHECK-LABEL: intrinsic_vslide1down_mask_vx_nxv4i16_nxv4i16_i16:
460 ; CHECK: # %bb.0: # %entry
461 ; CHECK-NEXT: vsetvli zero, a1, e16, m1, ta, mu
462 ; CHECK-NEXT: vslide1down.vx v8, v9, a0, v0.t
465 %a = call <vscale x 4 x i16> @llvm.riscv.vslide1down.mask.nxv4i16.i16(
466 <vscale x 4 x i16> %0,
467 <vscale x 4 x i16> %1,
469 <vscale x 4 x i1> %3,
472 ret <vscale x 4 x i16> %a
475 declare <vscale x 8 x i16> @llvm.riscv.vslide1down.nxv8i16.i16(
481 define <vscale x 8 x i16> @intrinsic_vslide1down_vx_nxv8i16_nxv8i16_i16(<vscale x 8 x i16> %0, i16 %1, i32 %2) nounwind {
482 ; CHECK-LABEL: intrinsic_vslide1down_vx_nxv8i16_nxv8i16_i16:
483 ; CHECK: # %bb.0: # %entry
484 ; CHECK-NEXT: vsetvli zero, a1, e16, m2, ta, ma
485 ; CHECK-NEXT: vslide1down.vx v8, v8, a0
488 %a = call <vscale x 8 x i16> @llvm.riscv.vslide1down.nxv8i16.i16(
489 <vscale x 8 x i16> undef,
490 <vscale x 8 x i16> %0,
494 ret <vscale x 8 x i16> %a
497 declare <vscale x 8 x i16> @llvm.riscv.vslide1down.mask.nxv8i16.i16(
505 define <vscale x 8 x i16> @intrinsic_vslide1down_mask_vx_nxv8i16_nxv8i16_i16(<vscale x 8 x i16> %0, <vscale x 8 x i16> %1, i16 %2, <vscale x 8 x i1> %3, i32 %4) nounwind {
506 ; CHECK-LABEL: intrinsic_vslide1down_mask_vx_nxv8i16_nxv8i16_i16:
507 ; CHECK: # %bb.0: # %entry
508 ; CHECK-NEXT: vsetvli zero, a1, e16, m2, ta, mu
509 ; CHECK-NEXT: vslide1down.vx v8, v10, a0, v0.t
512 %a = call <vscale x 8 x i16> @llvm.riscv.vslide1down.mask.nxv8i16.i16(
513 <vscale x 8 x i16> %0,
514 <vscale x 8 x i16> %1,
516 <vscale x 8 x i1> %3,
519 ret <vscale x 8 x i16> %a
522 declare <vscale x 16 x i16> @llvm.riscv.vslide1down.nxv16i16.i16(
528 define <vscale x 16 x i16> @intrinsic_vslide1down_vx_nxv16i16_nxv16i16_i16(<vscale x 16 x i16> %0, i16 %1, i32 %2) nounwind {
529 ; CHECK-LABEL: intrinsic_vslide1down_vx_nxv16i16_nxv16i16_i16:
530 ; CHECK: # %bb.0: # %entry
531 ; CHECK-NEXT: vsetvli zero, a1, e16, m4, ta, ma
532 ; CHECK-NEXT: vslide1down.vx v8, v8, a0
535 %a = call <vscale x 16 x i16> @llvm.riscv.vslide1down.nxv16i16.i16(
536 <vscale x 16 x i16> undef,
537 <vscale x 16 x i16> %0,
541 ret <vscale x 16 x i16> %a
544 declare <vscale x 16 x i16> @llvm.riscv.vslide1down.mask.nxv16i16.i16(
552 define <vscale x 16 x i16> @intrinsic_vslide1down_mask_vx_nxv16i16_nxv16i16_i16(<vscale x 16 x i16> %0, <vscale x 16 x i16> %1, i16 %2, <vscale x 16 x i1> %3, i32 %4) nounwind {
553 ; CHECK-LABEL: intrinsic_vslide1down_mask_vx_nxv16i16_nxv16i16_i16:
554 ; CHECK: # %bb.0: # %entry
555 ; CHECK-NEXT: vsetvli zero, a1, e16, m4, ta, mu
556 ; CHECK-NEXT: vslide1down.vx v8, v12, a0, v0.t
559 %a = call <vscale x 16 x i16> @llvm.riscv.vslide1down.mask.nxv16i16.i16(
560 <vscale x 16 x i16> %0,
561 <vscale x 16 x i16> %1,
563 <vscale x 16 x i1> %3,
566 ret <vscale x 16 x i16> %a
569 declare <vscale x 32 x i16> @llvm.riscv.vslide1down.nxv32i16.i16(
575 define <vscale x 32 x i16> @intrinsic_vslide1down_vx_nxv32i16_nxv32i16_i16(<vscale x 32 x i16> %0, i16 %1, i32 %2) nounwind {
576 ; CHECK-LABEL: intrinsic_vslide1down_vx_nxv32i16_nxv32i16_i16:
577 ; CHECK: # %bb.0: # %entry
578 ; CHECK-NEXT: vsetvli zero, a1, e16, m8, ta, ma
579 ; CHECK-NEXT: vslide1down.vx v8, v8, a0
582 %a = call <vscale x 32 x i16> @llvm.riscv.vslide1down.nxv32i16.i16(
583 <vscale x 32 x i16> undef,
584 <vscale x 32 x i16> %0,
588 ret <vscale x 32 x i16> %a
591 declare <vscale x 32 x i16> @llvm.riscv.vslide1down.mask.nxv32i16.i16(
599 define <vscale x 32 x i16> @intrinsic_vslide1down_mask_vx_nxv32i16_nxv32i16_i16(<vscale x 32 x i16> %0, <vscale x 32 x i16> %1, i16 %2, <vscale x 32 x i1> %3, i32 %4) nounwind {
600 ; CHECK-LABEL: intrinsic_vslide1down_mask_vx_nxv32i16_nxv32i16_i16:
601 ; CHECK: # %bb.0: # %entry
602 ; CHECK-NEXT: vsetvli zero, a1, e16, m8, ta, mu
603 ; CHECK-NEXT: vslide1down.vx v8, v16, a0, v0.t
606 %a = call <vscale x 32 x i16> @llvm.riscv.vslide1down.mask.nxv32i16.i16(
607 <vscale x 32 x i16> %0,
608 <vscale x 32 x i16> %1,
610 <vscale x 32 x i1> %3,
613 ret <vscale x 32 x i16> %a
616 declare <vscale x 1 x i32> @llvm.riscv.vslide1down.nxv1i32.i32(
622 define <vscale x 1 x i32> @intrinsic_vslide1down_vx_nxv1i32_nxv1i32_i32(<vscale x 1 x i32> %0, i32 %1, i32 %2) nounwind {
623 ; CHECK-LABEL: intrinsic_vslide1down_vx_nxv1i32_nxv1i32_i32:
624 ; CHECK: # %bb.0: # %entry
625 ; CHECK-NEXT: vsetvli zero, a1, e32, mf2, ta, ma
626 ; CHECK-NEXT: vslide1down.vx v8, v8, a0
629 %a = call <vscale x 1 x i32> @llvm.riscv.vslide1down.nxv1i32.i32(
630 <vscale x 1 x i32> undef,
631 <vscale x 1 x i32> %0,
635 ret <vscale x 1 x i32> %a
638 declare <vscale x 1 x i32> @llvm.riscv.vslide1down.mask.nxv1i32.i32(
646 define <vscale x 1 x i32> @intrinsic_vslide1down_mask_vx_nxv1i32_nxv1i32_i32(<vscale x 1 x i32> %0, <vscale x 1 x i32> %1, i32 %2, <vscale x 1 x i1> %3, i32 %4) nounwind {
647 ; CHECK-LABEL: intrinsic_vslide1down_mask_vx_nxv1i32_nxv1i32_i32:
648 ; CHECK: # %bb.0: # %entry
649 ; CHECK-NEXT: vsetvli zero, a1, e32, mf2, ta, mu
650 ; CHECK-NEXT: vslide1down.vx v8, v9, a0, v0.t
653 %a = call <vscale x 1 x i32> @llvm.riscv.vslide1down.mask.nxv1i32.i32(
654 <vscale x 1 x i32> %0,
655 <vscale x 1 x i32> %1,
657 <vscale x 1 x i1> %3,
660 ret <vscale x 1 x i32> %a
663 declare <vscale x 2 x i32> @llvm.riscv.vslide1down.nxv2i32.i32(
669 define <vscale x 2 x i32> @intrinsic_vslide1down_vx_nxv2i32_nxv2i32_i32(<vscale x 2 x i32> %0, i32 %1, i32 %2) nounwind {
670 ; CHECK-LABEL: intrinsic_vslide1down_vx_nxv2i32_nxv2i32_i32:
671 ; CHECK: # %bb.0: # %entry
672 ; CHECK-NEXT: vsetvli zero, a1, e32, m1, ta, ma
673 ; CHECK-NEXT: vslide1down.vx v8, v8, a0
676 %a = call <vscale x 2 x i32> @llvm.riscv.vslide1down.nxv2i32.i32(
677 <vscale x 2 x i32> undef,
678 <vscale x 2 x i32> %0,
682 ret <vscale x 2 x i32> %a
685 declare <vscale x 2 x i32> @llvm.riscv.vslide1down.mask.nxv2i32.i32(
693 define <vscale x 2 x i32> @intrinsic_vslide1down_mask_vx_nxv2i32_nxv2i32_i32(<vscale x 2 x i32> %0, <vscale x 2 x i32> %1, i32 %2, <vscale x 2 x i1> %3, i32 %4) nounwind {
694 ; CHECK-LABEL: intrinsic_vslide1down_mask_vx_nxv2i32_nxv2i32_i32:
695 ; CHECK: # %bb.0: # %entry
696 ; CHECK-NEXT: vsetvli zero, a1, e32, m1, ta, mu
697 ; CHECK-NEXT: vslide1down.vx v8, v9, a0, v0.t
700 %a = call <vscale x 2 x i32> @llvm.riscv.vslide1down.mask.nxv2i32.i32(
701 <vscale x 2 x i32> %0,
702 <vscale x 2 x i32> %1,
704 <vscale x 2 x i1> %3,
707 ret <vscale x 2 x i32> %a
710 declare <vscale x 4 x i32> @llvm.riscv.vslide1down.nxv4i32.i32(
716 define <vscale x 4 x i32> @intrinsic_vslide1down_vx_nxv4i32_nxv4i32_i32(<vscale x 4 x i32> %0, i32 %1, i32 %2) nounwind {
717 ; CHECK-LABEL: intrinsic_vslide1down_vx_nxv4i32_nxv4i32_i32:
718 ; CHECK: # %bb.0: # %entry
719 ; CHECK-NEXT: vsetvli zero, a1, e32, m2, ta, ma
720 ; CHECK-NEXT: vslide1down.vx v8, v8, a0
723 %a = call <vscale x 4 x i32> @llvm.riscv.vslide1down.nxv4i32.i32(
724 <vscale x 4 x i32> undef,
725 <vscale x 4 x i32> %0,
729 ret <vscale x 4 x i32> %a
732 declare <vscale x 4 x i32> @llvm.riscv.vslide1down.mask.nxv4i32.i32(
740 define <vscale x 4 x i32> @intrinsic_vslide1down_mask_vx_nxv4i32_nxv4i32_i32(<vscale x 4 x i32> %0, <vscale x 4 x i32> %1, i32 %2, <vscale x 4 x i1> %3, i32 %4) nounwind {
741 ; CHECK-LABEL: intrinsic_vslide1down_mask_vx_nxv4i32_nxv4i32_i32:
742 ; CHECK: # %bb.0: # %entry
743 ; CHECK-NEXT: vsetvli zero, a1, e32, m2, ta, mu
744 ; CHECK-NEXT: vslide1down.vx v8, v10, a0, v0.t
747 %a = call <vscale x 4 x i32> @llvm.riscv.vslide1down.mask.nxv4i32.i32(
748 <vscale x 4 x i32> %0,
749 <vscale x 4 x i32> %1,
751 <vscale x 4 x i1> %3,
754 ret <vscale x 4 x i32> %a
757 declare <vscale x 8 x i32> @llvm.riscv.vslide1down.nxv8i32.i32(
763 define <vscale x 8 x i32> @intrinsic_vslide1down_vx_nxv8i32_nxv8i32_i32(<vscale x 8 x i32> %0, i32 %1, i32 %2) nounwind {
764 ; CHECK-LABEL: intrinsic_vslide1down_vx_nxv8i32_nxv8i32_i32:
765 ; CHECK: # %bb.0: # %entry
766 ; CHECK-NEXT: vsetvli zero, a1, e32, m4, ta, ma
767 ; CHECK-NEXT: vslide1down.vx v8, v8, a0
770 %a = call <vscale x 8 x i32> @llvm.riscv.vslide1down.nxv8i32.i32(
771 <vscale x 8 x i32> undef,
772 <vscale x 8 x i32> %0,
776 ret <vscale x 8 x i32> %a
779 declare <vscale x 8 x i32> @llvm.riscv.vslide1down.mask.nxv8i32.i32(
787 define <vscale x 8 x i32> @intrinsic_vslide1down_mask_vx_nxv8i32_nxv8i32_i32(<vscale x 8 x i32> %0, <vscale x 8 x i32> %1, i32 %2, <vscale x 8 x i1> %3, i32 %4) nounwind {
788 ; CHECK-LABEL: intrinsic_vslide1down_mask_vx_nxv8i32_nxv8i32_i32:
789 ; CHECK: # %bb.0: # %entry
790 ; CHECK-NEXT: vsetvli zero, a1, e32, m4, ta, mu
791 ; CHECK-NEXT: vslide1down.vx v8, v12, a0, v0.t
794 %a = call <vscale x 8 x i32> @llvm.riscv.vslide1down.mask.nxv8i32.i32(
795 <vscale x 8 x i32> %0,
796 <vscale x 8 x i32> %1,
798 <vscale x 8 x i1> %3,
801 ret <vscale x 8 x i32> %a
804 declare <vscale x 16 x i32> @llvm.riscv.vslide1down.nxv16i32.i32(
810 define <vscale x 16 x i32> @intrinsic_vslide1down_vx_nxv16i32_nxv16i32_i32(<vscale x 16 x i32> %0, i32 %1, i32 %2) nounwind {
811 ; CHECK-LABEL: intrinsic_vslide1down_vx_nxv16i32_nxv16i32_i32:
812 ; CHECK: # %bb.0: # %entry
813 ; CHECK-NEXT: vsetvli zero, a1, e32, m8, ta, ma
814 ; CHECK-NEXT: vslide1down.vx v8, v8, a0
817 %a = call <vscale x 16 x i32> @llvm.riscv.vslide1down.nxv16i32.i32(
818 <vscale x 16 x i32> undef,
819 <vscale x 16 x i32> %0,
823 ret <vscale x 16 x i32> %a
826 declare <vscale x 16 x i32> @llvm.riscv.vslide1down.mask.nxv16i32.i32(
834 define <vscale x 16 x i32> @intrinsic_vslide1down_mask_vx_nxv16i32_nxv16i32_i32(<vscale x 16 x i32> %0, <vscale x 16 x i32> %1, i32 %2, <vscale x 16 x i1> %3, i32 %4) nounwind {
835 ; CHECK-LABEL: intrinsic_vslide1down_mask_vx_nxv16i32_nxv16i32_i32:
836 ; CHECK: # %bb.0: # %entry
837 ; CHECK-NEXT: vsetvli zero, a1, e32, m8, ta, mu
838 ; CHECK-NEXT: vslide1down.vx v8, v16, a0, v0.t
841 %a = call <vscale x 16 x i32> @llvm.riscv.vslide1down.mask.nxv16i32.i32(
842 <vscale x 16 x i32> %0,
843 <vscale x 16 x i32> %1,
845 <vscale x 16 x i1> %3,
848 ret <vscale x 16 x i32> %a
851 declare <vscale x 1 x i64> @llvm.riscv.vslide1down.nxv1i64.i64(
857 define <vscale x 1 x i64> @intrinsic_vslide1down_vx_nxv1i64_nxv1i64_i64(<vscale x 1 x i64> %0, i64 %1, i32 %2) nounwind {
858 ; CHECK-LABEL: intrinsic_vslide1down_vx_nxv1i64_nxv1i64_i64:
859 ; CHECK: # %bb.0: # %entry
860 ; CHECK-NEXT: vsetvli a2, a2, e64, m1, ta, ma
861 ; CHECK-NEXT: slli a2, a2, 1
862 ; CHECK-NEXT: vsetvli zero, a2, e32, m1, ta, ma
863 ; CHECK-NEXT: vslide1down.vx v8, v8, a0
864 ; CHECK-NEXT: vslide1down.vx v8, v8, a1
867 %a = call <vscale x 1 x i64> @llvm.riscv.vslide1down.nxv1i64.i64(
868 <vscale x 1 x i64> undef,
869 <vscale x 1 x i64> %0,
873 ret <vscale x 1 x i64> %a
876 declare <vscale x 1 x i64> @llvm.riscv.vslide1down.mask.nxv1i64.i64(
884 define <vscale x 1 x i64> @intrinsic_vslide1down_mask_vx_nxv1i64_nxv1i64_i64(<vscale x 1 x i64> %0, <vscale x 1 x i64> %1, i64 %2, <vscale x 1 x i1> %3, i32 %4) nounwind {
885 ; CHECK-LABEL: intrinsic_vslide1down_mask_vx_nxv1i64_nxv1i64_i64:
886 ; CHECK: # %bb.0: # %entry
887 ; CHECK-NEXT: vsetvli a3, a2, e64, m1, ta, ma
888 ; CHECK-NEXT: slli a3, a3, 1
889 ; CHECK-NEXT: vsetvli zero, a3, e32, m1, ta, ma
890 ; CHECK-NEXT: vslide1down.vx v9, v9, a0
891 ; CHECK-NEXT: vslide1down.vx v9, v9, a1
892 ; CHECK-NEXT: vsetvli zero, a2, e64, m1, ta, ma
893 ; CHECK-NEXT: vmerge.vvm v8, v8, v9, v0
896 %a = call <vscale x 1 x i64> @llvm.riscv.vslide1down.mask.nxv1i64.i64(
897 <vscale x 1 x i64> %0,
898 <vscale x 1 x i64> %1,
900 <vscale x 1 x i1> %3,
903 ret <vscale x 1 x i64> %a
906 declare <vscale x 2 x i64> @llvm.riscv.vslide1down.nxv2i64.i64(
912 define <vscale x 2 x i64> @intrinsic_vslide1down_vx_nxv2i64_nxv2i64_i64(<vscale x 2 x i64> %0, i64 %1, i32 %2) nounwind {
913 ; CHECK-LABEL: intrinsic_vslide1down_vx_nxv2i64_nxv2i64_i64:
914 ; CHECK: # %bb.0: # %entry
915 ; CHECK-NEXT: vsetvli a2, a2, e64, m2, ta, ma
916 ; CHECK-NEXT: slli a2, a2, 1
917 ; CHECK-NEXT: vsetvli zero, a2, e32, m2, ta, ma
918 ; CHECK-NEXT: vslide1down.vx v8, v8, a0
919 ; CHECK-NEXT: vslide1down.vx v8, v8, a1
922 %a = call <vscale x 2 x i64> @llvm.riscv.vslide1down.nxv2i64.i64(
923 <vscale x 2 x i64> undef,
924 <vscale x 2 x i64> %0,
928 ret <vscale x 2 x i64> %a
931 declare <vscale x 2 x i64> @llvm.riscv.vslide1down.mask.nxv2i64.i64(
939 define <vscale x 2 x i64> @intrinsic_vslide1down_mask_vx_nxv2i64_nxv2i64_i64(<vscale x 2 x i64> %0, <vscale x 2 x i64> %1, i64 %2, <vscale x 2 x i1> %3, i32 %4) nounwind {
940 ; CHECK-LABEL: intrinsic_vslide1down_mask_vx_nxv2i64_nxv2i64_i64:
941 ; CHECK: # %bb.0: # %entry
942 ; CHECK-NEXT: vsetvli a3, a2, e64, m2, ta, ma
943 ; CHECK-NEXT: slli a3, a3, 1
944 ; CHECK-NEXT: vsetvli zero, a3, e32, m2, ta, ma
945 ; CHECK-NEXT: vslide1down.vx v10, v10, a0
946 ; CHECK-NEXT: vslide1down.vx v10, v10, a1
947 ; CHECK-NEXT: vsetvli zero, a2, e64, m2, ta, ma
948 ; CHECK-NEXT: vmerge.vvm v8, v8, v10, v0
951 %a = call <vscale x 2 x i64> @llvm.riscv.vslide1down.mask.nxv2i64.i64(
952 <vscale x 2 x i64> %0,
953 <vscale x 2 x i64> %1,
955 <vscale x 2 x i1> %3,
958 ret <vscale x 2 x i64> %a
961 declare <vscale x 4 x i64> @llvm.riscv.vslide1down.nxv4i64.i64(
967 define <vscale x 4 x i64> @intrinsic_vslide1down_vx_nxv4i64_nxv4i64_i64(<vscale x 4 x i64> %0, i64 %1, i32 %2) nounwind {
968 ; CHECK-LABEL: intrinsic_vslide1down_vx_nxv4i64_nxv4i64_i64:
969 ; CHECK: # %bb.0: # %entry
970 ; CHECK-NEXT: vsetvli a2, a2, e64, m4, ta, ma
971 ; CHECK-NEXT: slli a2, a2, 1
972 ; CHECK-NEXT: vsetvli zero, a2, e32, m4, ta, ma
973 ; CHECK-NEXT: vslide1down.vx v8, v8, a0
974 ; CHECK-NEXT: vslide1down.vx v8, v8, a1
977 %a = call <vscale x 4 x i64> @llvm.riscv.vslide1down.nxv4i64.i64(
978 <vscale x 4 x i64> undef,
979 <vscale x 4 x i64> %0,
983 ret <vscale x 4 x i64> %a
986 declare <vscale x 4 x i64> @llvm.riscv.vslide1down.mask.nxv4i64.i64(
994 define <vscale x 4 x i64> @intrinsic_vslide1down_mask_vx_nxv4i64_nxv4i64_i64(<vscale x 4 x i64> %0, <vscale x 4 x i64> %1, i64 %2, <vscale x 4 x i1> %3, i32 %4) nounwind {
995 ; CHECK-LABEL: intrinsic_vslide1down_mask_vx_nxv4i64_nxv4i64_i64:
996 ; CHECK: # %bb.0: # %entry
997 ; CHECK-NEXT: vsetvli a3, a2, e64, m4, ta, ma
998 ; CHECK-NEXT: slli a3, a3, 1
999 ; CHECK-NEXT: vsetvli zero, a3, e32, m4, ta, ma
1000 ; CHECK-NEXT: vslide1down.vx v12, v12, a0
1001 ; CHECK-NEXT: vslide1down.vx v12, v12, a1
1002 ; CHECK-NEXT: vsetvli zero, a2, e64, m4, ta, ma
1003 ; CHECK-NEXT: vmerge.vvm v8, v8, v12, v0
1006 %a = call <vscale x 4 x i64> @llvm.riscv.vslide1down.mask.nxv4i64.i64(
1007 <vscale x 4 x i64> %0,
1008 <vscale x 4 x i64> %1,
1010 <vscale x 4 x i1> %3,
1013 ret <vscale x 4 x i64> %a
1016 declare <vscale x 8 x i64> @llvm.riscv.vslide1down.nxv8i64.i64(
1022 define <vscale x 8 x i64> @intrinsic_vslide1down_vx_nxv8i64_nxv8i64_i64(<vscale x 8 x i64> %0, i64 %1, i32 %2) nounwind {
1023 ; CHECK-LABEL: intrinsic_vslide1down_vx_nxv8i64_nxv8i64_i64:
1024 ; CHECK: # %bb.0: # %entry
1025 ; CHECK-NEXT: vsetvli a2, a2, e64, m8, ta, ma
1026 ; CHECK-NEXT: slli a2, a2, 1
1027 ; CHECK-NEXT: vsetvli zero, a2, e32, m8, ta, ma
1028 ; CHECK-NEXT: vslide1down.vx v8, v8, a0
1029 ; CHECK-NEXT: vslide1down.vx v8, v8, a1
1032 %a = call <vscale x 8 x i64> @llvm.riscv.vslide1down.nxv8i64.i64(
1033 <vscale x 8 x i64> undef,
1034 <vscale x 8 x i64> %0,
1038 ret <vscale x 8 x i64> %a
1041 declare <vscale x 8 x i64> @llvm.riscv.vslide1down.mask.nxv8i64.i64(
1049 define <vscale x 8 x i64> @intrinsic_vslide1down_mask_vx_nxv8i64_nxv8i64_i64(<vscale x 8 x i64> %0, <vscale x 8 x i64> %1, i64 %2, <vscale x 8 x i1> %3, i32 %4) nounwind {
1050 ; CHECK-LABEL: intrinsic_vslide1down_mask_vx_nxv8i64_nxv8i64_i64:
1051 ; CHECK: # %bb.0: # %entry
1052 ; CHECK-NEXT: vsetvli a3, a2, e64, m8, ta, ma
1053 ; CHECK-NEXT: slli a3, a3, 1
1054 ; CHECK-NEXT: vsetvli zero, a3, e32, m8, ta, ma
1055 ; CHECK-NEXT: vslide1down.vx v16, v16, a0
1056 ; CHECK-NEXT: vslide1down.vx v16, v16, a1
1057 ; CHECK-NEXT: vsetvli zero, a2, e64, m8, ta, ma
1058 ; CHECK-NEXT: vmerge.vvm v8, v8, v16, v0
1061 %a = call <vscale x 8 x i64> @llvm.riscv.vslide1down.mask.nxv8i64.i64(
1062 <vscale x 8 x i64> %0,
1063 <vscale x 8 x i64> %1,
1065 <vscale x 8 x i1> %3,
1068 ret <vscale x 8 x i64> %a