xref: /llvm-project/llvm/test/CodeGen/LoongArch/lasx/intrinsic-pickve-non-imm.ll (revision 82bbf7003cabe2b6be8ab9b88bc96ecb8a64dc49)
1; RUN: not llc --mtriple=loongarch64 --mattr=+lasx < %s 2>&1 | FileCheck %s
2
3declare <8 x i32> @llvm.loongarch.lasx.xvpickve.w(<8 x i32>, i32)
4
5define <8 x i32> @lasx_xvpickve_w(<8 x i32> %va, i32 %c) nounwind {
6; CHECK: immarg operand has non-immediate parameter
7entry:
8  %res = call <8 x i32> @llvm.loongarch.lasx.xvpickve.w(<8 x i32> %va, i32 %c)
9  ret <8 x i32> %res
10}
11
12declare <4 x i64> @llvm.loongarch.lasx.xvpickve.d(<4 x i64>, i32)
13
14define <4 x i64> @lasx_xvpickve_d(<4 x i64> %va, i32 %c) nounwind {
15; CHECK: immarg operand has non-immediate parameter
16entry:
17  %res = call <4 x i64> @llvm.loongarch.lasx.xvpickve.d(<4 x i64> %va, i32 %c)
18  ret <4 x i64> %res
19}
20
21declare <8 x float> @llvm.loongarch.lasx.xvpickve.w.f(<8 x float>, i32)
22
23define <8 x float> @lasx_xvpickve_w_f(<8 x float> %va, i32 %c) nounwind {
24; CHECK: immarg operand has non-immediate parameter
25entry:
26  %res = call <8 x float> @llvm.loongarch.lasx.xvpickve.w.f(<8 x float> %va, i32 %c)
27  ret <8 x float> %res
28}
29
30declare <4 x double> @llvm.loongarch.lasx.xvpickve.d.f(<4 x double>, i32)
31
32define <4 x double> @lasx_xvpickve_d_f(<4 x double> %va, i32 %c) nounwind {
33; CHECK: immarg operand has non-immediate parameter
34entry:
35  %res = call <4 x double> @llvm.loongarch.lasx.xvpickve.d.f(<4 x double> %va, i32 %c)
36  ret <4 x double> %res
37}
38