brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.4 KiB · c574833 Raw
83 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 <4 x i64> @llvm.loongarch.lasx.xvldi(i32)5 6define <4 x i64> @lasx_xvldi_lo() nounwind {7; CHECK: llvm.loongarch.lasx.xvldi: argument out of range8entry:9  %res = call <4 x i64> @llvm.loongarch.lasx.xvldi(i32 -4097)10  ret <4 x i64> %res11}12 13define <4 x i64> @lasx_xvldi_hi() nounwind {14; CHECK: llvm.loongarch.lasx.xvldi: argument out of range15entry:16  %res = call <4 x i64> @llvm.loongarch.lasx.xvldi(i32 4096)17  ret <4 x i64> %res18}19 20declare <32 x i8> @llvm.loongarch.lasx.xvrepli.b(i32)21 22define <32 x i8> @lasx_xvrepli_b_lo() nounwind {23; CHECK: llvm.loongarch.lasx.xvrepli.b: argument out of range24entry:25  %res = call <32 x i8> @llvm.loongarch.lasx.xvrepli.b(i32 -513)26  ret <32 x i8> %res27}28 29define <32 x i8> @lasx_xvrepli_b_hi() nounwind {30; CHECK: llvm.loongarch.lasx.xvrepli.b: argument out of range31entry:32  %res = call <32 x i8> @llvm.loongarch.lasx.xvrepli.b(i32 512)33  ret <32 x i8> %res34}35 36declare <16 x i16> @llvm.loongarch.lasx.xvrepli.h(i32)37 38define <16 x i16> @lasx_xvrepli_h_lo() nounwind {39; CHECK: llvm.loongarch.lasx.xvrepli.h: argument out of range40entry:41  %res = call <16 x i16> @llvm.loongarch.lasx.xvrepli.h(i32 -513)42  ret <16 x i16> %res43}44 45define <16 x i16> @lasx_xvrepli_h_hi() nounwind {46; CHECK: llvm.loongarch.lasx.xvrepli.h: argument out of range47entry:48  %res = call <16 x i16> @llvm.loongarch.lasx.xvrepli.h(i32 512)49  ret <16 x i16> %res50}51 52declare <8 x i32> @llvm.loongarch.lasx.xvrepli.w(i32)53 54define <8 x i32> @lasx_xvrepli_w_lo() nounwind {55; CHECK: llvm.loongarch.lasx.xvrepli.w: argument out of range56entry:57  %res = call <8 x i32> @llvm.loongarch.lasx.xvrepli.w(i32 -513)58  ret <8 x i32> %res59}60 61define <8 x i32> @lasx_xvrepli_w_hi() nounwind {62; CHECK: llvm.loongarch.lasx.xvrepli.w: argument out of range63entry:64  %res = call <8 x i32> @llvm.loongarch.lasx.xvrepli.w(i32 512)65  ret <8 x i32> %res66}67 68declare <4 x i64> @llvm.loongarch.lasx.xvrepli.d(i32)69 70define <4 x i64> @lasx_xvrepli_d_lo() nounwind {71; CHECK: llvm.loongarch.lasx.xvrepli.d: argument out of range72entry:73  %res = call <4 x i64> @llvm.loongarch.lasx.xvrepli.d(i32 -513)74  ret <4 x i64> %res75}76 77define <4 x i64> @lasx_xvrepli_d_hi() nounwind {78; CHECK: llvm.loongarch.lasx.xvrepli.d: argument out of range79entry:80  %res = call <4 x i64> @llvm.loongarch.lasx.xvrepli.d(i32 512)81  ret <4 x i64> %res82}83