brintos

brintos / llvm-project-archived public Read only

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