xref: /llvm-project/llvm/test/CodeGen/LoongArch/lasx/intrinsic-ld-non-imm.ll (revision ff9af4c43ad71eeba2cabe99609cfaa0fd54c1d0)
1; RUN: not llc --mtriple=loongarch64 --mattr=+lasx < %s 2>&1 | FileCheck %s
2
3declare <32 x i8> @llvm.loongarch.lasx.xvld(ptr, i32)
4
5define <32 x i8> @lasx_xvld(ptr %p, i32 %a) nounwind {
6; CHECK: immarg operand has non-immediate parameter
7entry:
8  %res = call <32 x i8> @llvm.loongarch.lasx.xvld(ptr %p, i32 %a)
9  ret <32 x i8> %res
10}
11