1 ; RUN: not llc --mtriple=loongarch64 --mattr=+lsx < %s 2>&1 | FileCheck %s
3 declare i32 @llvm.loongarch.lsx.vpickve2gr.b(<16 x i8>, i32)
5 define i32 @lsx_vpickve2gr_b_lo(<16 x i8> %va) nounwind {
6 ; CHECK: llvm.loongarch.lsx.vpickve2gr.b: argument out of range
8 %res = call i32 @llvm.loongarch.lsx.vpickve2gr.b(<16 x i8> %va, i32 -1)
12 define i32 @lsx_vpickve2gr_b_hi(<16 x i8> %va) nounwind {
13 ; CHECK: llvm.loongarch.lsx.vpickve2gr.b: argument out of range
15 %res = call i32 @llvm.loongarch.lsx.vpickve2gr.b(<16 x i8> %va, i32 16)
19 declare i32 @llvm.loongarch.lsx.vpickve2gr.h(<8 x i16>, i32)
21 define i32 @lsx_vpickve2gr_h_lo(<8 x i16> %va) nounwind {
22 ; CHECK: llvm.loongarch.lsx.vpickve2gr.h: argument out of range
24 %res = call i32 @llvm.loongarch.lsx.vpickve2gr.h(<8 x i16> %va, i32 -1)
28 define i32 @lsx_vpickve2gr_h_hi(<8 x i16> %va) nounwind {
29 ; CHECK: llvm.loongarch.lsx.vpickve2gr.h: argument out of range
31 %res = call i32 @llvm.loongarch.lsx.vpickve2gr.h(<8 x i16> %va, i32 8)
35 declare i32 @llvm.loongarch.lsx.vpickve2gr.w(<4 x i32>, i32)
37 define i32 @lsx_vpickve2gr_w_lo(<4 x i32> %va) nounwind {
38 ; CHECK: llvm.loongarch.lsx.vpickve2gr.w: argument out of range
40 %res = call i32 @llvm.loongarch.lsx.vpickve2gr.w(<4 x i32> %va, i32 -1)
44 define i32 @lsx_vpickve2gr_w_hi(<4 x i32> %va) nounwind {
45 ; CHECK: llvm.loongarch.lsx.vpickve2gr.w: argument out of range
47 %res = call i32 @llvm.loongarch.lsx.vpickve2gr.w(<4 x i32> %va, i32 4)
51 declare i64 @llvm.loongarch.lsx.vpickve2gr.d(<2 x i64>, i32)
53 define i64 @lsx_vpickve2gr_d_lo(<2 x i64> %va) nounwind {
54 ; CHECK: llvm.loongarch.lsx.vpickve2gr.d: argument out of range
56 %res = call i64 @llvm.loongarch.lsx.vpickve2gr.d(<2 x i64> %va, i32 -1)
60 define i64 @lsx_vpickve2gr_d_hi(<2 x i64> %va) nounwind {
61 ; CHECK: llvm.loongarch.lsx.vpickve2gr.d: argument out of range
63 %res = call i64 @llvm.loongarch.lsx.vpickve2gr.d(<2 x i64> %va, i32 2)
67 declare i32 @llvm.loongarch.lsx.vpickve2gr.bu(<16 x i8>, i32)
69 define i32 @lsx_vpickve2gr_bu_lo(<16 x i8> %va) nounwind {
70 ; CHECK: llvm.loongarch.lsx.vpickve2gr.bu: argument out of range
72 %res = call i32 @llvm.loongarch.lsx.vpickve2gr.bu(<16 x i8> %va, i32 -1)
76 define i32 @lsx_vpickve2gr_bu_hi(<16 x i8> %va) nounwind {
77 ; CHECK: llvm.loongarch.lsx.vpickve2gr.bu: argument out of range
79 %res = call i32 @llvm.loongarch.lsx.vpickve2gr.bu(<16 x i8> %va, i32 16)
83 declare i32 @llvm.loongarch.lsx.vpickve2gr.hu(<8 x i16>, i32)
85 define i32 @lsx_vpickve2gr_hu_lo(<8 x i16> %va) nounwind {
86 ; CHECK: llvm.loongarch.lsx.vpickve2gr.hu: argument out of range
88 %res = call i32 @llvm.loongarch.lsx.vpickve2gr.hu(<8 x i16> %va, i32 -1)
92 define i32 @lsx_vpickve2gr_hu_hi(<8 x i16> %va) nounwind {
93 ; CHECK: llvm.loongarch.lsx.vpickve2gr.hu: argument out of range
95 %res = call i32 @llvm.loongarch.lsx.vpickve2gr.hu(<8 x i16> %va, i32 8)
99 declare i32 @llvm.loongarch.lsx.vpickve2gr.wu(<4 x i32>, i32)
101 define i32 @lsx_vpickve2gr_wu_lo(<4 x i32> %va) nounwind {
102 ; CHECK: llvm.loongarch.lsx.vpickve2gr.wu: argument out of range
104 %res = call i32 @llvm.loongarch.lsx.vpickve2gr.wu(<4 x i32> %va, i32 -1)
108 define i32 @lsx_vpickve2gr_wu_hi(<4 x i32> %va) nounwind {
109 ; CHECK: llvm.loongarch.lsx.vpickve2gr.wu: argument out of range
111 %res = call i32 @llvm.loongarch.lsx.vpickve2gr.wu(<4 x i32> %va, i32 4)
115 declare i64 @llvm.loongarch.lsx.vpickve2gr.du(<2 x i64>, i32)
117 define i64 @lsx_vpickve2gr_du_lo(<2 x i64> %va) nounwind {
118 ; CHECK: llvm.loongarch.lsx.vpickve2gr.du: argument out of range
120 %res = call i64 @llvm.loongarch.lsx.vpickve2gr.du(<2 x i64> %va, i32 -1)
124 define i64 @lsx_vpickve2gr_du_hi(<2 x i64> %va) nounwind {
125 ; CHECK: llvm.loongarch.lsx.vpickve2gr.du: argument out of range
127 %res = call i64 @llvm.loongarch.lsx.vpickve2gr.du(<2 x i64> %va, i32 2)