39 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(ptr %p, i32 %a) nounwind {7; CHECK: immarg operand has non-immediate parameter8entry:9 %res = call <32 x i8> @llvm.loongarch.lasx.xvldrepl.b(ptr %p, i32 %a)10 ret <32 x i8> %res11}12 13declare <16 x i16> @llvm.loongarch.lasx.xvldrepl.h(ptr, i32)14 15define <16 x i16> @lasx_xvldrepl_h(ptr %p, i32 %a) nounwind {16; CHECK: immarg operand has non-immediate parameter17entry:18 %res = call <16 x i16> @llvm.loongarch.lasx.xvldrepl.h(ptr %p, i32 %a)19 ret <16 x i16> %res20}21 22declare <8 x i32> @llvm.loongarch.lasx.xvldrepl.w(ptr, i32)23 24define <8 x i32> @lasx_xvldrepl_w(ptr %p, i32 %a) nounwind {25; CHECK: immarg operand has non-immediate parameter26entry:27 %res = call <8 x i32> @llvm.loongarch.lasx.xvldrepl.w(ptr %p, i32 %a)28 ret <8 x i32> %res29}30 31declare <4 x i64> @llvm.loongarch.lasx.xvldrepl.d(ptr, i32)32 33define <4 x i64> @lasx_xvldrepl_d(ptr %p, i32 %a) nounwind {34; CHECK: immarg operand has non-immediate parameter35entry:36 %res = call <4 x i64> @llvm.loongarch.lasx.xvldrepl.d(ptr %p, i32 %a)37 ret <4 x i64> %res38}39