diff --git a/llvm/include/llvm/IR/IntrinsicsRISCV.td b/llvm/include/llvm/IR/IntrinsicsRISCV.td --- a/llvm/include/llvm/IR/IntrinsicsRISCV.td +++ b/llvm/include/llvm/IR/IntrinsicsRISCV.td @@ -208,6 +208,16 @@ [IntrNoMem]>, RISCVVIntrinsic { let ExtendOperand = 2; } + class RISCVTernaryAAAXNoMask + : Intrinsic<[llvm_anyvector_ty], + [LLVMMatchType<0>, LLVMMatchType<0>, llvm_anyint_ty, + LLVMMatchType<1>], + [IntrNoMem]>, RISCVVIntrinsic; + class RISCVTernaryAAAXMask + : Intrinsic<[llvm_anyvector_ty], + [LLVMMatchType<0>, LLVMMatchType<0>, llvm_anyint_ty, + LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, LLVMMatchType<1>], + [IntrNoMem]>, RISCVVIntrinsic; // For Saturating binary operations. // The destination vector type is the same as first source vector. @@ -267,6 +277,10 @@ def "int_riscv_" # NAME : RISCVSaturatingBinaryAAXNoMask; def "int_riscv_" # NAME # "_mask" : RISCVSaturatingBinaryAAXMask; } + multiclass RISCVTernaryAAAX { + def "int_riscv_" # NAME : RISCVTernaryAAAXNoMask; + def "int_riscv_" # NAME # "_mask" : RISCVTernaryAAAXMask; + } defm vle : RISCVUSLoad; defm vse : RISCVUSStore; @@ -328,4 +342,7 @@ defm vsadd : RISCVSaturatingBinaryAAX; defm vssubu : RISCVSaturatingBinaryAAX; defm vssub : RISCVSaturatingBinaryAAX; + + defm vslideup : RISCVTernaryAAAX; + defm vslidedown : RISCVTernaryAAAX; } // TargetPrefix = "riscv" diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td --- a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td +++ b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td @@ -466,6 +466,28 @@ let VLMul = MInfo.value; } +class VPseudoTernaryNoMask : + Pseudo<(outs RetClass:$rd), + (ins RetClass:$rs3, Op1Class:$rs1, Op2Class:$rs2, + GPR:$vl, ixlenimm:$sew), + []>, + RISCVVPseudo { + let mayLoad = 0; + let mayStore = 0; + let hasSideEffects = 0; + let usesCustomInserter = 1; + let Constraints = Join<[Constraint, "$rd = $rs3"], ",">.ret; + let Uses = [VL, VTYPE]; + let VLIndex = 4; + let SEWIndex = 5; + let MergeOpIndex = 1; + let HasDummyMask = 1; + let BaseInstr = !cast(PseudoToVInst.VInst); +} + multiclass VPseudoUSLoad { foreach lmul = MxList.m in { defvar LInfo = lmul.MX; @@ -686,6 +708,32 @@ defm "" : VPseudoBinaryV_WI; } +multiclass VPseudoTernary { + let VLMul = MInfo.value in { + def "_" # MInfo.MX : VPseudoTernaryNoMask; + def "_" # MInfo.MX # "_MASK" : VPseudoBinaryMask; + } +} + +multiclass VPseudoTernaryV_VX { + foreach m = MxList.m in + defm _VX : VPseudoTernary; +} + +multiclass VPseudoTernaryV_VI { + foreach m = MxList.m in + defm _VI : VPseudoTernary; +} + +multiclass VPseudoTernaryV_VX_VI { + defm "" : VPseudoTernaryV_VX; + defm "" : VPseudoTernaryV_VI; +} + //===----------------------------------------------------------------------===// // Helpers to define the SDNode patterns. //===----------------------------------------------------------------------===// @@ -860,6 +908,54 @@ (PseudoMask $rs3, $rs1, $rs2, (mask_type V0), (NoX0 GPR:$vl), sew)>; } +class VPatTernaryNoMask : + Pat<(result_type (!cast(intrinsic) + (result_type result_reg_class:$rs3), + (op1_type op1_reg_class:$rs1), + (op2_type op2_kind:$rs2), + (XLenVT GPR:$vl))), + (!cast(inst#_#kind#"_"# vlmul.MX) + result_reg_class:$rs3, + ToFPR32.ret, + op2_kind:$rs2, + (NoX0 GPR:$vl), sew)>; + +class VPatTernaryMask : + Pat<(result_type (!cast(intrinsic#"_mask") + (result_type result_reg_class:$rs3), + (op1_type op1_reg_class:$rs1), + (op2_type op2_kind:$rs2), + (mask_type V0), + (XLenVT GPR:$vl))), + (!cast(inst#_#kind#"_"# vlmul.MX # "_MASK") + result_reg_class:$rs3, + ToFPR32.ret, + op2_kind:$rs2, + (mask_type V0), + (NoX0 GPR:$vl), sew)>; + multiclass VPatBinary; } +multiclass VPatTernary { + def : VPatTernaryNoMask; + def : VPatTernaryMask; +} + +multiclass VPatTernaryV_VX vtilist> { + foreach vti = vtilist in + defm : VPatTernary; +} + +multiclass VPatTernaryV_VI vtilist, Operand Imm_type> { + foreach vti = vtilist in + defm : VPatTernary; +} + +multiclass VPatTernaryV_VX_VI vtilist, Operand Imm_type = simm5> { + defm "" : VPatTernaryV_VX; + defm "" : VPatTernaryV_VI; +} + //===----------------------------------------------------------------------===// // Pseudo instructions and patterns. //===----------------------------------------------------------------------===// @@ -1318,6 +1458,16 @@ } // Predicates = [HasStdExtV, HasStdExtF] //===----------------------------------------------------------------------===// +// 17. Vector Permutation Instructions +//===----------------------------------------------------------------------===// + +//===----------------------------------------------------------------------===// +// 17.3. Vector Slide Instructions +//===----------------------------------------------------------------------===// +defm PseudoVSLIDEUP : VPseudoTernaryV_VX_VI; +defm PseudoVSLIDEDOWN : VPseudoTernaryV_VX_VI; + +//===----------------------------------------------------------------------===// // Patterns. //===----------------------------------------------------------------------===// let Predicates = [HasStdExtV] in { @@ -1452,6 +1602,16 @@ defm "" : VPatBinaryV_VV_VX<"int_riscv_vssubu", "PseudoVSSUBU", AllIntegerVectors>; defm "" : VPatBinaryV_VV_VX<"int_riscv_vssub", "PseudoVSSUB", AllIntegerVectors>; +//===----------------------------------------------------------------------===// +// 17. Vector Permutation Instructions +//===----------------------------------------------------------------------===// + +//===----------------------------------------------------------------------===// +// 17.3. Vector Slide Instructions +//===----------------------------------------------------------------------===// +defm "" : VPatTernaryV_VX_VI<"int_riscv_vslideup", "PseudoVSLIDEUP", AllVectors, uimm5>; +defm "" : VPatTernaryV_VX_VI<"int_riscv_vslidedown", "PseudoVSLIDEDOWN", AllVectors, uimm5>; + } // Predicates = [HasStdExtV] let Predicates = [HasStdExtV, HasStdExtF] in { diff --git a/llvm/test/CodeGen/RISCV/rvv/vslidedown-rv32.ll b/llvm/test/CodeGen/RISCV/rvv/vslidedown-rv32.ll new file mode 100644 --- /dev/null +++ b/llvm/test/CodeGen/RISCV/rvv/vslidedown-rv32.ll @@ -0,0 +1,1705 @@ +; RUN: llc -mtriple=riscv32 -mattr=+experimental-v,+f,+experimental-zfh -verify-machineinstrs \ +; RUN: --riscv-no-aliases < %s | FileCheck %s +declare @llvm.riscv.vslidedown.nxv1i8( + , + , + i32, + i32); + +define @intrinsic_vslidedown_vx_nxv1i8_nxv1i8( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv1i8_nxv1i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf8,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv1i8( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv1i8( + , + , + i32, + , + i32); + +define @intrinsic_vslidedown_mask_vx_nxv1i8_nxv1i8( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv1i8_nxv1i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf8,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv1i8( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv1i8_nxv1i8( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv1i8_nxv1i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf8,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv1i8( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv1i8_nxv1i8( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv1i8_nxv1i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf8,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv1i8( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv2i8( + , + , + i32, + i32); + +define @intrinsic_vslidedown_vx_nxv2i8_nxv2i8( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv2i8_nxv2i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv2i8( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv2i8( + , + , + i32, + , + i32); + +define @intrinsic_vslidedown_mask_vx_nxv2i8_nxv2i8( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv2i8_nxv2i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv2i8( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv2i8_nxv2i8( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv2i8_nxv2i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv2i8( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv2i8_nxv2i8( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv2i8_nxv2i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv2i8( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv4i8( + , + , + i32, + i32); + +define @intrinsic_vslidedown_vx_nxv4i8_nxv4i8( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv4i8_nxv4i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv4i8( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv4i8( + , + , + i32, + , + i32); + +define @intrinsic_vslidedown_mask_vx_nxv4i8_nxv4i8( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv4i8_nxv4i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv4i8( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv4i8_nxv4i8( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv4i8_nxv4i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv4i8( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv4i8_nxv4i8( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv4i8_nxv4i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv4i8( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv8i8( + , + , + i32, + i32); + +define @intrinsic_vslidedown_vx_nxv8i8_nxv8i8( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv8i8_nxv8i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m1,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv8i8( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv8i8( + , + , + i32, + , + i32); + +define @intrinsic_vslidedown_mask_vx_nxv8i8_nxv8i8( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv8i8_nxv8i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m1,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv8i8( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv8i8_nxv8i8( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv8i8_nxv8i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m1,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv8i8( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv8i8_nxv8i8( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv8i8_nxv8i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m1,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv8i8( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv16i8( + , + , + i32, + i32); + +define @intrinsic_vslidedown_vx_nxv16i8_nxv16i8( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv16i8_nxv16i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv16i8( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv16i8( + , + , + i32, + , + i32); + +define @intrinsic_vslidedown_mask_vx_nxv16i8_nxv16i8( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv16i8_nxv16i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv16i8( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv16i8_nxv16i8( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv16i8_nxv16i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv16i8( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv16i8_nxv16i8( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv16i8_nxv16i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv16i8( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv32i8( + , + , + i32, + i32); + +define @intrinsic_vslidedown_vx_nxv32i8_nxv32i8( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv32i8_nxv32i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv32i8( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv32i8( + , + , + i32, + , + i32); + +define @intrinsic_vslidedown_mask_vx_nxv32i8_nxv32i8( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv32i8_nxv32i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv32i8( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv32i8_nxv32i8( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv32i8_nxv32i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv32i8( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv32i8_nxv32i8( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv32i8_nxv32i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv32i8( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv1i16( + , + , + i32, + i32); + +define @intrinsic_vslidedown_vx_nxv1i16_nxv1i16( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv1i16_nxv1i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv1i16( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv1i16( + , + , + i32, + , + i32); + +define @intrinsic_vslidedown_mask_vx_nxv1i16_nxv1i16( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv1i16_nxv1i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv1i16( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv1i16_nxv1i16( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv1i16_nxv1i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv1i16( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv1i16_nxv1i16( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv1i16_nxv1i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv1i16( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv2i16( + , + , + i32, + i32); + +define @intrinsic_vslidedown_vx_nxv2i16_nxv2i16( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv2i16_nxv2i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv2i16( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv2i16( + , + , + i32, + , + i32); + +define @intrinsic_vslidedown_mask_vx_nxv2i16_nxv2i16( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv2i16_nxv2i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv2i16( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv2i16_nxv2i16( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv2i16_nxv2i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv2i16( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv2i16_nxv2i16( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv2i16_nxv2i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv2i16( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv4i16( + , + , + i32, + i32); + +define @intrinsic_vslidedown_vx_nxv4i16_nxv4i16( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv4i16_nxv4i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv4i16( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv4i16( + , + , + i32, + , + i32); + +define @intrinsic_vslidedown_mask_vx_nxv4i16_nxv4i16( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv4i16_nxv4i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv4i16( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv4i16_nxv4i16( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv4i16_nxv4i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv4i16( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv4i16_nxv4i16( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv4i16_nxv4i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv4i16( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv8i16( + , + , + i32, + i32); + +define @intrinsic_vslidedown_vx_nxv8i16_nxv8i16( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv8i16_nxv8i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv8i16( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv8i16( + , + , + i32, + , + i32); + +define @intrinsic_vslidedown_mask_vx_nxv8i16_nxv8i16( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv8i16_nxv8i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv8i16( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv8i16_nxv8i16( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv8i16_nxv8i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv8i16( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv8i16_nxv8i16( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv8i16_nxv8i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv8i16( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv16i16( + , + , + i32, + i32); + +define @intrinsic_vslidedown_vx_nxv16i16_nxv16i16( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv16i16_nxv16i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv16i16( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv16i16( + , + , + i32, + , + i32); + +define @intrinsic_vslidedown_mask_vx_nxv16i16_nxv16i16( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv16i16_nxv16i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv16i16( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv16i16_nxv16i16( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv16i16_nxv16i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv16i16( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv16i16_nxv16i16( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv16i16_nxv16i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv16i16( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv1i32( + , + , + i32, + i32); + +define @intrinsic_vslidedown_vx_nxv1i32_nxv1i32( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv1i32_nxv1i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv1i32( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv1i32( + , + , + i32, + , + i32); + +define @intrinsic_vslidedown_mask_vx_nxv1i32_nxv1i32( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv1i32_nxv1i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv1i32( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv1i32_nxv1i32( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv1i32_nxv1i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv1i32( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv1i32_nxv1i32( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv1i32_nxv1i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv1i32( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv2i32( + , + , + i32, + i32); + +define @intrinsic_vslidedown_vx_nxv2i32_nxv2i32( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv2i32_nxv2i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv2i32( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv2i32( + , + , + i32, + , + i32); + +define @intrinsic_vslidedown_mask_vx_nxv2i32_nxv2i32( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv2i32_nxv2i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv2i32( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv2i32_nxv2i32( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv2i32_nxv2i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv2i32( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv2i32_nxv2i32( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv2i32_nxv2i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv2i32( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv4i32( + , + , + i32, + i32); + +define @intrinsic_vslidedown_vx_nxv4i32_nxv4i32( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv4i32_nxv4i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv4i32( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv4i32( + , + , + i32, + , + i32); + +define @intrinsic_vslidedown_mask_vx_nxv4i32_nxv4i32( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv4i32_nxv4i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv4i32( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv4i32_nxv4i32( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv4i32_nxv4i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv4i32( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv4i32_nxv4i32( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv4i32_nxv4i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv4i32( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv8i32( + , + , + i32, + i32); + +define @intrinsic_vslidedown_vx_nxv8i32_nxv8i32( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv8i32_nxv8i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv8i32( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv8i32( + , + , + i32, + , + i32); + +define @intrinsic_vslidedown_mask_vx_nxv8i32_nxv8i32( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv8i32_nxv8i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv8i32( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv8i32_nxv8i32( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv8i32_nxv8i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv8i32( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv8i32_nxv8i32( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv8i32_nxv8i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv8i32( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv1f16( + , + , + i32, + i32); + +define @intrinsic_vslidedown_vx_nxv1f16_nxv1f16( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv1f16_nxv1f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv1f16( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv1f16( + , + , + i32, + , + i32); + +define @intrinsic_vslidedown_mask_vx_nxv1f16_nxv1f16( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv1f16_nxv1f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv1f16( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv1f16_nxv1f16( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv1f16_nxv1f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv1f16( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv1f16_nxv1f16( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv1f16_nxv1f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv1f16( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv2f16( + , + , + i32, + i32); + +define @intrinsic_vslidedown_vx_nxv2f16_nxv2f16( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv2f16_nxv2f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv2f16( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv2f16( + , + , + i32, + , + i32); + +define @intrinsic_vslidedown_mask_vx_nxv2f16_nxv2f16( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv2f16_nxv2f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv2f16( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv2f16_nxv2f16( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv2f16_nxv2f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv2f16( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv2f16_nxv2f16( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv2f16_nxv2f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv2f16( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv4f16( + , + , + i32, + i32); + +define @intrinsic_vslidedown_vx_nxv4f16_nxv4f16( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv4f16_nxv4f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv4f16( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv4f16( + , + , + i32, + , + i32); + +define @intrinsic_vslidedown_mask_vx_nxv4f16_nxv4f16( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv4f16_nxv4f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv4f16( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv4f16_nxv4f16( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv4f16_nxv4f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv4f16( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv4f16_nxv4f16( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv4f16_nxv4f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv4f16( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv8f16( + , + , + i32, + i32); + +define @intrinsic_vslidedown_vx_nxv8f16_nxv8f16( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv8f16_nxv8f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv8f16( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv8f16( + , + , + i32, + , + i32); + +define @intrinsic_vslidedown_mask_vx_nxv8f16_nxv8f16( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv8f16_nxv8f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv8f16( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv8f16_nxv8f16( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv8f16_nxv8f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv8f16( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv8f16_nxv8f16( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv8f16_nxv8f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv8f16( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv16f16( + , + , + i32, + i32); + +define @intrinsic_vslidedown_vx_nxv16f16_nxv16f16( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv16f16_nxv16f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv16f16( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv16f16( + , + , + i32, + , + i32); + +define @intrinsic_vslidedown_mask_vx_nxv16f16_nxv16f16( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv16f16_nxv16f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv16f16( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv16f16_nxv16f16( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv16f16_nxv16f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv16f16( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv16f16_nxv16f16( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv16f16_nxv16f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv16f16( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv1f32( + , + , + i32, + i32); + +define @intrinsic_vslidedown_vx_nxv1f32_nxv1f32( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv1f32_nxv1f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv1f32( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv1f32( + , + , + i32, + , + i32); + +define @intrinsic_vslidedown_mask_vx_nxv1f32_nxv1f32( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv1f32_nxv1f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv1f32( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv1f32_nxv1f32( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv1f32_nxv1f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv1f32( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv1f32_nxv1f32( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv1f32_nxv1f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv1f32( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv2f32( + , + , + i32, + i32); + +define @intrinsic_vslidedown_vx_nxv2f32_nxv2f32( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv2f32_nxv2f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv2f32( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv2f32( + , + , + i32, + , + i32); + +define @intrinsic_vslidedown_mask_vx_nxv2f32_nxv2f32( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv2f32_nxv2f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv2f32( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv2f32_nxv2f32( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv2f32_nxv2f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv2f32( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv2f32_nxv2f32( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv2f32_nxv2f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv2f32( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv4f32( + , + , + i32, + i32); + +define @intrinsic_vslidedown_vx_nxv4f32_nxv4f32( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv4f32_nxv4f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv4f32( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv4f32( + , + , + i32, + , + i32); + +define @intrinsic_vslidedown_mask_vx_nxv4f32_nxv4f32( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv4f32_nxv4f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv4f32( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv4f32_nxv4f32( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv4f32_nxv4f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv4f32( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv4f32_nxv4f32( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv4f32_nxv4f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv4f32( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv8f32( + , + , + i32, + i32); + +define @intrinsic_vslidedown_vx_nxv8f32_nxv8f32( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv8f32_nxv8f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv8f32( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv8f32( + , + , + i32, + , + i32); + +define @intrinsic_vslidedown_mask_vx_nxv8f32_nxv8f32( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv8f32_nxv8f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv8f32( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv8f32_nxv8f32( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv8f32_nxv8f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv8f32( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv8f32_nxv8f32( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv8f32_nxv8f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv8f32( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} diff --git a/llvm/test/CodeGen/RISCV/rvv/vslidedown-rv64.ll b/llvm/test/CodeGen/RISCV/rvv/vslidedown-rv64.ll new file mode 100644 --- /dev/null +++ b/llvm/test/CodeGen/RISCV/rvv/vslidedown-rv64.ll @@ -0,0 +1,2131 @@ +; RUN: llc -mtriple=riscv64 -mattr=+experimental-v,+d,+experimental-zfh -verify-machineinstrs \ +; RUN: --riscv-no-aliases < %s | FileCheck %s +declare @llvm.riscv.vslidedown.nxv1i8( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv1i8_nxv1i8( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv1i8_nxv1i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf8,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv1i8( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv1i8( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv1i8_nxv1i8( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv1i8_nxv1i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf8,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv1i8( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv1i8_nxv1i8( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv1i8_nxv1i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf8,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv1i8( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv1i8_nxv1i8( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv1i8_nxv1i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf8,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv1i8( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv2i8( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv2i8_nxv2i8( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv2i8_nxv2i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv2i8( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv2i8( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv2i8_nxv2i8( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv2i8_nxv2i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv2i8( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv2i8_nxv2i8( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv2i8_nxv2i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv2i8( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv2i8_nxv2i8( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv2i8_nxv2i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv2i8( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv4i8( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv4i8_nxv4i8( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv4i8_nxv4i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv4i8( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv4i8( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv4i8_nxv4i8( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv4i8_nxv4i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv4i8( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv4i8_nxv4i8( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv4i8_nxv4i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv4i8( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv4i8_nxv4i8( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv4i8_nxv4i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv4i8( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv8i8( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv8i8_nxv8i8( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv8i8_nxv8i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m1,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv8i8( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv8i8( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv8i8_nxv8i8( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv8i8_nxv8i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m1,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv8i8( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv8i8_nxv8i8( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv8i8_nxv8i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m1,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv8i8( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv8i8_nxv8i8( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv8i8_nxv8i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m1,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv8i8( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv16i8( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv16i8_nxv16i8( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv16i8_nxv16i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv16i8( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv16i8( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv16i8_nxv16i8( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv16i8_nxv16i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv16i8( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv16i8_nxv16i8( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv16i8_nxv16i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv16i8( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv16i8_nxv16i8( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv16i8_nxv16i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv16i8( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv32i8( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv32i8_nxv32i8( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv32i8_nxv32i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv32i8( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv32i8( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv32i8_nxv32i8( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv32i8_nxv32i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv32i8( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv32i8_nxv32i8( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv32i8_nxv32i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv32i8( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv32i8_nxv32i8( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv32i8_nxv32i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv32i8( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv1i16( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv1i16_nxv1i16( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv1i16_nxv1i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv1i16( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv1i16( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv1i16_nxv1i16( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv1i16_nxv1i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv1i16( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv1i16_nxv1i16( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv1i16_nxv1i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv1i16( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv1i16_nxv1i16( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv1i16_nxv1i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv1i16( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv2i16( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv2i16_nxv2i16( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv2i16_nxv2i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv2i16( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv2i16( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv2i16_nxv2i16( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv2i16_nxv2i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv2i16( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv2i16_nxv2i16( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv2i16_nxv2i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv2i16( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv2i16_nxv2i16( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv2i16_nxv2i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv2i16( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv4i16( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv4i16_nxv4i16( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv4i16_nxv4i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv4i16( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv4i16( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv4i16_nxv4i16( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv4i16_nxv4i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv4i16( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv4i16_nxv4i16( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv4i16_nxv4i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv4i16( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv4i16_nxv4i16( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv4i16_nxv4i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv4i16( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv8i16( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv8i16_nxv8i16( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv8i16_nxv8i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv8i16( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv8i16( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv8i16_nxv8i16( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv8i16_nxv8i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv8i16( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv8i16_nxv8i16( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv8i16_nxv8i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv8i16( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv8i16_nxv8i16( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv8i16_nxv8i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv8i16( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv16i16( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv16i16_nxv16i16( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv16i16_nxv16i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv16i16( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv16i16( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv16i16_nxv16i16( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv16i16_nxv16i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv16i16( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv16i16_nxv16i16( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv16i16_nxv16i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv16i16( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv16i16_nxv16i16( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv16i16_nxv16i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv16i16( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv1i32( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv1i32_nxv1i32( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv1i32_nxv1i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv1i32( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv1i32( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv1i32_nxv1i32( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv1i32_nxv1i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv1i32( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv1i32_nxv1i32( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv1i32_nxv1i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv1i32( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv1i32_nxv1i32( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv1i32_nxv1i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv1i32( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv2i32( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv2i32_nxv2i32( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv2i32_nxv2i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv2i32( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv2i32( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv2i32_nxv2i32( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv2i32_nxv2i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv2i32( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv2i32_nxv2i32( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv2i32_nxv2i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv2i32( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv2i32_nxv2i32( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv2i32_nxv2i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv2i32( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv4i32( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv4i32_nxv4i32( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv4i32_nxv4i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv4i32( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv4i32( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv4i32_nxv4i32( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv4i32_nxv4i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv4i32( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv4i32_nxv4i32( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv4i32_nxv4i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv4i32( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv4i32_nxv4i32( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv4i32_nxv4i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv4i32( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv8i32( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv8i32_nxv8i32( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv8i32_nxv8i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv8i32( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv8i32( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv8i32_nxv8i32( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv8i32_nxv8i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv8i32( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv8i32_nxv8i32( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv8i32_nxv8i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv8i32( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv8i32_nxv8i32( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv8i32_nxv8i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv8i32( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv1i64( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv1i64_nxv1i64( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv1i64_nxv1i64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m1,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv1i64( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv1i64( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv1i64_nxv1i64( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv1i64_nxv1i64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m1,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv1i64( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv1i64_nxv1i64( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv1i64_nxv1i64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m1,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv1i64( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv1i64_nxv1i64( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv1i64_nxv1i64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m1,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv1i64( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv2i64( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv2i64_nxv2i64( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv2i64_nxv2i64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv2i64( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv2i64( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv2i64_nxv2i64( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv2i64_nxv2i64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv2i64( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv2i64_nxv2i64( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv2i64_nxv2i64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv2i64( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv2i64_nxv2i64( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv2i64_nxv2i64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv2i64( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv4i64( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv4i64_nxv4i64( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv4i64_nxv4i64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv4i64( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv4i64( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv4i64_nxv4i64( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv4i64_nxv4i64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv4i64( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv4i64_nxv4i64( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv4i64_nxv4i64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv4i64( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv4i64_nxv4i64( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv4i64_nxv4i64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv4i64( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv1f16( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv1f16_nxv1f16( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv1f16_nxv1f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv1f16( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv1f16( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv1f16_nxv1f16( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv1f16_nxv1f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv1f16( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv1f16_nxv1f16( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv1f16_nxv1f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv1f16( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv1f16_nxv1f16( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv1f16_nxv1f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv1f16( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv2f16( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv2f16_nxv2f16( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv2f16_nxv2f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv2f16( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv2f16( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv2f16_nxv2f16( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv2f16_nxv2f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv2f16( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv2f16_nxv2f16( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv2f16_nxv2f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv2f16( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv2f16_nxv2f16( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv2f16_nxv2f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv2f16( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv4f16( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv4f16_nxv4f16( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv4f16_nxv4f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv4f16( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv4f16( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv4f16_nxv4f16( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv4f16_nxv4f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv4f16( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv4f16_nxv4f16( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv4f16_nxv4f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv4f16( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv4f16_nxv4f16( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv4f16_nxv4f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv4f16( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv8f16( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv8f16_nxv8f16( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv8f16_nxv8f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv8f16( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv8f16( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv8f16_nxv8f16( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv8f16_nxv8f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv8f16( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv8f16_nxv8f16( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv8f16_nxv8f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv8f16( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv8f16_nxv8f16( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv8f16_nxv8f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv8f16( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv16f16( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv16f16_nxv16f16( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv16f16_nxv16f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv16f16( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv16f16( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv16f16_nxv16f16( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv16f16_nxv16f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv16f16( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv16f16_nxv16f16( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv16f16_nxv16f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv16f16( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv16f16_nxv16f16( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv16f16_nxv16f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv16f16( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv1f32( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv1f32_nxv1f32( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv1f32_nxv1f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv1f32( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv1f32( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv1f32_nxv1f32( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv1f32_nxv1f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv1f32( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv1f32_nxv1f32( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv1f32_nxv1f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv1f32( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv1f32_nxv1f32( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv1f32_nxv1f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv1f32( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv2f32( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv2f32_nxv2f32( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv2f32_nxv2f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv2f32( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv2f32( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv2f32_nxv2f32( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv2f32_nxv2f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv2f32( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv2f32_nxv2f32( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv2f32_nxv2f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv2f32( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv2f32_nxv2f32( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv2f32_nxv2f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv2f32( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv4f32( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv4f32_nxv4f32( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv4f32_nxv4f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv4f32( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv4f32( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv4f32_nxv4f32( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv4f32_nxv4f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv4f32( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv4f32_nxv4f32( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv4f32_nxv4f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv4f32( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv4f32_nxv4f32( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv4f32_nxv4f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv4f32( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv8f32( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv8f32_nxv8f32( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv8f32_nxv8f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv8f32( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv8f32( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv8f32_nxv8f32( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv8f32_nxv8f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv8f32( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv8f32_nxv8f32( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv8f32_nxv8f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv8f32( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv8f32_nxv8f32( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv8f32_nxv8f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv8f32( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv1f64( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv1f64_nxv1f64( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv1f64_nxv1f64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m1,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv1f64( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv1f64( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv1f64_nxv1f64( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv1f64_nxv1f64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m1,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv1f64( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv1f64_nxv1f64( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv1f64_nxv1f64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m1,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv1f64( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv1f64_nxv1f64( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv1f64_nxv1f64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m1,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv1f64( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv2f64( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv2f64_nxv2f64( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv2f64_nxv2f64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv2f64( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv2f64( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv2f64_nxv2f64( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv2f64_nxv2f64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m2,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv2f64( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv2f64_nxv2f64( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv2f64_nxv2f64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv2f64( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv2f64_nxv2f64( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv2f64_nxv2f64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m2,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv2f64( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.nxv4f64( + , + , + i64, + i64); + +define @intrinsic_vslidedown_vx_nxv4f64_nxv4f64( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vx_nxv4f64_nxv4f64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslidedown.nxv4f64( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslidedown.mask.nxv4f64( + , + , + i64, + , + i64); + +define @intrinsic_vslidedown_mask_vx_nxv4f64_nxv4f64( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vx_nxv4f64_nxv4f64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m4,ta,mu +; CHECK: vslidedown.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv4f64( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslidedown_vi_nxv4f64_nxv4f64( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_vi_nxv4f64_nxv4f64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslidedown.nxv4f64( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslidedown_mask_vi_nxv4f64_nxv4f64( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslidedown_mask_vi_nxv4f64_nxv4f64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m4,ta,mu +; CHECK: vslidedown.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslidedown.mask.nxv4f64( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} diff --git a/llvm/test/CodeGen/RISCV/rvv/vslideup-rv32.ll b/llvm/test/CodeGen/RISCV/rvv/vslideup-rv32.ll new file mode 100644 --- /dev/null +++ b/llvm/test/CodeGen/RISCV/rvv/vslideup-rv32.ll @@ -0,0 +1,1705 @@ +; RUN: llc -mtriple=riscv32 -mattr=+experimental-v,+f,+experimental-zfh -verify-machineinstrs \ +; RUN: --riscv-no-aliases < %s | FileCheck %s +declare @llvm.riscv.vslideup.nxv1i8( + , + , + i32, + i32); + +define @intrinsic_vslideup_vx_nxv1i8_nxv1i8( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv1i8_nxv1i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf8,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv1i8( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv1i8( + , + , + i32, + , + i32); + +define @intrinsic_vslideup_mask_vx_nxv1i8_nxv1i8( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv1i8_nxv1i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf8,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv1i8( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv1i8_nxv1i8( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv1i8_nxv1i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf8,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv1i8( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv1i8_nxv1i8( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv1i8_nxv1i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf8,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv1i8( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv2i8( + , + , + i32, + i32); + +define @intrinsic_vslideup_vx_nxv2i8_nxv2i8( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv2i8_nxv2i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv2i8( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv2i8( + , + , + i32, + , + i32); + +define @intrinsic_vslideup_mask_vx_nxv2i8_nxv2i8( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv2i8_nxv2i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv2i8( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv2i8_nxv2i8( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv2i8_nxv2i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv2i8( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv2i8_nxv2i8( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv2i8_nxv2i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv2i8( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv4i8( + , + , + i32, + i32); + +define @intrinsic_vslideup_vx_nxv4i8_nxv4i8( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv4i8_nxv4i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv4i8( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv4i8( + , + , + i32, + , + i32); + +define @intrinsic_vslideup_mask_vx_nxv4i8_nxv4i8( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv4i8_nxv4i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv4i8( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv4i8_nxv4i8( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv4i8_nxv4i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv4i8( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv4i8_nxv4i8( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv4i8_nxv4i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv4i8( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv8i8( + , + , + i32, + i32); + +define @intrinsic_vslideup_vx_nxv8i8_nxv8i8( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv8i8_nxv8i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m1,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv8i8( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv8i8( + , + , + i32, + , + i32); + +define @intrinsic_vslideup_mask_vx_nxv8i8_nxv8i8( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv8i8_nxv8i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m1,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv8i8( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv8i8_nxv8i8( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv8i8_nxv8i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m1,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv8i8( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv8i8_nxv8i8( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv8i8_nxv8i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m1,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv8i8( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv16i8( + , + , + i32, + i32); + +define @intrinsic_vslideup_vx_nxv16i8_nxv16i8( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv16i8_nxv16i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv16i8( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv16i8( + , + , + i32, + , + i32); + +define @intrinsic_vslideup_mask_vx_nxv16i8_nxv16i8( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv16i8_nxv16i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv16i8( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv16i8_nxv16i8( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv16i8_nxv16i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv16i8( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv16i8_nxv16i8( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv16i8_nxv16i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv16i8( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv32i8( + , + , + i32, + i32); + +define @intrinsic_vslideup_vx_nxv32i8_nxv32i8( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv32i8_nxv32i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv32i8( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv32i8( + , + , + i32, + , + i32); + +define @intrinsic_vslideup_mask_vx_nxv32i8_nxv32i8( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv32i8_nxv32i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv32i8( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv32i8_nxv32i8( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv32i8_nxv32i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv32i8( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv32i8_nxv32i8( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv32i8_nxv32i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv32i8( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv1i16( + , + , + i32, + i32); + +define @intrinsic_vslideup_vx_nxv1i16_nxv1i16( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv1i16_nxv1i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv1i16( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv1i16( + , + , + i32, + , + i32); + +define @intrinsic_vslideup_mask_vx_nxv1i16_nxv1i16( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv1i16_nxv1i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv1i16( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv1i16_nxv1i16( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv1i16_nxv1i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv1i16( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv1i16_nxv1i16( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv1i16_nxv1i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv1i16( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv2i16( + , + , + i32, + i32); + +define @intrinsic_vslideup_vx_nxv2i16_nxv2i16( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv2i16_nxv2i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv2i16( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv2i16( + , + , + i32, + , + i32); + +define @intrinsic_vslideup_mask_vx_nxv2i16_nxv2i16( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv2i16_nxv2i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv2i16( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv2i16_nxv2i16( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv2i16_nxv2i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv2i16( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv2i16_nxv2i16( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv2i16_nxv2i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv2i16( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv4i16( + , + , + i32, + i32); + +define @intrinsic_vslideup_vx_nxv4i16_nxv4i16( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv4i16_nxv4i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv4i16( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv4i16( + , + , + i32, + , + i32); + +define @intrinsic_vslideup_mask_vx_nxv4i16_nxv4i16( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv4i16_nxv4i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv4i16( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv4i16_nxv4i16( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv4i16_nxv4i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv4i16( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv4i16_nxv4i16( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv4i16_nxv4i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv4i16( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv8i16( + , + , + i32, + i32); + +define @intrinsic_vslideup_vx_nxv8i16_nxv8i16( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv8i16_nxv8i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv8i16( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv8i16( + , + , + i32, + , + i32); + +define @intrinsic_vslideup_mask_vx_nxv8i16_nxv8i16( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv8i16_nxv8i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv8i16( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv8i16_nxv8i16( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv8i16_nxv8i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv8i16( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv8i16_nxv8i16( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv8i16_nxv8i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv8i16( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv16i16( + , + , + i32, + i32); + +define @intrinsic_vslideup_vx_nxv16i16_nxv16i16( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv16i16_nxv16i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv16i16( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv16i16( + , + , + i32, + , + i32); + +define @intrinsic_vslideup_mask_vx_nxv16i16_nxv16i16( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv16i16_nxv16i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv16i16( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv16i16_nxv16i16( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv16i16_nxv16i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv16i16( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv16i16_nxv16i16( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv16i16_nxv16i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv16i16( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv1i32( + , + , + i32, + i32); + +define @intrinsic_vslideup_vx_nxv1i32_nxv1i32( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv1i32_nxv1i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv1i32( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv1i32( + , + , + i32, + , + i32); + +define @intrinsic_vslideup_mask_vx_nxv1i32_nxv1i32( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv1i32_nxv1i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv1i32( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv1i32_nxv1i32( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv1i32_nxv1i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv1i32( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv1i32_nxv1i32( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv1i32_nxv1i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv1i32( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv2i32( + , + , + i32, + i32); + +define @intrinsic_vslideup_vx_nxv2i32_nxv2i32( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv2i32_nxv2i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv2i32( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv2i32( + , + , + i32, + , + i32); + +define @intrinsic_vslideup_mask_vx_nxv2i32_nxv2i32( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv2i32_nxv2i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv2i32( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv2i32_nxv2i32( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv2i32_nxv2i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv2i32( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv2i32_nxv2i32( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv2i32_nxv2i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv2i32( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv4i32( + , + , + i32, + i32); + +define @intrinsic_vslideup_vx_nxv4i32_nxv4i32( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv4i32_nxv4i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv4i32( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv4i32( + , + , + i32, + , + i32); + +define @intrinsic_vslideup_mask_vx_nxv4i32_nxv4i32( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv4i32_nxv4i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv4i32( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv4i32_nxv4i32( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv4i32_nxv4i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv4i32( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv4i32_nxv4i32( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv4i32_nxv4i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv4i32( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv8i32( + , + , + i32, + i32); + +define @intrinsic_vslideup_vx_nxv8i32_nxv8i32( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv8i32_nxv8i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv8i32( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv8i32( + , + , + i32, + , + i32); + +define @intrinsic_vslideup_mask_vx_nxv8i32_nxv8i32( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv8i32_nxv8i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv8i32( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv8i32_nxv8i32( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv8i32_nxv8i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv8i32( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv8i32_nxv8i32( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv8i32_nxv8i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv8i32( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv1f16( + , + , + i32, + i32); + +define @intrinsic_vslideup_vx_nxv1f16_nxv1f16( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv1f16_nxv1f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv1f16( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv1f16( + , + , + i32, + , + i32); + +define @intrinsic_vslideup_mask_vx_nxv1f16_nxv1f16( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv1f16_nxv1f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv1f16( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv1f16_nxv1f16( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv1f16_nxv1f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv1f16( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv1f16_nxv1f16( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv1f16_nxv1f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv1f16( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv2f16( + , + , + i32, + i32); + +define @intrinsic_vslideup_vx_nxv2f16_nxv2f16( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv2f16_nxv2f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv2f16( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv2f16( + , + , + i32, + , + i32); + +define @intrinsic_vslideup_mask_vx_nxv2f16_nxv2f16( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv2f16_nxv2f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv2f16( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv2f16_nxv2f16( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv2f16_nxv2f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv2f16( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv2f16_nxv2f16( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv2f16_nxv2f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv2f16( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv4f16( + , + , + i32, + i32); + +define @intrinsic_vslideup_vx_nxv4f16_nxv4f16( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv4f16_nxv4f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv4f16( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv4f16( + , + , + i32, + , + i32); + +define @intrinsic_vslideup_mask_vx_nxv4f16_nxv4f16( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv4f16_nxv4f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv4f16( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv4f16_nxv4f16( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv4f16_nxv4f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv4f16( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv4f16_nxv4f16( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv4f16_nxv4f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv4f16( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv8f16( + , + , + i32, + i32); + +define @intrinsic_vslideup_vx_nxv8f16_nxv8f16( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv8f16_nxv8f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv8f16( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv8f16( + , + , + i32, + , + i32); + +define @intrinsic_vslideup_mask_vx_nxv8f16_nxv8f16( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv8f16_nxv8f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv8f16( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv8f16_nxv8f16( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv8f16_nxv8f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv8f16( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv8f16_nxv8f16( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv8f16_nxv8f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv8f16( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv16f16( + , + , + i32, + i32); + +define @intrinsic_vslideup_vx_nxv16f16_nxv16f16( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv16f16_nxv16f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv16f16( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv16f16( + , + , + i32, + , + i32); + +define @intrinsic_vslideup_mask_vx_nxv16f16_nxv16f16( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv16f16_nxv16f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv16f16( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv16f16_nxv16f16( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv16f16_nxv16f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv16f16( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv16f16_nxv16f16( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv16f16_nxv16f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv16f16( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv1f32( + , + , + i32, + i32); + +define @intrinsic_vslideup_vx_nxv1f32_nxv1f32( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv1f32_nxv1f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv1f32( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv1f32( + , + , + i32, + , + i32); + +define @intrinsic_vslideup_mask_vx_nxv1f32_nxv1f32( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv1f32_nxv1f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv1f32( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv1f32_nxv1f32( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv1f32_nxv1f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv1f32( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv1f32_nxv1f32( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv1f32_nxv1f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv1f32( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv2f32( + , + , + i32, + i32); + +define @intrinsic_vslideup_vx_nxv2f32_nxv2f32( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv2f32_nxv2f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv2f32( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv2f32( + , + , + i32, + , + i32); + +define @intrinsic_vslideup_mask_vx_nxv2f32_nxv2f32( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv2f32_nxv2f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv2f32( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv2f32_nxv2f32( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv2f32_nxv2f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv2f32( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv2f32_nxv2f32( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv2f32_nxv2f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv2f32( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv4f32( + , + , + i32, + i32); + +define @intrinsic_vslideup_vx_nxv4f32_nxv4f32( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv4f32_nxv4f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv4f32( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv4f32( + , + , + i32, + , + i32); + +define @intrinsic_vslideup_mask_vx_nxv4f32_nxv4f32( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv4f32_nxv4f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv4f32( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv4f32_nxv4f32( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv4f32_nxv4f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv4f32( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv4f32_nxv4f32( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv4f32_nxv4f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv4f32( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv8f32( + , + , + i32, + i32); + +define @intrinsic_vslideup_vx_nxv8f32_nxv8f32( %0, %1, i32 %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv8f32_nxv8f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv8f32( + %0, + %1, + i32 %2, + i32 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv8f32( + , + , + i32, + , + i32); + +define @intrinsic_vslideup_mask_vx_nxv8f32_nxv8f32( %0, %1, i32 %2, %3, i32 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv8f32_nxv8f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv8f32( + %0, + %1, + i32 %2, + %3, + i32 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv8f32_nxv8f32( %0, %1, i32 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv8f32_nxv8f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv8f32( + %0, + %1, + i32 9, + i32 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv8f32_nxv8f32( %0, %1, %2, i32 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv8f32_nxv8f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv8f32( + %0, + %1, + i32 9, + %2, + i32 %3) + + ret %a +} diff --git a/llvm/test/CodeGen/RISCV/rvv/vslideup-rv64.ll b/llvm/test/CodeGen/RISCV/rvv/vslideup-rv64.ll new file mode 100644 --- /dev/null +++ b/llvm/test/CodeGen/RISCV/rvv/vslideup-rv64.ll @@ -0,0 +1,2131 @@ +; RUN: llc -mtriple=riscv64 -mattr=+experimental-v,+d,+experimental-zfh -verify-machineinstrs \ +; RUN: --riscv-no-aliases < %s | FileCheck %s +declare @llvm.riscv.vslideup.nxv1i8( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv1i8_nxv1i8( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv1i8_nxv1i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf8,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv1i8( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv1i8( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv1i8_nxv1i8( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv1i8_nxv1i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf8,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv1i8( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv1i8_nxv1i8( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv1i8_nxv1i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf8,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv1i8( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv1i8_nxv1i8( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv1i8_nxv1i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf8,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv1i8( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv2i8( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv2i8_nxv2i8( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv2i8_nxv2i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv2i8( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv2i8( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv2i8_nxv2i8( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv2i8_nxv2i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv2i8( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv2i8_nxv2i8( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv2i8_nxv2i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv2i8( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv2i8_nxv2i8( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv2i8_nxv2i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv2i8( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv4i8( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv4i8_nxv4i8( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv4i8_nxv4i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv4i8( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv4i8( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv4i8_nxv4i8( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv4i8_nxv4i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv4i8( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv4i8_nxv4i8( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv4i8_nxv4i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv4i8( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv4i8_nxv4i8( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv4i8_nxv4i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,mf2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv4i8( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv8i8( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv8i8_nxv8i8( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv8i8_nxv8i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m1,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv8i8( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv8i8( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv8i8_nxv8i8( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv8i8_nxv8i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m1,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv8i8( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv8i8_nxv8i8( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv8i8_nxv8i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m1,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv8i8( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv8i8_nxv8i8( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv8i8_nxv8i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m1,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv8i8( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv16i8( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv16i8_nxv16i8( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv16i8_nxv16i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv16i8( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv16i8( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv16i8_nxv16i8( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv16i8_nxv16i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv16i8( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv16i8_nxv16i8( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv16i8_nxv16i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv16i8( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv16i8_nxv16i8( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv16i8_nxv16i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv16i8( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv32i8( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv32i8_nxv32i8( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv32i8_nxv32i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv32i8( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv32i8( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv32i8_nxv32i8( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv32i8_nxv32i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv32i8( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv32i8_nxv32i8( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv32i8_nxv32i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv32i8( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv32i8_nxv32i8( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv32i8_nxv32i8 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e8,m4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv32i8( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv1i16( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv1i16_nxv1i16( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv1i16_nxv1i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv1i16( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv1i16( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv1i16_nxv1i16( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv1i16_nxv1i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv1i16( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv1i16_nxv1i16( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv1i16_nxv1i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv1i16( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv1i16_nxv1i16( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv1i16_nxv1i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv1i16( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv2i16( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv2i16_nxv2i16( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv2i16_nxv2i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv2i16( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv2i16( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv2i16_nxv2i16( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv2i16_nxv2i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv2i16( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv2i16_nxv2i16( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv2i16_nxv2i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv2i16( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv2i16_nxv2i16( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv2i16_nxv2i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv2i16( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv4i16( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv4i16_nxv4i16( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv4i16_nxv4i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv4i16( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv4i16( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv4i16_nxv4i16( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv4i16_nxv4i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv4i16( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv4i16_nxv4i16( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv4i16_nxv4i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv4i16( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv4i16_nxv4i16( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv4i16_nxv4i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv4i16( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv8i16( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv8i16_nxv8i16( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv8i16_nxv8i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv8i16( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv8i16( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv8i16_nxv8i16( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv8i16_nxv8i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv8i16( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv8i16_nxv8i16( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv8i16_nxv8i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv8i16( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv8i16_nxv8i16( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv8i16_nxv8i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv8i16( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv16i16( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv16i16_nxv16i16( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv16i16_nxv16i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv16i16( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv16i16( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv16i16_nxv16i16( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv16i16_nxv16i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv16i16( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv16i16_nxv16i16( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv16i16_nxv16i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv16i16( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv16i16_nxv16i16( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv16i16_nxv16i16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv16i16( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv1i32( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv1i32_nxv1i32( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv1i32_nxv1i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv1i32( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv1i32( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv1i32_nxv1i32( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv1i32_nxv1i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv1i32( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv1i32_nxv1i32( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv1i32_nxv1i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv1i32( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv1i32_nxv1i32( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv1i32_nxv1i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv1i32( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv2i32( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv2i32_nxv2i32( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv2i32_nxv2i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv2i32( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv2i32( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv2i32_nxv2i32( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv2i32_nxv2i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv2i32( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv2i32_nxv2i32( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv2i32_nxv2i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv2i32( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv2i32_nxv2i32( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv2i32_nxv2i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv2i32( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv4i32( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv4i32_nxv4i32( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv4i32_nxv4i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv4i32( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv4i32( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv4i32_nxv4i32( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv4i32_nxv4i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv4i32( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv4i32_nxv4i32( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv4i32_nxv4i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv4i32( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv4i32_nxv4i32( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv4i32_nxv4i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv4i32( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv8i32( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv8i32_nxv8i32( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv8i32_nxv8i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv8i32( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv8i32( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv8i32_nxv8i32( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv8i32_nxv8i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv8i32( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv8i32_nxv8i32( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv8i32_nxv8i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv8i32( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv8i32_nxv8i32( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv8i32_nxv8i32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv8i32( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv1i64( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv1i64_nxv1i64( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv1i64_nxv1i64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m1,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv1i64( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv1i64( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv1i64_nxv1i64( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv1i64_nxv1i64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m1,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv1i64( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv1i64_nxv1i64( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv1i64_nxv1i64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m1,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv1i64( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv1i64_nxv1i64( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv1i64_nxv1i64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m1,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv1i64( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv2i64( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv2i64_nxv2i64( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv2i64_nxv2i64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv2i64( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv2i64( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv2i64_nxv2i64( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv2i64_nxv2i64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv2i64( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv2i64_nxv2i64( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv2i64_nxv2i64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv2i64( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv2i64_nxv2i64( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv2i64_nxv2i64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv2i64( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv4i64( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv4i64_nxv4i64( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv4i64_nxv4i64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv4i64( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv4i64( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv4i64_nxv4i64( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv4i64_nxv4i64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv4i64( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv4i64_nxv4i64( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv4i64_nxv4i64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv4i64( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv4i64_nxv4i64( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv4i64_nxv4i64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv4i64( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv1f16( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv1f16_nxv1f16( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv1f16_nxv1f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv1f16( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv1f16( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv1f16_nxv1f16( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv1f16_nxv1f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv1f16( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv1f16_nxv1f16( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv1f16_nxv1f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv1f16( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv1f16_nxv1f16( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv1f16_nxv1f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv1f16( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv2f16( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv2f16_nxv2f16( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv2f16_nxv2f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv2f16( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv2f16( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv2f16_nxv2f16( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv2f16_nxv2f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv2f16( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv2f16_nxv2f16( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv2f16_nxv2f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv2f16( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv2f16_nxv2f16( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv2f16_nxv2f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,mf2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv2f16( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv4f16( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv4f16_nxv4f16( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv4f16_nxv4f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv4f16( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv4f16( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv4f16_nxv4f16( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv4f16_nxv4f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv4f16( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv4f16_nxv4f16( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv4f16_nxv4f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv4f16( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv4f16_nxv4f16( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv4f16_nxv4f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m1,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv4f16( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv8f16( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv8f16_nxv8f16( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv8f16_nxv8f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv8f16( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv8f16( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv8f16_nxv8f16( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv8f16_nxv8f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv8f16( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv8f16_nxv8f16( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv8f16_nxv8f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv8f16( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv8f16_nxv8f16( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv8f16_nxv8f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv8f16( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv16f16( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv16f16_nxv16f16( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv16f16_nxv16f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv16f16( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv16f16( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv16f16_nxv16f16( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv16f16_nxv16f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv16f16( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv16f16_nxv16f16( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv16f16_nxv16f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv16f16( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv16f16_nxv16f16( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv16f16_nxv16f16 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e16,m4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv16f16( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv1f32( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv1f32_nxv1f32( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv1f32_nxv1f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv1f32( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv1f32( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv1f32_nxv1f32( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv1f32_nxv1f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv1f32( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv1f32_nxv1f32( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv1f32_nxv1f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv1f32( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv1f32_nxv1f32( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv1f32_nxv1f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,mf2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv1f32( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv2f32( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv2f32_nxv2f32( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv2f32_nxv2f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv2f32( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv2f32( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv2f32_nxv2f32( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv2f32_nxv2f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv2f32( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv2f32_nxv2f32( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv2f32_nxv2f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv2f32( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv2f32_nxv2f32( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv2f32_nxv2f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m1,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv2f32( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv4f32( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv4f32_nxv4f32( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv4f32_nxv4f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv4f32( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv4f32( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv4f32_nxv4f32( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv4f32_nxv4f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv4f32( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv4f32_nxv4f32( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv4f32_nxv4f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv4f32( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv4f32_nxv4f32( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv4f32_nxv4f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv4f32( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv8f32( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv8f32_nxv8f32( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv8f32_nxv8f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv8f32( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv8f32( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv8f32_nxv8f32( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv8f32_nxv8f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv8f32( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv8f32_nxv8f32( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv8f32_nxv8f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv8f32( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv8f32_nxv8f32( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv8f32_nxv8f32 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e32,m4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv8f32( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv1f64( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv1f64_nxv1f64( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv1f64_nxv1f64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m1,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv1f64( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv1f64( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv1f64_nxv1f64( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv1f64_nxv1f64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m1,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv1f64( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv1f64_nxv1f64( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv1f64_nxv1f64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m1,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv1f64( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv1f64_nxv1f64( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv1f64_nxv1f64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m1,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv1f64( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv2f64( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv2f64_nxv2f64( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv2f64_nxv2f64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv2f64( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv2f64( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv2f64_nxv2f64( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv2f64_nxv2f64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m2,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv2f64( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv2f64_nxv2f64( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv2f64_nxv2f64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv2f64( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv2f64_nxv2f64( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv2f64_nxv2f64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m2,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv2f64( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.nxv4f64( + , + , + i64, + i64); + +define @intrinsic_vslideup_vx_nxv4f64_nxv4f64( %0, %1, i64 %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vx_nxv4f64_nxv4f64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0 + %a = call @llvm.riscv.vslideup.nxv4f64( + %0, + %1, + i64 %2, + i64 %3) + + ret %a +} + +declare @llvm.riscv.vslideup.mask.nxv4f64( + , + , + i64, + , + i64); + +define @intrinsic_vslideup_mask_vx_nxv4f64_nxv4f64( %0, %1, i64 %2, %3, i64 %4) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vx_nxv4f64_nxv4f64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m4,ta,mu +; CHECK: vslideup.vx {{v[0-9]+}}, {{v[0-9]+}}, a0, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv4f64( + %0, + %1, + i64 %2, + %3, + i64 %4) + + ret %a +} + +define @intrinsic_vslideup_vi_nxv4f64_nxv4f64( %0, %1, i64 %2) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_vi_nxv4f64_nxv4f64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9 + %a = call @llvm.riscv.vslideup.nxv4f64( + %0, + %1, + i64 9, + i64 %2) + + ret %a +} + +define @intrinsic_vslideup_mask_vi_nxv4f64_nxv4f64( %0, %1, %2, i64 %3) nounwind { +entry: +; CHECK-LABEL: intrinsic_vslideup_mask_vi_nxv4f64_nxv4f64 +; CHECK: vsetvli {{.*}}, {{a[0-9]+}}, e64,m4,ta,mu +; CHECK: vslideup.vi {{v[0-9]+}}, {{v[0-9]+}}, 9, v0.t + %a = call @llvm.riscv.vslideup.mask.nxv4f64( + %0, + %1, + i64 9, + %2, + i64 %3) + + ret %a +}