brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 6f921a4 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.vfmadd.s(<4 x float>, <4 x float>, <4 x float>)6 7define <4 x float> @lsx_vfmadd_s(<4 x float> %va, <4 x float> %vb, <4 x float> %vc) nounwind {8; CHECK-LABEL: lsx_vfmadd_s:9; CHECK:       # %bb.0: # %entry10; CHECK-NEXT:    vfmadd.s $vr0, $vr0, $vr1, $vr211; CHECK-NEXT:    ret12entry:13  %res = call <4 x float> @llvm.loongarch.lsx.vfmadd.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.vfmadd.d(<2 x double>, <2 x double>, <2 x double>)18 19define <2 x double> @lsx_vfmadd_d(<2 x double> %va, <2 x double> %vb, <2 x double> %vc) nounwind {20; CHECK-LABEL: lsx_vfmadd_d:21; CHECK:       # %bb.0: # %entry22; CHECK-NEXT:    vfmadd.d $vr0, $vr0, $vr1, $vr223; CHECK-NEXT:    ret24entry:25  %res = call <2 x double> @llvm.loongarch.lsx.vfmadd.d(<2 x double> %va, <2 x double> %vb, <2 x double> %vc)26  ret <2 x double> %res27}28