67 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.xvldrepl.b(ptr, i32)5 6define <32 x i8> @lasx_xvldrepl_b_lo(ptr %p) nounwind {7; CHECK: llvm.loongarch.lasx.xvldrepl.b: argument out of range8entry:9 %res = call <32 x i8> @llvm.loongarch.lasx.xvldrepl.b(ptr %p, i32 -2049)10 ret <32 x i8> %res11}12 13define <32 x i8> @lasx_xvldrepl_b_hi(ptr %p) nounwind {14; CHECK: llvm.loongarch.lasx.xvldrepl.b: argument out of range15entry:16 %res = call <32 x i8> @llvm.loongarch.lasx.xvldrepl.b(ptr %p, i32 2048)17 ret <32 x i8> %res18}19 20declare <16 x i16> @llvm.loongarch.lasx.xvldrepl.h(ptr, i32)21 22define <16 x i16> @lasx_xvldrepl_h_lo(ptr %p) nounwind {23; CHECK: llvm.loongarch.lasx.xvldrepl.h: argument out of range or not a multiple of 2.24entry:25 %res = call <16 x i16> @llvm.loongarch.lasx.xvldrepl.h(ptr %p, i32 -2050)26 ret <16 x i16> %res27}28 29define <16 x i16> @lasx_xvldrepl_h_hi(ptr %p) nounwind {30; CHECK: llvm.loongarch.lasx.xvldrepl.h: argument out of range or not a multiple of 2.31entry:32 %res = call <16 x i16> @llvm.loongarch.lasx.xvldrepl.h(ptr %p, i32 2048)33 ret <16 x i16> %res34}35 36declare <8 x i32> @llvm.loongarch.lasx.xvldrepl.w(ptr, i32)37 38define <8 x i32> @lasx_xvldrepl_w_lo(ptr %p) nounwind {39; CHECK: llvm.loongarch.lasx.xvldrepl.w: argument out of range or not a multiple of 4.40entry:41 %res = call <8 x i32> @llvm.loongarch.lasx.xvldrepl.w(ptr %p, i32 -2052)42 ret <8 x i32> %res43}44 45define <8 x i32> @lasx_xvldrepl_w_hi(ptr %p) nounwind {46; CHECK: llvm.loongarch.lasx.xvldrepl.w: argument out of range or not a multiple of 4.47entry:48 %res = call <8 x i32> @llvm.loongarch.lasx.xvldrepl.w(ptr %p, i32 2048)49 ret <8 x i32> %res50}51 52declare <4 x i64> @llvm.loongarch.lasx.xvldrepl.d(ptr, i32)53 54define <4 x i64> @lasx_xvldrepl_d_lo(ptr %p) nounwind {55; CHECK: llvm.loongarch.lasx.xvldrepl.d: argument out of range or not a multiple of 8.56entry:57 %res = call <4 x i64> @llvm.loongarch.lasx.xvldrepl.d(ptr %p, i32 -2056)58 ret <4 x i64> %res59}60 61define <4 x i64> @lasx_xvldrepl_d_hi(ptr %p) nounwind {62; CHECK: llvm.loongarch.lasx.xvldrepl.d: argument out of range or not a multiple of 8.63entry:64 %res = call <4 x i64> @llvm.loongarch.lasx.xvldrepl.d(ptr %p, i32 2048)65 ret <4 x i64> %res66}67