blob: c0e3239dfb896c3abe5f2f55e75f42b29cafc1a8 [file] [log] [blame]
; RUN: not llc --mtriple=loongarch32 --mattr=+32s,+lasx < %s 2>&1 | FileCheck %s
; RUN: not llc --mtriple=loongarch64 --mattr=+lasx < %s 2>&1 | FileCheck %s
declare <32 x i8> @llvm.loongarch.lasx.xvld(ptr, i32)
define <32 x i8> @lasx_xvld(ptr %p, i32 %a) nounwind {
; CHECK: immarg operand has non-immediate parameter
entry:
%res = call <32 x i8> @llvm.loongarch.lasx.xvld(ptr %p, i32 %a)
ret <32 x i8> %res
}