; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; RUN: llc -mtriple=riscv32 -mattr=+experimental-v -verify-machineinstrs < %s | FileCheck %s declare i8 @llvm.riscv.vmv.x.s.nxv1i8() define signext i8 @intrinsic_vmv.x.s_s_nxv1i8( %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.x.s_s_nxv1i8: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli zero, zero, e8,mf8,ta,mu ; CHECK-NEXT: vmv.x.s a0, v8 ; CHECK-NEXT: ret entry: %a = call i8 @llvm.riscv.vmv.x.s.nxv1i8( %0) ret i8 %a } declare i8 @llvm.riscv.vmv.x.s.nxv2i8() define signext i8 @intrinsic_vmv.x.s_s_nxv2i8( %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.x.s_s_nxv2i8: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli zero, zero, e8,mf4,ta,mu ; CHECK-NEXT: vmv.x.s a0, v8 ; CHECK-NEXT: ret entry: %a = call i8 @llvm.riscv.vmv.x.s.nxv2i8( %0) ret i8 %a } declare i8 @llvm.riscv.vmv.x.s.nxv4i8() define signext i8 @intrinsic_vmv.x.s_s_nxv4i8( %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.x.s_s_nxv4i8: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli zero, zero, e8,mf2,ta,mu ; CHECK-NEXT: vmv.x.s a0, v8 ; CHECK-NEXT: ret entry: %a = call i8 @llvm.riscv.vmv.x.s.nxv4i8( %0) ret i8 %a } declare i8 @llvm.riscv.vmv.x.s.nxv8i8() define signext i8 @intrinsic_vmv.x.s_s_nxv8i8( %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.x.s_s_nxv8i8: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli zero, zero, e8,m1,ta,mu ; CHECK-NEXT: vmv.x.s a0, v8 ; CHECK-NEXT: ret entry: %a = call i8 @llvm.riscv.vmv.x.s.nxv8i8( %0) ret i8 %a } declare i8 @llvm.riscv.vmv.x.s.nxv16i8() define signext i8 @intrinsic_vmv.x.s_s_nxv16i8( %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.x.s_s_nxv16i8: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli zero, zero, e8,m2,ta,mu ; CHECK-NEXT: vmv.x.s a0, v8 ; CHECK-NEXT: ret entry: %a = call i8 @llvm.riscv.vmv.x.s.nxv16i8( %0) ret i8 %a } declare i8 @llvm.riscv.vmv.x.s.nxv32i8() define signext i8 @intrinsic_vmv.x.s_s_nxv32i8( %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.x.s_s_nxv32i8: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli zero, zero, e8,m4,ta,mu ; CHECK-NEXT: vmv.x.s a0, v8 ; CHECK-NEXT: ret entry: %a = call i8 @llvm.riscv.vmv.x.s.nxv32i8( %0) ret i8 %a } declare i8 @llvm.riscv.vmv.x.s.nxv64i8() define signext i8 @intrinsic_vmv.x.s_s_nxv64i8( %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.x.s_s_nxv64i8: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli zero, zero, e8,m8,ta,mu ; CHECK-NEXT: vmv.x.s a0, v8 ; CHECK-NEXT: ret entry: %a = call i8 @llvm.riscv.vmv.x.s.nxv64i8( %0) ret i8 %a } declare i16 @llvm.riscv.vmv.x.s.nxv1i16() define signext i16 @intrinsic_vmv.x.s_s_nxv1i16( %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.x.s_s_nxv1i16: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli zero, zero, e16,mf4,ta,mu ; CHECK-NEXT: vmv.x.s a0, v8 ; CHECK-NEXT: ret entry: %a = call i16 @llvm.riscv.vmv.x.s.nxv1i16( %0) ret i16 %a } declare i16 @llvm.riscv.vmv.x.s.nxv2i16() define signext i16 @intrinsic_vmv.x.s_s_nxv2i16( %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.x.s_s_nxv2i16: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli zero, zero, e16,mf2,ta,mu ; CHECK-NEXT: vmv.x.s a0, v8 ; CHECK-NEXT: ret entry: %a = call i16 @llvm.riscv.vmv.x.s.nxv2i16( %0) ret i16 %a } declare i16 @llvm.riscv.vmv.x.s.nxv4i16() define signext i16 @intrinsic_vmv.x.s_s_nxv4i16( %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.x.s_s_nxv4i16: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli zero, zero, e16,m1,ta,mu ; CHECK-NEXT: vmv.x.s a0, v8 ; CHECK-NEXT: ret entry: %a = call i16 @llvm.riscv.vmv.x.s.nxv4i16( %0) ret i16 %a } declare i16 @llvm.riscv.vmv.x.s.nxv8i16() define signext i16 @intrinsic_vmv.x.s_s_nxv8i16( %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.x.s_s_nxv8i16: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli zero, zero, e16,m2,ta,mu ; CHECK-NEXT: vmv.x.s a0, v8 ; CHECK-NEXT: ret entry: %a = call i16 @llvm.riscv.vmv.x.s.nxv8i16( %0) ret i16 %a } declare i16 @llvm.riscv.vmv.x.s.nxv16i16() define signext i16 @intrinsic_vmv.x.s_s_nxv16i16( %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.x.s_s_nxv16i16: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli zero, zero, e16,m4,ta,mu ; CHECK-NEXT: vmv.x.s a0, v8 ; CHECK-NEXT: ret entry: %a = call i16 @llvm.riscv.vmv.x.s.nxv16i16( %0) ret i16 %a } declare i16 @llvm.riscv.vmv.x.s.nxv32i16( ) define signext i16 @intrinsic_vmv.x.s_s_nxv32i16( %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.x.s_s_nxv32i16: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli zero, zero, e16,m8,ta,mu ; CHECK-NEXT: vmv.x.s a0, v8 ; CHECK-NEXT: ret entry: %a = call i16 @llvm.riscv.vmv.x.s.nxv32i16( %0) ret i16 %a } declare i32 @llvm.riscv.vmv.x.s.nxv1i32( ) define i32 @intrinsic_vmv.x.s_s_nxv1i32( %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.x.s_s_nxv1i32: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli zero, zero, e32,mf2,ta,mu ; CHECK-NEXT: vmv.x.s a0, v8 ; CHECK-NEXT: ret entry: %a = call i32 @llvm.riscv.vmv.x.s.nxv1i32( %0) ret i32 %a } declare i32 @llvm.riscv.vmv.x.s.nxv2i32( ) define i32 @intrinsic_vmv.x.s_s_nxv2i32( %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.x.s_s_nxv2i32: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli zero, zero, e32,m1,ta,mu ; CHECK-NEXT: vmv.x.s a0, v8 ; CHECK-NEXT: ret entry: %a = call i32 @llvm.riscv.vmv.x.s.nxv2i32( %0) ret i32 %a } declare i32 @llvm.riscv.vmv.x.s.nxv4i32( ) define i32 @intrinsic_vmv.x.s_s_nxv4i32( %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.x.s_s_nxv4i32: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli zero, zero, e32,m2,ta,mu ; CHECK-NEXT: vmv.x.s a0, v8 ; CHECK-NEXT: ret entry: %a = call i32 @llvm.riscv.vmv.x.s.nxv4i32( %0) ret i32 %a } declare i32 @llvm.riscv.vmv.x.s.nxv8i32( ) define i32 @intrinsic_vmv.x.s_s_nxv8i32( %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.x.s_s_nxv8i32: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli zero, zero, e32,m4,ta,mu ; CHECK-NEXT: vmv.x.s a0, v8 ; CHECK-NEXT: ret entry: %a = call i32 @llvm.riscv.vmv.x.s.nxv8i32( %0) ret i32 %a } declare i32 @llvm.riscv.vmv.x.s.nxv16i32( ) define i32 @intrinsic_vmv.x.s_s_nxv16i32( %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.x.s_s_nxv16i32: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli zero, zero, e32,m8,ta,mu ; CHECK-NEXT: vmv.x.s a0, v8 ; CHECK-NEXT: ret entry: %a = call i32 @llvm.riscv.vmv.x.s.nxv16i32( %0) ret i32 %a }