brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1019 B · cc0f88d Raw
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.vfsub.s(<4 x float>, <4 x float>)6 7define <4 x float> @lsx_vfsub_s(<4 x float> %va, <4 x float> %vb) nounwind {8; CHECK-LABEL: lsx_vfsub_s:9; CHECK:       # %bb.0: # %entry10; CHECK-NEXT:    vfsub.s $vr0, $vr0, $vr111; CHECK-NEXT:    ret12entry:13  %res = call <4 x float> @llvm.loongarch.lsx.vfsub.s(<4 x float> %va, <4 x float> %vb)14  ret <4 x float> %res15}16 17declare <2 x double> @llvm.loongarch.lsx.vfsub.d(<2 x double>, <2 x double>)18 19define <2 x double> @lsx_vfsub_d(<2 x double> %va, <2 x double> %vb) nounwind {20; CHECK-LABEL: lsx_vfsub_d:21; CHECK:       # %bb.0: # %entry22; CHECK-NEXT:    vfsub.d $vr0, $vr0, $vr123; CHECK-NEXT:    ret24entry:25  %res = call <2 x double> @llvm.loongarch.lsx.vfsub.d(<2 x double> %va, <2 x double> %vb)26  ret <2 x double> %res27}28