1 ; RUN: not llc --mtriple=loongarch64 --mattr=+lasx < %s 2>&1 | FileCheck %s
3 declare i32 @llvm.loongarch.lasx.xvpickve2gr.w(<8 x i32>, i32)
5 define i32 @lasx_xvpickve2gr_w(<8 x i32> %va, i32 %b) nounwind {
6 ; CHECK: immarg operand has non-immediate parameter
8 %res = call i32 @llvm.loongarch.lasx.xvpickve2gr.w(<8 x i32> %va, i32 %b)
12 declare i64 @llvm.loongarch.lasx.xvpickve2gr.d(<4 x i64>, i32)
14 define i64 @lasx_xvpickve2gr_d(<4 x i64> %va, i32 %b) nounwind {
15 ; CHECK: immarg operand has non-immediate parameter
17 %res = call i64 @llvm.loongarch.lasx.xvpickve2gr.d(<4 x i64> %va, i32 %b)
21 declare i32 @llvm.loongarch.lasx.xvpickve2gr.wu(<8 x i32>, i32)
23 define i32 @lasx_xvpickve2gr_wu(<8 x i32> %va, i32 %b) nounwind {
24 ; CHECK: immarg operand has non-immediate parameter
26 %res = call i32 @llvm.loongarch.lasx.xvpickve2gr.wu(<8 x i32> %va, i32 %b)
30 declare i64 @llvm.loongarch.lasx.xvpickve2gr.du(<4 x i64>, i32)
32 define i64 @lasx_xvpickve2gr_du(<4 x i64> %va, i32 %b) nounwind {
33 ; CHECK: immarg operand has non-immediate parameter
35 %res = call i64 @llvm.loongarch.lasx.xvpickve2gr.du(<4 x i64> %va, i32 %b)