brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · e9d1bf3 Raw
35 lines · plain
1; RUN: not llc --mtriple=loongarch32 --mattr=+32s,+lasx < %s 2>&1 | FileCheck %s2; RUN: not llc --mtriple=loongarch64 --mattr=+lasx < %s 2>&1 | FileCheck %s3 4declare <32 x i8> @llvm.loongarch.lasx.xvfrstpi.b(<32 x i8>, <32 x i8>, i32)5 6define <32 x i8> @lasx_xvfrstpi_b_lo(<32 x i8> %va, <32 x i8> %vb) nounwind {7; CHECK: llvm.loongarch.lasx.xvfrstpi.b: argument out of range8entry:9  %res = call <32 x i8> @llvm.loongarch.lasx.xvfrstpi.b(<32 x i8> %va, <32 x i8> %vb, i32 -1)10  ret <32 x i8> %res11}12 13define <32 x i8> @lasx_xvfrstpi_b_hi(<32 x i8> %va, <32 x i8> %vb) nounwind {14; CHECK: llvm.loongarch.lasx.xvfrstpi.b: argument out of range15entry:16  %res = call <32 x i8> @llvm.loongarch.lasx.xvfrstpi.b(<32 x i8> %va, <32 x i8> %vb, i32 32)17  ret <32 x i8> %res18}19 20declare <16 x i16> @llvm.loongarch.lasx.xvfrstpi.h(<16 x i16>, <16 x i16>, i32)21 22define <16 x i16> @lasx_xvfrstpi_h_lo(<16 x i16> %va, <16 x i16> %vb) nounwind {23; CHECK: llvm.loongarch.lasx.xvfrstpi.h: argument out of range24entry:25  %res = call <16 x i16> @llvm.loongarch.lasx.xvfrstpi.h(<16 x i16> %va, <16 x i16> %vb, i32 -1)26  ret <16 x i16> %res27}28 29define <16 x i16> @lasx_xvfrstpi_h_hi(<16 x i16> %va, <16 x i16> %vb) nounwind {30; CHECK: llvm.loongarch.lasx.xvfrstpi.h: argument out of range31entry:32  %res = call <16 x i16> @llvm.loongarch.lasx.xvfrstpi.h(<16 x i16> %va, <16 x i16> %vb, i32 32)33  ret <16 x i16> %res34}35