1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: sed 's/iXLen/i32/g' %s | llc -mtriple=riscv32 -mattr=+v,+zvksed \
3 ; RUN: -verify-machineinstrs | FileCheck %s --check-prefixes=CHECK
4 ; RUN: sed 's/iXLen/i64/g' %s | llc -mtriple=riscv64 -mattr=+v,+zvksed \
5 ; RUN: -verify-machineinstrs | FileCheck %s --check-prefixes=CHECK
7 declare <vscale x 4 x i32> @llvm.riscv.vsm4k.nxv4i32.i32(
13 define <vscale x 4 x i32> @intrinsic_vsm4k_vi_nxv4i32_i32(<vscale x 4 x i32> %0, iXLen %1) nounwind {
14 ; CHECK-LABEL: intrinsic_vsm4k_vi_nxv4i32_i32:
15 ; CHECK: # %bb.0: # %entry
16 ; CHECK-NEXT: vsetvli zero, a0, e32, m2, ta, ma
17 ; CHECK-NEXT: vsm4k.vi v8, v8, 2
20 %a = call <vscale x 4 x i32> @llvm.riscv.vsm4k.nxv4i32.i32(
21 <vscale x 4 x i32> undef,
22 <vscale x 4 x i32> %0,
26 ret <vscale x 4 x i32> %a
29 declare <vscale x 8 x i32> @llvm.riscv.vsm4k.nxv8i32.i32(
35 define <vscale x 8 x i32> @intrinsic_vsm4k_vi_nxv8i32_i32(<vscale x 8 x i32> %0, iXLen %1) nounwind {
36 ; CHECK-LABEL: intrinsic_vsm4k_vi_nxv8i32_i32:
37 ; CHECK: # %bb.0: # %entry
38 ; CHECK-NEXT: vsetvli zero, a0, e32, m4, ta, ma
39 ; CHECK-NEXT: vsm4k.vi v8, v8, 2
42 %a = call <vscale x 8 x i32> @llvm.riscv.vsm4k.nxv8i32.i32(
43 <vscale x 8 x i32> undef,
44 <vscale x 8 x i32> %0,
48 ret <vscale x 8 x i32> %a
51 declare <vscale x 16 x i32> @llvm.riscv.vsm4k.nxv16i32.i32(
57 define <vscale x 16 x i32> @intrinsic_vsm4k_vi_nxv16i32_i32(<vscale x 16 x i32> %0, iXLen %1) nounwind {
58 ; CHECK-LABEL: intrinsic_vsm4k_vi_nxv16i32_i32:
59 ; CHECK: # %bb.0: # %entry
60 ; CHECK-NEXT: vsetvli zero, a0, e32, m8, ta, ma
61 ; CHECK-NEXT: vsm4k.vi v8, v8, 2
64 %a = call <vscale x 16 x i32> @llvm.riscv.vsm4k.nxv16i32.i32(
65 <vscale x 16 x i32> undef,
66 <vscale x 16 x i32> %0,
70 ret <vscale x 16 x i32> %a