; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; RUN: llc -mtriple=riscv64 -mattr=+experimental-v,+d,+experimental-zfh -target-abi lp64d -verify-machineinstrs \ ; RUN: --riscv-no-aliases < %s | FileCheck %s declare @llvm.riscv.vfmv.v.f.nxv1f16( half, i64); define @intrinsic_vfmv.v.f_f_nxv1f16(half %0, i64 %1) nounwind { ; CHECK-LABEL: intrinsic_vfmv.v.f_f_nxv1f16: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e16,mf4,ta,mu ; CHECK-NEXT: vfmv.v.f v8, fa0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv1f16( half %0, i64 %1) ret %a } declare @llvm.riscv.vfmv.v.f.nxv2f16( half, i64); define @intrinsic_vfmv.v.f_f_nxv2f16(half %0, i64 %1) nounwind { ; CHECK-LABEL: intrinsic_vfmv.v.f_f_nxv2f16: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e16,mf2,ta,mu ; CHECK-NEXT: vfmv.v.f v8, fa0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv2f16( half %0, i64 %1) ret %a } declare @llvm.riscv.vfmv.v.f.nxv4f16( half, i64); define @intrinsic_vfmv.v.f_f_nxv4f16(half %0, i64 %1) nounwind { ; CHECK-LABEL: intrinsic_vfmv.v.f_f_nxv4f16: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e16,m1,ta,mu ; CHECK-NEXT: vfmv.v.f v8, fa0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv4f16( half %0, i64 %1) ret %a } declare @llvm.riscv.vfmv.v.f.nxv8f16( half, i64); define @intrinsic_vfmv.v.f_f_nxv8f16(half %0, i64 %1) nounwind { ; CHECK-LABEL: intrinsic_vfmv.v.f_f_nxv8f16: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e16,m2,ta,mu ; CHECK-NEXT: vfmv.v.f v8, fa0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv8f16( half %0, i64 %1) ret %a } declare @llvm.riscv.vfmv.v.f.nxv16f16( half, i64); define @intrinsic_vfmv.v.f_f_nxv16f16(half %0, i64 %1) nounwind { ; CHECK-LABEL: intrinsic_vfmv.v.f_f_nxv16f16: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e16,m4,ta,mu ; CHECK-NEXT: vfmv.v.f v8, fa0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv16f16( half %0, i64 %1) ret %a } declare @llvm.riscv.vfmv.v.f.nxv32f16( half, i64); define @intrinsic_vfmv.v.f_f_nxv32f16(half %0, i64 %1) nounwind { ; CHECK-LABEL: intrinsic_vfmv.v.f_f_nxv32f16: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e16,m8,ta,mu ; CHECK-NEXT: vfmv.v.f v8, fa0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv32f16( half %0, i64 %1) ret %a } declare @llvm.riscv.vfmv.v.f.nxv1f32( float, i64); define @intrinsic_vfmv.v.f_f_nxv1f32(float %0, i64 %1) nounwind { ; CHECK-LABEL: intrinsic_vfmv.v.f_f_nxv1f32: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e32,mf2,ta,mu ; CHECK-NEXT: vfmv.v.f v8, fa0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv1f32( float %0, i64 %1) ret %a } declare @llvm.riscv.vfmv.v.f.nxv2f32( float, i64); define @intrinsic_vfmv.v.f_f_nxv2f32(float %0, i64 %1) nounwind { ; CHECK-LABEL: intrinsic_vfmv.v.f_f_nxv2f32: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e32,m1,ta,mu ; CHECK-NEXT: vfmv.v.f v8, fa0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv2f32( float %0, i64 %1) ret %a } declare @llvm.riscv.vfmv.v.f.nxv4f32( float, i64); define @intrinsic_vfmv.v.f_f_nxv4f32(float %0, i64 %1) nounwind { ; CHECK-LABEL: intrinsic_vfmv.v.f_f_nxv4f32: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e32,m2,ta,mu ; CHECK-NEXT: vfmv.v.f v8, fa0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv4f32( float %0, i64 %1) ret %a } declare @llvm.riscv.vfmv.v.f.nxv8f32( float, i64); define @intrinsic_vfmv.v.f_f_nxv8f32(float %0, i64 %1) nounwind { ; CHECK-LABEL: intrinsic_vfmv.v.f_f_nxv8f32: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e32,m4,ta,mu ; CHECK-NEXT: vfmv.v.f v8, fa0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv8f32( float %0, i64 %1) ret %a } declare @llvm.riscv.vfmv.v.f.nxv16f32( float, i64); define @intrinsic_vfmv.v.f_f_nxv16f32(float %0, i64 %1) nounwind { ; CHECK-LABEL: intrinsic_vfmv.v.f_f_nxv16f32: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e32,m8,ta,mu ; CHECK-NEXT: vfmv.v.f v8, fa0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv16f32( float %0, i64 %1) ret %a } declare @llvm.riscv.vfmv.v.f.nxv1f64( double, i64); define @intrinsic_vfmv.v.f_f_nxv1f64(double %0, i64 %1) nounwind { ; CHECK-LABEL: intrinsic_vfmv.v.f_f_nxv1f64: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e64,m1,ta,mu ; CHECK-NEXT: vfmv.v.f v8, fa0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv1f64( double %0, i64 %1) ret %a } declare @llvm.riscv.vfmv.v.f.nxv2f64( double, i64); define @intrinsic_vfmv.v.f_f_nxv2f64(double %0, i64 %1) nounwind { ; CHECK-LABEL: intrinsic_vfmv.v.f_f_nxv2f64: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e64,m2,ta,mu ; CHECK-NEXT: vfmv.v.f v8, fa0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv2f64( double %0, i64 %1) ret %a } declare @llvm.riscv.vfmv.v.f.nxv4f64( double, i64); define @intrinsic_vfmv.v.f_f_nxv4f64(double %0, i64 %1) nounwind { ; CHECK-LABEL: intrinsic_vfmv.v.f_f_nxv4f64: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e64,m4,ta,mu ; CHECK-NEXT: vfmv.v.f v8, fa0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv4f64( double %0, i64 %1) ret %a } declare @llvm.riscv.vfmv.v.f.nxv8f64( double, i64); define @intrinsic_vfmv.v.f_f_nxv8f64(double %0, i64 %1) nounwind { ; CHECK-LABEL: intrinsic_vfmv.v.f_f_nxv8f64: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e64,m8,ta,mu ; CHECK-NEXT: vfmv.v.f v8, fa0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv8f64( double %0, i64 %1) ret %a } define @intrinsic_vfmv.v.f_zero_nxv1f16(i64 %0) nounwind { ; CHECK-LABEL: intrinsic_vfmv.v.f_zero_nxv1f16: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e16,mf4,ta,mu ; CHECK-NEXT: vmv.v.i v8, 0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv1f16( half 0.0, i64 %0) ret %a } define @intrinsic_vmv.v.i_zero_nxv2f16(i64 %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.v.i_zero_nxv2f16: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e16,mf2,ta,mu ; CHECK-NEXT: vmv.v.i v8, 0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv2f16( half 0.0, i64 %0) ret %a } define @intrinsic_vmv.v.i_zero_nxv4f16(i64 %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.v.i_zero_nxv4f16: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e16,m1,ta,mu ; CHECK-NEXT: vmv.v.i v8, 0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv4f16( half 0.0, i64 %0) ret %a } define @intrinsic_vmv.v.i_zero_nxv8f16(i64 %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.v.i_zero_nxv8f16: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e16,m2,ta,mu ; CHECK-NEXT: vmv.v.i v8, 0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv8f16( half 0.0, i64 %0) ret %a } define @intrinsic_vmv.v.i_zero_nxv16f16(i64 %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.v.i_zero_nxv16f16: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e16,m4,ta,mu ; CHECK-NEXT: vmv.v.i v8, 0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv16f16( half 0.0, i64 %0) ret %a } define @intrinsic_vmv.v.i_zero_nxv32f16(i64 %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.v.i_zero_nxv32f16: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e16,m8,ta,mu ; CHECK-NEXT: vmv.v.i v8, 0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv32f16( half 0.0, i64 %0) ret %a } define @intrinsic_vmv.v.i_zero_nxv1f32(i64 %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.v.i_zero_nxv1f32: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e32,mf2,ta,mu ; CHECK-NEXT: vmv.v.i v8, 0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv1f32( float 0.0, i64 %0) ret %a } define @intrinsic_vmv.v.i_zero_nxv2f32(i64 %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.v.i_zero_nxv2f32: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e32,m1,ta,mu ; CHECK-NEXT: vmv.v.i v8, 0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv2f32( float 0.0, i64 %0) ret %a } define @intrinsic_vmv.v.i_zero_nxv4f32(i64 %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.v.i_zero_nxv4f32: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e32,m2,ta,mu ; CHECK-NEXT: vmv.v.i v8, 0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv4f32( float 0.0, i64 %0) ret %a } define @intrinsic_vmv.v.i_zero_nxv8f32(i64 %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.v.i_zero_nxv8f32: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e32,m4,ta,mu ; CHECK-NEXT: vmv.v.i v8, 0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv8f32( float 0.0, i64 %0) ret %a } define @intrinsic_vmv.v.i_zero_nxv16f32(i64 %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.v.i_zero_nxv16f32: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e32,m8,ta,mu ; CHECK-NEXT: vmv.v.i v8, 0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv16f32( float 0.0, i64 %0) ret %a } define @intrinsic_vmv.v.i_zero_nxv1f64(i64 %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.v.i_zero_nxv1f64: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e64,m1,ta,mu ; CHECK-NEXT: vmv.v.i v8, 0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv1f64( double 0.0, i64 %0) ret %a } define @intrinsic_vmv.v.i_zero_nxv2f64(i64 %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.v.i_zero_nxv2f64: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e64,m2,ta,mu ; CHECK-NEXT: vmv.v.i v8, 0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv2f64( double 0.0, i64 %0) ret %a } define @intrinsic_vmv.v.i_zero_nxv4f64(i64 %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.v.i_zero_nxv4f64: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e64,m4,ta,mu ; CHECK-NEXT: vmv.v.i v8, 0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv4f64( double 0.0, i64 %0) ret %a } define @intrinsic_vmv.v.i_zero_nxv8f64(i64 %0) nounwind { ; CHECK-LABEL: intrinsic_vmv.v.i_zero_nxv8f64: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: vsetvli a0, a0, e64,m8,ta,mu ; CHECK-NEXT: vmv.v.i v8, 0 ; CHECK-NEXT: jalr zero, 0(ra) entry: %a = call @llvm.riscv.vfmv.v.f.nxv8f64( double 0.0, i64 %0) ret %a }