28 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc --mtriple=loongarch32 --mattr=+32s,+lsx < %s | FileCheck %s3; RUN: llc --mtriple=loongarch64 --mattr=+lsx < %s | FileCheck %s4 5declare <4 x float> @llvm.loongarch.lsx.vfmsub.s(<4 x float>, <4 x float>, <4 x float>)6 7define <4 x float> @lsx_vfmsub_s(<4 x float> %va, <4 x float> %vb, <4 x float> %vc) nounwind {8; CHECK-LABEL: lsx_vfmsub_s:9; CHECK: # %bb.0: # %entry10; CHECK-NEXT: vfmsub.s $vr0, $vr0, $vr1, $vr211; CHECK-NEXT: ret12entry:13 %res = call <4 x float> @llvm.loongarch.lsx.vfmsub.s(<4 x float> %va, <4 x float> %vb, <4 x float> %vc)14 ret <4 x float> %res15}16 17declare <2 x double> @llvm.loongarch.lsx.vfmsub.d(<2 x double>, <2 x double>, <2 x double>)18 19define <2 x double> @lsx_vfmsub_d(<2 x double> %va, <2 x double> %vb, <2 x double> %vc) nounwind {20; CHECK-LABEL: lsx_vfmsub_d:21; CHECK: # %bb.0: # %entry22; CHECK-NEXT: vfmsub.d $vr0, $vr0, $vr1, $vr223; CHECK-NEXT: ret24entry:25 %res = call <2 x double> @llvm.loongarch.lsx.vfmsub.d(<2 x double> %va, <2 x double> %vb, <2 x double> %vc)26 ret <2 x double> %res27}28