brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · 853778f Raw
52 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc --mtriple=loongarch32 --mattr=+32s,+lasx < %s | FileCheck %s3; RUN: llc --mtriple=loongarch64 --mattr=+lasx < %s | FileCheck %s4 5declare <32 x i8> @llvm.loongarch.lasx.xvfrstp.b(<32 x i8>, <32 x i8>, <32 x i8>)6 7define <32 x i8> @lasx_xvfrstp_b(<32 x i8> %va, <32 x i8> %vb, <32 x i8> %vc) nounwind {8; CHECK-LABEL: lasx_xvfrstp_b:9; CHECK:       # %bb.0: # %entry10; CHECK-NEXT:    xvfrstp.b $xr0, $xr1, $xr211; CHECK-NEXT:    ret12entry:13  %res = call <32 x i8> @llvm.loongarch.lasx.xvfrstp.b(<32 x i8> %va, <32 x i8> %vb, <32 x i8> %vc)14  ret <32 x i8> %res15}16 17declare <16 x i16> @llvm.loongarch.lasx.xvfrstp.h(<16 x i16>, <16 x i16>, <16 x i16>)18 19define <16 x i16> @lasx_xvfrstp_h(<16 x i16> %va, <16 x i16> %vb, <16 x i16> %vc) nounwind {20; CHECK-LABEL: lasx_xvfrstp_h:21; CHECK:       # %bb.0: # %entry22; CHECK-NEXT:    xvfrstp.h $xr0, $xr1, $xr223; CHECK-NEXT:    ret24entry:25  %res = call <16 x i16> @llvm.loongarch.lasx.xvfrstp.h(<16 x i16> %va, <16 x i16> %vb, <16 x i16> %vc)26  ret <16 x i16> %res27}28 29declare <32 x i8> @llvm.loongarch.lasx.xvfrstpi.b(<32 x i8>, <32 x i8>, i32)30 31define <32 x i8> @lasx_xvfrstpi_b(<32 x i8> %va, <32 x i8> %vb) nounwind {32; CHECK-LABEL: lasx_xvfrstpi_b:33; CHECK:       # %bb.0: # %entry34; CHECK-NEXT:    xvfrstpi.b $xr0, $xr1, 135; CHECK-NEXT:    ret36entry:37  %res = call <32 x i8> @llvm.loongarch.lasx.xvfrstpi.b(<32 x i8> %va, <32 x i8> %vb, i32 1)38  ret <32 x i8> %res39}40 41declare <16 x i16> @llvm.loongarch.lasx.xvfrstpi.h(<16 x i16>, <16 x i16>, i32)42 43define <16 x i16> @lasx_xvfrstpi_h(<16 x i16> %va, <16 x i16> %vb) nounwind {44; CHECK-LABEL: lasx_xvfrstpi_h:45; CHECK:       # %bb.0: # %entry46; CHECK-NEXT:    xvfrstpi.h $xr0, $xr1, 147; CHECK-NEXT:    ret48entry:49  %res = call <16 x i16> @llvm.loongarch.lasx.xvfrstpi.h(<16 x i16> %va, <16 x i16> %vb, i32 1)50  ret <16 x i16> %res51}52