brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.3 KiB · 106b8e6 Raw
83 lines · plain
1; RUN: not llc --mtriple=loongarch32 --mattr=+32s,+lsx < %s 2>&1 | FileCheck %s2; RUN: not llc --mtriple=loongarch64 --mattr=+lsx < %s 2>&1 | FileCheck %s3 4declare <2 x i64> @llvm.loongarch.lsx.vldi(i32)5 6define <2 x i64> @lsx_vldi_lo() nounwind {7; CHECK: llvm.loongarch.lsx.vldi: argument out of range8entry:9  %res = call <2 x i64> @llvm.loongarch.lsx.vldi(i32 -4097)10  ret <2 x i64> %res11}12 13define <2 x i64> @lsx_vldi_hi() nounwind {14; CHECK: llvm.loongarch.lsx.vldi: argument out of range15entry:16  %res = call <2 x i64> @llvm.loongarch.lsx.vldi(i32 4096)17  ret <2 x i64> %res18}19 20declare <16 x i8> @llvm.loongarch.lsx.vrepli.b(i32)21 22define <16 x i8> @lsx_vrepli_b_lo() nounwind {23; CHECK: llvm.loongarch.lsx.vrepli.b: argument out of range24entry:25  %res = call <16 x i8> @llvm.loongarch.lsx.vrepli.b(i32 -513)26  ret <16 x i8> %res27}28 29define <16 x i8> @lsx_vrepli_b_hi() nounwind {30; CHECK: llvm.loongarch.lsx.vrepli.b: argument out of range31entry:32  %res = call <16 x i8> @llvm.loongarch.lsx.vrepli.b(i32 512)33  ret <16 x i8> %res34}35 36declare <8 x i16> @llvm.loongarch.lsx.vrepli.h(i32)37 38define <8 x i16> @lsx_vrepli_h_lo() nounwind {39; CHECK: llvm.loongarch.lsx.vrepli.h: argument out of range40entry:41  %res = call <8 x i16> @llvm.loongarch.lsx.vrepli.h(i32 -513)42  ret <8 x i16> %res43}44 45define <8 x i16> @lsx_vrepli_h_hi() nounwind {46; CHECK: llvm.loongarch.lsx.vrepli.h: argument out of range47entry:48  %res = call <8 x i16> @llvm.loongarch.lsx.vrepli.h(i32 512)49  ret <8 x i16> %res50}51 52declare <4 x i32> @llvm.loongarch.lsx.vrepli.w(i32)53 54define <4 x i32> @lsx_vrepli_w_lo() nounwind {55; CHECK: llvm.loongarch.lsx.vrepli.w: argument out of range56entry:57  %res = call <4 x i32> @llvm.loongarch.lsx.vrepli.w(i32 -513)58  ret <4 x i32> %res59}60 61define <4 x i32> @lsx_vrepli_w_hi() nounwind {62; CHECK: llvm.loongarch.lsx.vrepli.w: argument out of range63entry:64  %res = call <4 x i32> @llvm.loongarch.lsx.vrepli.w(i32 512)65  ret <4 x i32> %res66}67 68declare <2 x i64> @llvm.loongarch.lsx.vrepli.d(i32)69 70define <2 x i64> @lsx_vrepli_d_lo() nounwind {71; CHECK: llvm.loongarch.lsx.vrepli.d: argument out of range72entry:73  %res = call <2 x i64> @llvm.loongarch.lsx.vrepli.d(i32 -513)74  ret <2 x i64> %res75}76 77define <2 x i64> @lsx_vrepli_d_hi() nounwind {78; CHECK: llvm.loongarch.lsx.vrepli.d: argument out of range79entry:80  %res = call <2 x i64> @llvm.loongarch.lsx.vrepli.d(i32 512)81  ret <2 x i64> %res82}83