1 // RUN: %clang_cc1 -triple loongarch64 -target-feature +lasx -verify %s
2 // RUN: not %clang_cc1 -triple loongarch64 -DFEATURE_CHECK -emit-llvm %s -o /dev/null 2>&1 \
5 typedef signed char v32i8
__attribute__((vector_size(32), aligned(32)));
6 typedef signed char v32i8_b
__attribute__((vector_size(32), aligned(1)));
7 typedef unsigned char v32u8
__attribute__((vector_size(32), aligned(32)));
8 typedef unsigned char v32u8_b
__attribute__((vector_size(32), aligned(1)));
9 typedef short v16i16
__attribute__((vector_size(32), aligned(32)));
10 typedef short v16i16_h
__attribute__((vector_size(32), aligned(2)));
11 typedef unsigned short v16u16
__attribute__((vector_size(32), aligned(32)));
12 typedef unsigned short v16u16_h
__attribute__((vector_size(32), aligned(2)));
13 typedef int v8i32
__attribute__((vector_size(32), aligned(32)));
14 typedef int v8i32_w
__attribute__((vector_size(32), aligned(4)));
15 typedef unsigned int v8u32
__attribute__((vector_size(32), aligned(32)));
16 typedef unsigned int v8u32_w
__attribute__((vector_size(32), aligned(4)));
17 typedef long long v4i64
__attribute__((vector_size(32), aligned(32)));
18 typedef long long v4i64_d
__attribute__((vector_size(32), aligned(8)));
19 typedef unsigned long long v4u64
__attribute__((vector_size(32), aligned(32)));
20 typedef unsigned long long v4u64_d
__attribute__((vector_size(32), aligned(8)));
21 typedef float v8f32
__attribute__((vector_size(32), aligned(32)));
22 typedef float v8f32_w
__attribute__((vector_size(32), aligned(4)));
23 typedef double v4f64
__attribute__((vector_size(32), aligned(32)));
24 typedef double v4f64_d
__attribute__((vector_size(32), aligned(8)));
27 void test_feature(v32i8 _1
) {
28 // CHECK: error: '__builtin_lasx_xvslli_b' needs target feature lasx
29 (void)__builtin_lasx_xvslli_b(_1
, 1);
33 v32i8
xvslli_b(v32i8 _1
, int var
) {
34 v32i8 res
= __builtin_lasx_xvslli_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
35 res
|= __builtin_lasx_xvslli_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
36 res
|= __builtin_lasx_xvslli_b(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvslli_b' must be a constant integer}}
40 v16i16
xvslli_h(v16i16 _1
, int var
) {
41 v16i16 res
= __builtin_lasx_xvslli_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
42 res
|= __builtin_lasx_xvslli_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
43 res
|= __builtin_lasx_xvslli_h(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvslli_h' must be a constant integer}}
47 v8i32
xvslli_w(v8i32 _1
, int var
) {
48 v8i32 res
= __builtin_lasx_xvslli_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
49 res
|= __builtin_lasx_xvslli_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
50 res
|= __builtin_lasx_xvslli_w(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvslli_w' must be a constant integer}}
54 v4i64
xvslli_d(v4i64 _1
, int var
) {
55 v4i64 res
= __builtin_lasx_xvslli_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
56 res
|= __builtin_lasx_xvslli_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
57 res
|= __builtin_lasx_xvslli_d(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvslli_d' must be a constant integer}}
61 v32i8
xvsrai_b(v32i8 _1
, int var
) {
62 v32i8 res
= __builtin_lasx_xvsrai_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
63 res
|= __builtin_lasx_xvsrai_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
64 res
|= __builtin_lasx_xvsrai_b(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsrai_b' must be a constant integer}}
68 v16i16
xvsrai_h(v16i16 _1
, int var
) {
69 v16i16 res
= __builtin_lasx_xvsrai_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
70 res
|= __builtin_lasx_xvsrai_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
71 res
|= __builtin_lasx_xvsrai_h(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsrai_h' must be a constant integer}}
75 v8i32
xvsrai_w(v8i32 _1
, int var
) {
76 v8i32 res
= __builtin_lasx_xvsrai_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
77 res
|= __builtin_lasx_xvsrai_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
78 res
|= __builtin_lasx_xvsrai_w(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsrai_w' must be a constant integer}}
82 v4i64
xvsrai_d(v4i64 _1
, int var
) {
83 v4i64 res
= __builtin_lasx_xvsrai_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
84 res
|= __builtin_lasx_xvsrai_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
85 res
|= __builtin_lasx_xvsrai_d(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsrai_d' must be a constant integer}}
89 v32i8
xvsrari_b(v32i8 _1
, int var
) {
90 v32i8 res
= __builtin_lasx_xvsrari_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
91 res
|= __builtin_lasx_xvsrari_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
92 res
|= __builtin_lasx_xvsrari_b(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsrari_b' must be a constant integer}}
96 v16i16
xvsrari_h(v16i16 _1
, int var
) {
97 v16i16 res
= __builtin_lasx_xvsrari_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
98 res
|= __builtin_lasx_xvsrari_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
99 res
|= __builtin_lasx_xvsrari_h(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsrari_h' must be a constant integer}}
103 v8i32
xvsrari_w(v8i32 _1
, int var
) {
104 v8i32 res
= __builtin_lasx_xvsrari_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
105 res
|= __builtin_lasx_xvsrari_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
106 res
|= __builtin_lasx_xvsrari_w(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsrari_w' must be a constant integer}}
110 v4i64
xvsrari_d(v4i64 _1
, int var
) {
111 v4i64 res
= __builtin_lasx_xvsrari_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
112 res
|= __builtin_lasx_xvsrari_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
113 res
|= __builtin_lasx_xvsrari_d(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsrari_d' must be a constant integer}}
117 v32i8
xvsrli_b(v32i8 _1
, int var
) {
118 v32i8 res
= __builtin_lasx_xvsrli_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
119 res
|= __builtin_lasx_xvsrli_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
120 res
|= __builtin_lasx_xvsrli_b(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsrli_b' must be a constant integer}}
124 v16i16
xvsrli_h(v16i16 _1
, int var
) {
125 v16i16 res
= __builtin_lasx_xvsrli_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
126 res
|= __builtin_lasx_xvsrli_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
127 res
|= __builtin_lasx_xvsrli_h(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsrli_h' must be a constant integer}}
131 v8i32
xvsrli_w(v8i32 _1
, int var
) {
132 v8i32 res
= __builtin_lasx_xvsrli_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
133 res
|= __builtin_lasx_xvsrli_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
134 res
|= __builtin_lasx_xvsrli_w(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsrli_w' must be a constant integer}}
138 v4i64
xvsrli_d(v4i64 _1
, int var
) {
139 v4i64 res
= __builtin_lasx_xvsrli_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
140 res
|= __builtin_lasx_xvsrli_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
141 res
|= __builtin_lasx_xvsrli_d(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsrli_d' must be a constant integer}}
145 v32i8
xvsrlri_b(v32i8 _1
, int var
) {
146 v32i8 res
= __builtin_lasx_xvsrlri_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
147 res
|= __builtin_lasx_xvsrlri_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
148 res
|= __builtin_lasx_xvsrlri_b(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsrlri_b' must be a constant integer}}
152 v16i16
xvsrlri_h(v16i16 _1
, int var
) {
153 v16i16 res
= __builtin_lasx_xvsrlri_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
154 res
|= __builtin_lasx_xvsrlri_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
155 res
|= __builtin_lasx_xvsrlri_h(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsrlri_h' must be a constant integer}}
159 v8i32
xvsrlri_w(v8i32 _1
, int var
) {
160 v8i32 res
= __builtin_lasx_xvsrlri_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
161 res
|= __builtin_lasx_xvsrlri_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
162 res
|= __builtin_lasx_xvsrlri_w(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsrlri_w' must be a constant integer}}
166 v4i64
xvsrlri_d(v4i64 _1
, int var
) {
167 v4i64 res
= __builtin_lasx_xvsrlri_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
168 res
|= __builtin_lasx_xvsrlri_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
169 res
|= __builtin_lasx_xvsrlri_d(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsrlri_d' must be a constant integer}}
173 v32u8
xvbitclri_b(v32u8 _1
, int var
) {
174 v32u8 res
= __builtin_lasx_xvbitclri_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
175 res
|= __builtin_lasx_xvbitclri_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
176 res
|= __builtin_lasx_xvbitclri_b(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvbitclri_b' must be a constant integer}}
180 v16u16
xvbitclri_h(v16u16 _1
, int var
) {
181 v16u16 res
= __builtin_lasx_xvbitclri_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
182 res
|= __builtin_lasx_xvbitclri_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
183 res
|= __builtin_lasx_xvbitclri_h(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvbitclri_h' must be a constant integer}}
187 v8u32
xvbitclri_w(v8u32 _1
, int var
) {
188 v8u32 res
= __builtin_lasx_xvbitclri_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
189 res
|= __builtin_lasx_xvbitclri_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
190 res
|= __builtin_lasx_xvbitclri_w(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvbitclri_w' must be a constant integer}}
194 v4u64
xvbitclri_d(v4u64 _1
, int var
) {
195 v4u64 res
= __builtin_lasx_xvbitclri_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
196 res
|= __builtin_lasx_xvbitclri_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
197 res
|= __builtin_lasx_xvbitclri_d(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvbitclri_d' must be a constant integer}}
201 v32u8
xvbitseti_b(v32u8 _1
, int var
) {
202 v32u8 res
= __builtin_lasx_xvbitseti_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
203 res
|= __builtin_lasx_xvbitseti_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
204 res
|= __builtin_lasx_xvbitseti_b(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvbitseti_b' must be a constant integer}}
208 v16u16
xvbitseti_h(v16u16 _1
, int var
) {
209 v16u16 res
= __builtin_lasx_xvbitseti_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
210 res
|= __builtin_lasx_xvbitseti_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
211 res
|= __builtin_lasx_xvbitseti_h(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvbitseti_h' must be a constant integer}}
215 v8u32
xvbitseti_w(v8u32 _1
, int var
) {
216 v8u32 res
= __builtin_lasx_xvbitseti_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
217 res
|= __builtin_lasx_xvbitseti_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
218 res
|= __builtin_lasx_xvbitseti_w(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvbitseti_w' must be a constant integer}}
222 v4u64
xvbitseti_d(v4u64 _1
, int var
) {
223 v4u64 res
= __builtin_lasx_xvbitseti_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
224 res
|= __builtin_lasx_xvbitseti_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
225 res
|= __builtin_lasx_xvbitseti_d(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvbitseti_d' must be a constant integer}}
229 v32u8
xvbitrevi_b(v32u8 _1
, int var
) {
230 v32u8 res
= __builtin_lasx_xvbitrevi_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
231 res
|= __builtin_lasx_xvbitrevi_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
232 res
|= __builtin_lasx_xvbitrevi_b(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvbitrevi_b' must be a constant integer}}
236 v16u16
xvbitrevi_h(v16u16 _1
, int var
) {
237 v16u16 res
= __builtin_lasx_xvbitrevi_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
238 res
|= __builtin_lasx_xvbitrevi_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
239 res
|= __builtin_lasx_xvbitrevi_h(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvbitrevi_h' must be a constant integer}}
243 v8u32
xvbitrevi_w(v8u32 _1
, int var
) {
244 v8u32 res
= __builtin_lasx_xvbitrevi_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
245 res
|= __builtin_lasx_xvbitrevi_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
246 res
|= __builtin_lasx_xvbitrevi_w(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvbitrevi_w' must be a constant integer}}
250 v4u64
xvbitrevi_d(v4u64 _1
, int var
) {
251 v4u64 res
= __builtin_lasx_xvbitrevi_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
252 res
|= __builtin_lasx_xvbitrevi_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
253 res
|= __builtin_lasx_xvbitrevi_d(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvbitrevi_d' must be a constant integer}}
257 v32i8
xvaddi_bu(v32i8 _1
, int var
) {
258 v32i8 res
= __builtin_lasx_xvaddi_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
259 res
|= __builtin_lasx_xvaddi_bu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
260 res
|= __builtin_lasx_xvaddi_bu(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvaddi_bu' must be a constant integer}}
264 v16i16
xvaddi_hu(v16i16 _1
, int var
) {
265 v16i16 res
= __builtin_lasx_xvaddi_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
266 res
|= __builtin_lasx_xvaddi_hu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
267 res
|= __builtin_lasx_xvaddi_hu(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvaddi_hu' must be a constant integer}}
271 v8i32
xvaddi_wu(v8i32 _1
, int var
) {
272 v8i32 res
= __builtin_lasx_xvaddi_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
273 res
|= __builtin_lasx_xvaddi_wu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
274 res
|= __builtin_lasx_xvaddi_wu(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvaddi_wu' must be a constant integer}}
278 v4i64
xvaddi_du(v4i64 _1
, int var
) {
279 v4i64 res
= __builtin_lasx_xvaddi_du(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
280 res
|= __builtin_lasx_xvaddi_du(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
281 res
|= __builtin_lasx_xvaddi_du(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvaddi_du' must be a constant integer}}
285 v32i8
xvsubi_bu(v32i8 _1
, int var
) {
286 v32i8 res
= __builtin_lasx_xvsubi_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
287 res
|= __builtin_lasx_xvsubi_bu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
288 res
|= __builtin_lasx_xvsubi_bu(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsubi_bu' must be a constant integer}}
292 v16i16
xvsubi_hu(v16i16 _1
, int var
) {
293 v16i16 res
= __builtin_lasx_xvsubi_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
294 res
|= __builtin_lasx_xvsubi_hu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
295 res
|= __builtin_lasx_xvsubi_hu(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsubi_hu' must be a constant integer}}
299 v8i32
xvsubi_wu(v8i32 _1
, int var
) {
300 v8i32 res
= __builtin_lasx_xvsubi_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
301 res
|= __builtin_lasx_xvsubi_wu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
302 res
|= __builtin_lasx_xvsubi_wu(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsubi_wu' must be a constant integer}}
306 v4i64
xvsubi_du(v4i64 _1
, int var
) {
307 v4i64 res
= __builtin_lasx_xvsubi_du(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
308 res
|= __builtin_lasx_xvsubi_du(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
309 res
|= __builtin_lasx_xvsubi_du(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsubi_du' must be a constant integer}}
313 v32i8
xvmaxi_b(v32i8 _1
, int var
) {
314 v32i8 res
= __builtin_lasx_xvmaxi_b(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
315 res
|= __builtin_lasx_xvmaxi_b(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
316 res
|= __builtin_lasx_xvmaxi_b(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvmaxi_b' must be a constant integer}}
320 v16i16
xvmaxi_h(v16i16 _1
, int var
) {
321 v16i16 res
= __builtin_lasx_xvmaxi_h(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
322 res
|= __builtin_lasx_xvmaxi_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
323 res
|= __builtin_lasx_xvmaxi_h(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvmaxi_h' must be a constant integer}}
327 v8i32
xvmaxi_w(v8i32 _1
, int var
) {
328 v8i32 res
= __builtin_lasx_xvmaxi_w(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
329 res
|= __builtin_lasx_xvmaxi_w(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
330 res
|= __builtin_lasx_xvmaxi_w(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvmaxi_w' must be a constant integer}}
334 v4i64
xvmaxi_d(v4i64 _1
, int var
) {
335 v4i64 res
= __builtin_lasx_xvmaxi_d(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
336 res
|= __builtin_lasx_xvmaxi_d(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
337 res
|= __builtin_lasx_xvmaxi_d(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvmaxi_d' must be a constant integer}}
341 v32u8
xvmaxi_bu(v32u8 _1
, int var
) {
342 v32u8 res
= __builtin_lasx_xvmaxi_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
343 res
|= __builtin_lasx_xvmaxi_bu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
344 res
|= __builtin_lasx_xvmaxi_bu(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvmaxi_bu' must be a constant integer}}
348 v16u16
xvmaxi_hu(v16u16 _1
, int var
) {
349 v16u16 res
= __builtin_lasx_xvmaxi_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
350 res
|= __builtin_lasx_xvmaxi_hu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
351 res
|= __builtin_lasx_xvmaxi_hu(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvmaxi_hu' must be a constant integer}}
355 v8u32
xvmaxi_wu(v8u32 _1
, int var
) {
356 v8u32 res
= __builtin_lasx_xvmaxi_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
357 res
|= __builtin_lasx_xvmaxi_wu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
358 res
|= __builtin_lasx_xvmaxi_wu(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvmaxi_wu' must be a constant integer}}
362 v4u64
xvmaxi_du(v4u64 _1
, int var
) {
363 v4u64 res
= __builtin_lasx_xvmaxi_du(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
364 res
|= __builtin_lasx_xvmaxi_du(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
365 res
|= __builtin_lasx_xvmaxi_du(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvmaxi_du' must be a constant integer}}
369 v32i8
xvmini_b(v32i8 _1
, int var
) {
370 v32i8 res
= __builtin_lasx_xvmini_b(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
371 res
|= __builtin_lasx_xvmini_b(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
372 res
|= __builtin_lasx_xvmini_b(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvmini_b' must be a constant integer}}
376 v16i16
xvmini_h(v16i16 _1
, int var
) {
377 v16i16 res
= __builtin_lasx_xvmini_h(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
378 res
|= __builtin_lasx_xvmini_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
379 res
|= __builtin_lasx_xvmini_h(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvmini_h' must be a constant integer}}}
383 v8i32
xvmini_w(v8i32 _1
, int var
) {
384 v8i32 res
= __builtin_lasx_xvmini_w(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
385 res
|= __builtin_lasx_xvmini_w(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
386 res
|= __builtin_lasx_xvmini_w(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvmini_w' must be a constant integer}}
390 v4i64
xvmini_d(v4i64 _1
, int var
) {
391 v4i64 res
= __builtin_lasx_xvmini_d(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
392 res
|= __builtin_lasx_xvmini_d(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
393 res
|= __builtin_lasx_xvmini_d(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvmini_d' must be a constant integer}}
397 v32u8
xvmini_bu(v32u8 _1
, int var
) {
398 v32u8 res
= __builtin_lasx_xvmini_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
399 res
|= __builtin_lasx_xvmini_bu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
400 res
|= __builtin_lasx_xvmini_bu(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvmini_bu' must be a constant integer}}
404 v16u16
xvmini_hu(v16u16 _1
, int var
) {
405 v16u16 res
= __builtin_lasx_xvmini_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
406 res
|= __builtin_lasx_xvmini_hu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
407 res
|= __builtin_lasx_xvmini_hu(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvmini_hu' must be a constant integer}}
411 v8u32
xvmini_wu(v8u32 _1
, int var
) {
412 v8u32 res
= __builtin_lasx_xvmini_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
413 res
|= __builtin_lasx_xvmini_wu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
414 res
|= __builtin_lasx_xvmini_wu(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvmini_wu' must be a constant integer}}
418 v4u64
xvmini_du(v4u64 _1
, int var
) {
419 v4u64 res
= __builtin_lasx_xvmini_du(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
420 res
|= __builtin_lasx_xvmini_du(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
421 res
|= __builtin_lasx_xvmini_du(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvmini_du' must be a constant integer}}
425 v32i8
xvseqi_b(v32i8 _1
, int var
) {
426 v32i8 res
= __builtin_lasx_xvseqi_b(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
427 res
|= __builtin_lasx_xvseqi_b(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
428 res
|= __builtin_lasx_xvseqi_b(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvseqi_b' must be a constant integer}}
432 v16i16
xvseqi_h(v16i16 _1
, int var
) {
433 v16i16 res
= __builtin_lasx_xvseqi_h(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
434 res
|= __builtin_lasx_xvseqi_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
435 res
|= __builtin_lasx_xvseqi_h(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvseqi_h' must be a constant integer}}
439 v8i32
xvseqi_w(v8i32 _1
, int var
) {
440 v8i32 res
= __builtin_lasx_xvseqi_w(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
441 res
|= __builtin_lasx_xvseqi_w(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
442 res
|= __builtin_lasx_xvseqi_w(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvseqi_w' must be a constant integer}}
446 v4i64
xvseqi_d(v4i64 _1
, int var
) {
447 v4i64 res
= __builtin_lasx_xvseqi_d(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
448 res
|= __builtin_lasx_xvseqi_d(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
449 res
|= __builtin_lasx_xvseqi_d(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvseqi_d' must be a constant integer}}
453 v32i8
xvslti_b(v32i8 _1
, int var
) {
454 v32i8 res
= __builtin_lasx_xvslti_b(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
455 res
|= __builtin_lasx_xvslti_b(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
456 res
|= __builtin_lasx_xvslti_b(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvslti_b' must be a constant integer}}
460 v16i16
xvslti_h(v16i16 _1
, int var
) {
461 v16i16 res
= __builtin_lasx_xvslti_h(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
462 res
|= __builtin_lasx_xvslti_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
463 res
|= __builtin_lasx_xvslti_h(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvslti_h' must be a constant integer}}
467 v8i32
xvslti_w(v8i32 _1
, int var
) {
468 v8i32 res
= __builtin_lasx_xvslti_w(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
469 res
|= __builtin_lasx_xvslti_w(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
470 res
|= __builtin_lasx_xvslti_w(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvslti_w' must be a constant integer}}
474 v4i64
xvslti_d(v4i64 _1
, int var
) {
475 v4i64 res
= __builtin_lasx_xvslti_d(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
476 res
|= __builtin_lasx_xvslti_d(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
477 res
|= __builtin_lasx_xvslti_d(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvslti_d' must be a constant integer}}
481 v32i8
xvslti_bu(v32u8 _1
, int var
) {
482 v32i8 res
= __builtin_lasx_xvslti_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
483 res
|= __builtin_lasx_xvslti_bu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
484 res
|= __builtin_lasx_xvslti_bu(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvslti_bu' must be a constant integer}}
488 v16i16
xvslti_hu(v16u16 _1
, int var
) {
489 v16i16 res
= __builtin_lasx_xvslti_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
490 res
|= __builtin_lasx_xvslti_hu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
491 res
|= __builtin_lasx_xvslti_hu(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvslti_hu' must be a constant integer}}
495 v8i32
xvslti_wu(v8u32 _1
, int var
) {
496 v8i32 res
= __builtin_lasx_xvslti_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
497 res
|= __builtin_lasx_xvslti_wu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
498 res
|= __builtin_lasx_xvslti_wu(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvslti_wu' must be a constant integer}}
502 v4i64
xvslti_du(v4u64 _1
, int var
) {
503 v4i64 res
= __builtin_lasx_xvslti_du(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
504 res
|= __builtin_lasx_xvslti_du(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
505 res
|= __builtin_lasx_xvslti_du(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvslti_du' must be a constant integer}}
509 v32i8
xvslei_b(v32i8 _1
, int var
) {
510 v32i8 res
= __builtin_lasx_xvslei_b(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
511 res
|= __builtin_lasx_xvslei_b(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
512 res
|= __builtin_lasx_xvslei_b(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvslei_b' must be a constant integer}}
516 v16i16
xvslei_h(v16i16 _1
, int var
) {
517 v16i16 res
= __builtin_lasx_xvslei_h(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
518 res
|= __builtin_lasx_xvslei_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
519 res
|= __builtin_lasx_xvslei_h(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvslei_h' must be a constant integer}}
523 v8i32
xvslei_w(v8i32 _1
, int var
) {
524 v8i32 res
= __builtin_lasx_xvslei_w(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
525 res
|= __builtin_lasx_xvslei_w(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
526 res
|= __builtin_lasx_xvslei_w(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvslei_w' must be a constant integer}}
530 v4i64
xvslei_d(v4i64 _1
, int var
) {
531 v4i64 res
= __builtin_lasx_xvslei_d(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
532 res
|= __builtin_lasx_xvslei_d(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
533 res
|= __builtin_lasx_xvslei_d(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvslei_d' must be a constant integer}}
537 v32i8
xvslei_bu(v32u8 _1
, int var
) {
538 v32i8 res
= __builtin_lasx_xvslei_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
539 res
|= __builtin_lasx_xvslei_bu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
540 res
|= __builtin_lasx_xvslei_bu(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvslei_bu' must be a constant integer}}
544 v16i16
xvslei_hu(v16u16 _1
, int var
) {
545 v16i16 res
= __builtin_lasx_xvslei_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
546 res
|= __builtin_lasx_xvslei_hu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
547 res
|= __builtin_lasx_xvslei_hu(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvslei_hu' must be a constant integer}}
551 v8i32
xvslei_wu(v8u32 _1
, int var
) {
552 v8i32 res
= __builtin_lasx_xvslei_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
553 res
|= __builtin_lasx_xvslei_wu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
554 res
|= __builtin_lasx_xvslei_wu(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvslei_wu' must be a constant integer}}
558 v4i64
xvslei_du(v4u64 _1
, int var
) {
559 v4i64 res
= __builtin_lasx_xvslei_du(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
560 res
|= __builtin_lasx_xvslei_du(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
561 res
|= __builtin_lasx_xvslei_du(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvslei_du' must be a constant integer}}
565 v32i8
xvsat_b(v32i8 _1
, int var
) {
566 v32i8 res
= __builtin_lasx_xvsat_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
567 res
|= __builtin_lasx_xvsat_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
568 res
|= __builtin_lasx_xvsat_b(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsat_b' must be a constant integer}}
572 v16i16
xvsat_h(v16i16 _1
, int var
) {
573 v16i16 res
= __builtin_lasx_xvsat_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
574 res
|= __builtin_lasx_xvsat_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
575 res
|= __builtin_lasx_xvsat_h(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsat_h' must be a constant integer}}
579 v8i32
xvsat_w(v8i32 _1
, int var
) {
580 v8i32 res
= __builtin_lasx_xvsat_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
581 res
|= __builtin_lasx_xvsat_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
582 res
|= __builtin_lasx_xvsat_w(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsat_w' must be a constant integer}}
586 v4i64
xvsat_d(v4i64 _1
, int var
) {
587 v4i64 res
= __builtin_lasx_xvsat_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
588 res
|= __builtin_lasx_xvsat_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
589 res
|= __builtin_lasx_xvsat_d(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsat_d' must be a constant integer}}
593 v32u8
xvsat_bu(v32u8 _1
, int var
) {
594 v32u8 res
= __builtin_lasx_xvsat_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
595 res
|= __builtin_lasx_xvsat_bu(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
596 res
|= __builtin_lasx_xvsat_bu(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsat_bu' must be a constant integer}}
600 v16u16
xvsat_hu(v16u16 _1
, int var
) {
601 v16u16 res
= __builtin_lasx_xvsat_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
602 res
|= __builtin_lasx_xvsat_hu(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
603 res
|= __builtin_lasx_xvsat_hu(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsat_hu' must be a constant integer}}
607 v8u32
xvsat_wu(v8u32 _1
, int var
) {
608 v8u32 res
= __builtin_lasx_xvsat_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
609 res
|= __builtin_lasx_xvsat_wu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
610 res
|= __builtin_lasx_xvsat_wu(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsat_wu' must be a constant integer}}
614 v4u64
xvsat_du(v4u64 _1
, int var
) {
615 v4u64 res
= __builtin_lasx_xvsat_du(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
616 res
|= __builtin_lasx_xvsat_du(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
617 res
|= __builtin_lasx_xvsat_du(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsat_du' must be a constant integer}}
621 v32i8
xvrepl128vei_b(v32i8 _1
, int var
) {
622 v32i8 res
= __builtin_lasx_xvrepl128vei_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
623 res
|= __builtin_lasx_xvrepl128vei_b(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
624 res
|= __builtin_lasx_xvrepl128vei_b(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvrepl128vei_b' must be a constant integer}}
628 v16i16
xvrepl128vei_h(v16i16 _1
, int var
) {
629 v16i16 res
= __builtin_lasx_xvrepl128vei_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
630 res
|= __builtin_lasx_xvrepl128vei_h(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
631 res
|= __builtin_lasx_xvrepl128vei_h(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvrepl128vei_h' must be a constant integer}}
635 v8i32
xvrepl128vei_w(v8i32 _1
, int var
) {
636 v8i32 res
= __builtin_lasx_xvrepl128vei_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}}
637 res
|= __builtin_lasx_xvrepl128vei_w(_1
, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}}
638 res
|= __builtin_lasx_xvrepl128vei_w(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvrepl128vei_w' must be a constant integer}}
642 v4i64
xvrepl128vei_d(v4i64 _1
, int var
) {
643 v4i64 res
= __builtin_lasx_xvrepl128vei_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 1]}}
644 res
|= __builtin_lasx_xvrepl128vei_d(_1
, 2); // expected-error {{argument value 2 is outside the valid range [0, 1]}}
645 res
|= __builtin_lasx_xvrepl128vei_d(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvrepl128vei_d' must be a constant integer}}
649 v32u8
xvandi_b(v32u8 _1
, int var
) {
650 v32u8 res
= __builtin_lasx_xvandi_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
651 res
|= __builtin_lasx_xvandi_b(_1
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
652 res
|= __builtin_lasx_xvandi_b(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvandi_b' must be a constant integer}}
656 v32u8
xvori_b(v32u8 _1
, int var
) {
657 v32u8 res
= __builtin_lasx_xvori_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
658 res
|= __builtin_lasx_xvori_b(_1
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
659 res
|= __builtin_lasx_xvori_b(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvori_b' must be a constant integer}}
663 v32u8
xvnori_b(v32u8 _1
, int var
) {
664 v32u8 res
= __builtin_lasx_xvnori_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
665 res
|= __builtin_lasx_xvnori_b(_1
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
666 res
|= __builtin_lasx_xvnori_b(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvnori_b' must be a constant integer}}
670 v32u8
xvxori_b(v32u8 _1
, int var
) {
671 v32u8 res
= __builtin_lasx_xvxori_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
672 res
|= __builtin_lasx_xvxori_b(_1
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
673 res
|= __builtin_lasx_xvxori_b(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvxori_b' must be a constant integer}}
677 v32u8
xvbitseli_b(v32u8 _1
, v32u8 _2
, int var
) {
678 v32u8 res
= __builtin_lasx_xvbitseli_b(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
679 res
|= __builtin_lasx_xvbitseli_b(_1
, _2
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
680 res
|= __builtin_lasx_xvbitseli_b(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvbitseli_b' must be a constant integer}}
684 v32i8
xvshuf4i_b(v32i8 _1
, int var
) {
685 v32i8 res
= __builtin_lasx_xvshuf4i_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
686 res
|= __builtin_lasx_xvshuf4i_b(_1
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
687 res
|= __builtin_lasx_xvshuf4i_b(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvshuf4i_b' must be a constant integer}}
691 v16i16
xvshuf4i_h(v16i16 _1
, int var
) {
692 v16i16 res
= __builtin_lasx_xvshuf4i_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
693 res
|= __builtin_lasx_xvshuf4i_h(_1
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
694 res
|= __builtin_lasx_xvshuf4i_h(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvshuf4i_h' must be a constant integer}}
698 v8i32
xvshuf4i_w(v8i32 _1
, int var
) {
699 v8i32 res
= __builtin_lasx_xvshuf4i_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
700 res
|= __builtin_lasx_xvshuf4i_w(_1
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
701 res
|= __builtin_lasx_xvshuf4i_w(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvshuf4i_w' must be a constant integer}}
705 v4i64
xvshuf4i_d(v4i64 _1
, v4i64 _2
, int var
) {
706 v4i64 res
= __builtin_lasx_xvshuf4i_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
707 res
|= __builtin_lasx_xvshuf4i_d(_1
, _2
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
708 res
|= __builtin_lasx_xvshuf4i_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvshuf4i_d' must be a constant integer}}
712 v8i32
xvpermi_w(v8i32 _1
, v8i32 _2
, int var
) {
713 v8i32 res
= __builtin_lasx_xvpermi_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
714 res
|= __builtin_lasx_xvpermi_w(_1
, _2
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
715 res
|= __builtin_lasx_xvpermi_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvpermi_w' must be a constant integer}}
719 v4i64
xvpermi_d(v4i64 _1
, int var
) {
720 v4i64 res
= __builtin_lasx_xvpermi_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
721 res
|= __builtin_lasx_xvpermi_d(_1
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
722 res
|= __builtin_lasx_xvpermi_d(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvpermi_d' must be a constant integer}}
726 v32i8
xvpermi_q(v32i8 _1
, v32i8 _2
, int var
) {
727 v32i8 res
= __builtin_lasx_xvpermi_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
728 res
|= __builtin_lasx_xvpermi_q(_1
, _2
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
729 res
|= __builtin_lasx_xvpermi_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvpermi_q' must be a constant integer}}
733 v16i16
xvsllwil_h_b(v32i8 _1
, int var
) {
734 v16i16 res
= __builtin_lasx_xvsllwil_h_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
735 res
|= __builtin_lasx_xvsllwil_h_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
736 res
|= __builtin_lasx_xvsllwil_h_b(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsllwil_h_b' must be a constant integer}}
740 v8i32
xvsllwil_w_h(v16i16 _1
, int var
) {
741 v8i32 res
= __builtin_lasx_xvsllwil_w_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
742 res
|= __builtin_lasx_xvsllwil_w_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
743 res
|= __builtin_lasx_xvsllwil_w_h(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsllwil_w_h' must be a constant integer}}
747 v4i64
xvsllwil_d_w(v8i32 _1
, int var
) {
748 v4i64 res
= __builtin_lasx_xvsllwil_d_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
749 res
|= __builtin_lasx_xvsllwil_d_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
750 res
|= __builtin_lasx_xvsllwil_d_w(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsllwil_d_w' must be a constant integer}}
754 v16u16
xvsllwil_hu_bu(v32u8 _1
, int var
) {
755 v16u16 res
= __builtin_lasx_xvsllwil_hu_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
756 res
|= __builtin_lasx_xvsllwil_hu_bu(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
757 res
|= __builtin_lasx_xvsllwil_hu_bu(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsllwil_hu_bu' must be a constant integer}}
761 v8u32
xvsllwil_wu_hu(v16u16 _1
, int var
) {
762 v8u32 res
= __builtin_lasx_xvsllwil_wu_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
763 res
|= __builtin_lasx_xvsllwil_wu_hu(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
764 res
|= __builtin_lasx_xvsllwil_wu_hu(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsllwil_wu_hu' must be a constant integer}}
768 v4u64
xvsllwil_du_wu(v8u32 _1
, int var
) {
769 v4u64 res
= __builtin_lasx_xvsllwil_du_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
770 res
|= __builtin_lasx_xvsllwil_du_wu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
771 res
|= __builtin_lasx_xvsllwil_du_wu(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvsllwil_du_wu' must be a constant integer}}
775 v32i8
xvfrstpi_b(v32i8 _1
, v32i8 _2
, int var
) {
776 v32i8 res
= __builtin_lasx_xvfrstpi_b(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
777 res
|= __builtin_lasx_xvfrstpi_b(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
778 res
|= __builtin_lasx_xvfrstpi_b(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvfrstpi_b' must be a constant integer}}
782 v16i16
xvfrstpi_h(v16i16 _1
, v16i16 _2
, int var
) {
783 v16i16 res
= __builtin_lasx_xvfrstpi_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
784 res
|= __builtin_lasx_xvfrstpi_h(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
785 res
|= __builtin_lasx_xvfrstpi_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvfrstpi_h' must be a constant integer}}
789 v32i8
xvbsrl_v(v32i8 _1
, int var
) {
790 v32i8 res
= __builtin_lasx_xvbsrl_v(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
791 res
|= __builtin_lasx_xvbsrl_v(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
792 res
|= __builtin_lasx_xvbsrl_v(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvbsrl_v' must be a constant integer}}
796 v32i8
xvbsll_v(v32i8 _1
, int var
) {
797 v32i8 res
= __builtin_lasx_xvbsll_v(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
798 res
|= __builtin_lasx_xvbsll_v(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
799 res
|= __builtin_lasx_xvbsll_v(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvbsll_v' must be a constant integer}}
803 v32i8
xvextrins_b(v32i8 _1
, v32i8 _2
, int var
) {
804 v32i8 res
= __builtin_lasx_xvextrins_b(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
805 res
|= __builtin_lasx_xvextrins_b(_1
, _2
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
806 res
|= __builtin_lasx_xvextrins_b(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvextrins_b' must be a constant integer}}
810 v16i16
xvextrins_h(v16i16 _1
, v16i16 _2
, int var
) {
811 v16i16 res
= __builtin_lasx_xvextrins_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
812 res
|= __builtin_lasx_xvextrins_h(_1
, _2
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
813 res
|= __builtin_lasx_xvextrins_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvextrins_h' must be a constant integer}}
817 v8i32
xvextrins_w(v8i32 _1
, v8i32 _2
, int var
) {
818 v8i32 res
= __builtin_lasx_xvextrins_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
819 res
|= __builtin_lasx_xvextrins_w(_1
, _2
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
820 res
|= __builtin_lasx_xvextrins_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvextrins_w' must be a constant integer}}
824 v4i64
xvextrins_d(v4i64 _1
, v4i64 _2
, int var
) {
825 v4i64 res
= __builtin_lasx_xvextrins_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
826 res
|= __builtin_lasx_xvextrins_d(_1
, _2
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
827 res
|= __builtin_lasx_xvextrins_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvextrins_d' must be a constant integer}}
831 v32i8
xvld(void *_1
, int var
) {
832 v32i8 res
= __builtin_lasx_xvld(_1
, -2049); // expected-error {{argument value -2049 is outside the valid range [-2048, 2047]}}
833 res
|= __builtin_lasx_xvld(_1
, 2048); // expected-error {{argument value 2048 is outside the valid range [-2048, 2047]}}
834 res
|= __builtin_lasx_xvld(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvld' must be a constant integer}}
838 void xvst(v32i8 _1
, void *_2
, int var
) {
839 __builtin_lasx_xvst(_1
, _2
, -2049); // expected-error {{argument value -2049 is outside the valid range [-2048, 2047]}}
840 __builtin_lasx_xvst(_1
, _2
, 2048); // expected-error {{argument value 2048 is outside the valid range [-2048, 2047]}}
841 __builtin_lasx_xvst(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvst' must be a constant integer}}
844 void xvstelm_b(v32i8 _1
, void * _2
, int var
) {
845 __builtin_lasx_xvstelm_b(_1
, _2
, -129, 1); // expected-error {{argument value -129 is outside the valid range [-128, 127]}}
846 __builtin_lasx_xvstelm_b(_1
, _2
, 128, 1); // expected-error {{argument value 128 is outside the valid range [-128, 127]}}
847 __builtin_lasx_xvstelm_b(_1
, _2
, var
, 1); // expected-error {{argument to '__builtin_lasx_xvstelm_b' must be a constant integer}}
850 void xvstelm_h(v16i16 _1
, void * _2
, int var
) {
851 __builtin_lasx_xvstelm_h(_1
, _2
, -258, 1); // expected-error {{argument value -258 is outside the valid range [-256, 254]}}
852 __builtin_lasx_xvstelm_h(_1
, _2
, 256, 1); // expected-error {{argument value 256 is outside the valid range [-256, 254]}}
853 __builtin_lasx_xvstelm_h(_1
, _2
, var
, 1); // expected-error {{argument to '__builtin_lasx_xvstelm_h' must be a constant integer}}
856 void xvstelm_w(v8i32 _1
, void * _2
, int var
) {
857 __builtin_lasx_xvstelm_w(_1
, _2
, -516, 1); // expected-error {{argument value -516 is outside the valid range [-512, 508]}}
858 __builtin_lasx_xvstelm_w(_1
, _2
, 512, 1); // expected-error {{argument value 512 is outside the valid range [-512, 508]}}
859 __builtin_lasx_xvstelm_w(_1
, _2
, var
, 1); // expected-error {{argument to '__builtin_lasx_xvstelm_w' must be a constant integer}}
862 void xvstelm_d(v4i64 _1
, void * _2
, int var
) {
863 __builtin_lasx_xvstelm_d(_1
, _2
, -1032, 1); // expected-error {{argument value -1032 is outside the valid range [-1024, 1016]}}
864 __builtin_lasx_xvstelm_d(_1
, _2
, 1024, 1); // expected-error {{argument value 1024 is outside the valid range [-1024, 1016]}}
865 __builtin_lasx_xvstelm_d(_1
, _2
, var
, 1); // expected-error {{argument to '__builtin_lasx_xvstelm_d' must be a constant integer}}
868 void xvstelm_b_idx(v32i8 _1
, void * _2
, int var
) {
869 __builtin_lasx_xvstelm_b(_1
, _2
, 1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
870 __builtin_lasx_xvstelm_b(_1
, _2
, 1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
871 __builtin_lasx_xvstelm_b(_1
, _2
, 1, var
); // expected-error {{argument to '__builtin_lasx_xvstelm_b' must be a constant integer}}
874 void xvstelm_h_idx(v16i16 _1
, void * _2
, int var
) {
875 __builtin_lasx_xvstelm_h(_1
, _2
, 2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
876 __builtin_lasx_xvstelm_h(_1
, _2
, 2, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
877 __builtin_lasx_xvstelm_h(_1
, _2
, 2, var
); // expected-error {{argument to '__builtin_lasx_xvstelm_h' must be a constant integer}}
880 void xvstelm_w_idx(v8i32 _1
, void * _2
, int var
) {
881 __builtin_lasx_xvstelm_w(_1
, _2
, 4, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
882 __builtin_lasx_xvstelm_w(_1
, _2
, 4, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
883 __builtin_lasx_xvstelm_w(_1
, _2
, 4, var
); // expected-error {{argument to '__builtin_lasx_xvstelm_w' must be a constant integer}}
886 void xvstelm_d_idx(v4i64 _1
, void * _2
, int var
) {
887 __builtin_lasx_xvstelm_d(_1
, _2
, 8, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}}
888 __builtin_lasx_xvstelm_d(_1
, _2
, 8, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}}
889 __builtin_lasx_xvstelm_d(_1
, _2
, 8, var
); // expected-error {{argument to '__builtin_lasx_xvstelm_d' must be a constant integer}}
892 v8i32
xvinsve0_w(v8i32 _1
, v8i32 _2
, int var
) {
893 v8i32 res
= __builtin_lasx_xvinsve0_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
894 res
|= __builtin_lasx_xvinsve0_w(_1
, _2
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
895 res
|= __builtin_lasx_xvinsve0_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvinsve0_w' must be a constant integer}}
899 v4i64
xvinsve0_d(v4i64 _1
, v4i64 _2
, int var
) {
900 v4i64 res
= __builtin_lasx_xvinsve0_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}}
901 res
|= __builtin_lasx_xvinsve0_d(_1
, _2
, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}}
902 res
|= __builtin_lasx_xvinsve0_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvinsve0_d' must be a constant integer}}
906 v8i32
xvpickve_w(v8i32 _1
, int var
) {
907 v8i32 res
= __builtin_lasx_xvpickve_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
908 res
|= __builtin_lasx_xvpickve_w(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
909 res
|= __builtin_lasx_xvpickve_w(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvpickve_w' must be a constant integer}}
913 v4i64
xvpickve_d(v4i64 _1
, int var
) {
914 v4i64 res
= __builtin_lasx_xvpickve_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}}
915 res
|= __builtin_lasx_xvpickve_d(_1
, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}}
916 res
|= __builtin_lasx_xvpickve_d(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvpickve_d' must be a constant integer}}
920 v4i64
xvldi(int var
) {
921 v4i64 res
= __builtin_lasx_xvldi(-4097); // expected-error {{argument value -4097 is outside the valid range [-4096, 4095]}}
922 res
|= __builtin_lasx_xvldi(4096); // expected-error {{argument value 4096 is outside the valid range [-4096, 4095]}}
923 res
|= __builtin_lasx_xvldi(var
); // expected-error {{argument to '__builtin_lasx_xvldi' must be a constant integer}}
927 v8i32
xvinsgr2vr_w(v8i32 _1
, int var
) {
928 v8i32 res
= __builtin_lasx_xvinsgr2vr_w(_1
, 1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
929 res
|= __builtin_lasx_xvinsgr2vr_w(_1
, 1, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
930 res
|= __builtin_lasx_xvinsgr2vr_w(_1
, 1, var
); // expected-error {{argument to '__builtin_lasx_xvinsgr2vr_w' must be a constant integer}}
934 v4i64
xvinsgr2vr_d(v4i64 _1
, int var
) {
935 v4i64 res
= __builtin_lasx_xvinsgr2vr_d(_1
, 1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}}
936 res
|= __builtin_lasx_xvinsgr2vr_d(_1
, 1, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}}
937 res
|= __builtin_lasx_xvinsgr2vr_d(_1
, 1, var
); // expected-error {{argument to '__builtin_lasx_xvinsgr2vr_d' must be a constant integer}}
941 v32i8
xvldrepl_b(void *_1
, int var
) {
942 v32i8 res
= __builtin_lasx_xvldrepl_b(_1
, -2049); // expected-error {{argument value -2049 is outside the valid range [-2048, 2047]}}
943 res
|= __builtin_lasx_xvldrepl_b(_1
, 2048); // expected-error {{argument value 2048 is outside the valid range [-2048, 2047]}}
944 res
|= __builtin_lasx_xvldrepl_b(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvldrepl_b' must be a constant integer}}
948 v16i16
xvldrepl_h(void *_1
, int var
) {
949 v16i16 res
= __builtin_lasx_xvldrepl_h(_1
, -2050); // expected-error {{argument value -2050 is outside the valid range [-2048, 2046]}}
950 res
|= __builtin_lasx_xvldrepl_h(_1
, 2048); // expected-error {{argument value 2048 is outside the valid range [-2048, 2046]}}
951 res
|= __builtin_lasx_xvldrepl_h(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvldrepl_h' must be a constant integer}}
955 v8i32
xvldrepl_w(void *_1
, int var
) {
956 v8i32 res
= __builtin_lasx_xvldrepl_w(_1
, -2052); // expected-error {{argument value -2052 is outside the valid range [-2048, 2044]}}
957 res
|= __builtin_lasx_xvldrepl_w(_1
, 2048); // expected-error {{argument value 2048 is outside the valid range [-2048, 2044]}}
958 res
|= __builtin_lasx_xvldrepl_w(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvldrepl_w' must be a constant integer}}
962 v4i64
xvldrepl_d(void *_1
, int var
) {
963 v4i64 res
= __builtin_lasx_xvldrepl_d(_1
, -2056); // expected-error {{argument value -2056 is outside the valid range [-2048, 2040]}}
964 res
|= __builtin_lasx_xvldrepl_d(_1
, 2048); // expected-error {{argument value 2048 is outside the valid range [-2048, 2040]}}
965 res
|= __builtin_lasx_xvldrepl_d(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvldrepl_d' must be a constant integer}}
969 int xvpickve2gr_w(v8i32 _1
, int var
) {
970 int res
= __builtin_lasx_xvpickve2gr_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
971 res
|= __builtin_lasx_xvpickve2gr_w(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
972 res
|= __builtin_lasx_xvpickve2gr_w(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvpickve2gr_w' must be a constant integer}}
976 unsigned int xvpickve2gr_wu(v8i32 _1
, int var
) {
977 unsigned int res
= __builtin_lasx_xvpickve2gr_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
978 res
|= __builtin_lasx_xvpickve2gr_wu(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
979 res
|= __builtin_lasx_xvpickve2gr_wu(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvpickve2gr_wu' must be a constant integer}}
983 long xvpickve2gr_d(v4i64 _1
, int var
) {
984 long res
= __builtin_lasx_xvpickve2gr_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}}
985 res
|= __builtin_lasx_xvpickve2gr_d(_1
, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}}
986 res
|= __builtin_lasx_xvpickve2gr_d(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvpickve2gr_d' must be a constant integer}}
990 unsigned long int xvpickve2gr_du(v4i64 _1
, int var
) {
991 unsigned long int res
= __builtin_lasx_xvpickve2gr_du(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}}
992 res
|= __builtin_lasx_xvpickve2gr_du(_1
, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}}
993 res
|= __builtin_lasx_xvpickve2gr_du(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvpickve2gr_du' must be a constant integer}}
997 v32i8
xvrotri_b(v32i8 _1
, int var
) {
998 v32i8 res
= __builtin_lasx_xvrotri_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
999 res
|= __builtin_lasx_xvrotri_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
1000 res
|= __builtin_lasx_xvrotri_b(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvrotri_b' must be a constant integer}}
1004 v16i16
xvrotri_h(v16i16 _1
, int var
) {
1005 v16i16 res
= __builtin_lasx_xvrotri_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1006 res
|= __builtin_lasx_xvrotri_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1007 res
|= __builtin_lasx_xvrotri_h(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvrotri_h' must be a constant integer}}
1011 v8i32
xvrotri_w(v8i32 _1
, int var
) {
1012 v8i32 res
= __builtin_lasx_xvrotri_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1013 res
|= __builtin_lasx_xvrotri_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1014 res
|= __builtin_lasx_xvrotri_w(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvrotri_w' must be a constant integer}}
1018 v4i64
xvrotri_d(v4i64 _1
, int var
) {
1019 v4i64 res
= __builtin_lasx_xvrotri_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1020 res
|= __builtin_lasx_xvrotri_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1021 res
|= __builtin_lasx_xvrotri_d(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvrotri_d' must be a constant integer}}
1025 v32i8
xvsrlni_b_h(v32i8 _1
, v32i8 _2
, int var
) {
1026 v32i8 res
= __builtin_lasx_xvsrlni_b_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1027 res
|= __builtin_lasx_xvsrlni_b_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1028 res
|= __builtin_lasx_xvsrlni_b_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvsrlni_b_h' must be a constant integer}}
1032 v16i16
xvsrlni_h_w(v16i16 _1
, v16i16 _2
, int var
) {
1033 v16i16 res
= __builtin_lasx_xvsrlni_h_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1034 res
|= __builtin_lasx_xvsrlni_h_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1035 res
|= __builtin_lasx_xvsrlni_h_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvsrlni_h_w' must be a constant integer}}
1039 v8i32
xvsrlni_w_d(v8i32 _1
, v8i32 _2
, int var
) {
1040 v8i32 res
= __builtin_lasx_xvsrlni_w_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1041 res
|= __builtin_lasx_xvsrlni_w_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1042 res
|= __builtin_lasx_xvsrlni_w_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvsrlni_w_d' must be a constant integer}}
1046 v4i64
xvsrlni_d_q(v4i64 _1
, v4i64 _2
, int var
) {
1047 v4i64 res
= __builtin_lasx_xvsrlni_d_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1048 res
|= __builtin_lasx_xvsrlni_d_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1049 res
|= __builtin_lasx_xvsrlni_d_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvsrlni_d_q' must be a constant integer}}
1053 v32i8
xvsrlrni_b_h(v32i8 _1
, v32i8 _2
, int var
) {
1054 v32i8 res
= __builtin_lasx_xvsrlrni_b_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1055 res
|= __builtin_lasx_xvsrlrni_b_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1056 res
|= __builtin_lasx_xvsrlrni_b_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvsrlrni_b_h' must be a constant integer}}
1060 v16i16
xvsrlrni_h_w(v16i16 _1
, v16i16 _2
, int var
) {
1061 v16i16 res
= __builtin_lasx_xvsrlrni_h_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1062 res
|= __builtin_lasx_xvsrlrni_h_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1063 res
|= __builtin_lasx_xvsrlrni_h_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvsrlrni_h_w' must be a constant integer}}
1067 v8i32
xvsrlrni_w_d(v8i32 _1
, v8i32 _2
, int var
) {
1068 v8i32 res
= __builtin_lasx_xvsrlrni_w_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1069 res
|= __builtin_lasx_xvsrlrni_w_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1070 res
|= __builtin_lasx_xvsrlrni_w_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvsrlrni_w_d' must be a constant integer}}
1074 v4i64
xvsrlrni_d_q(v4i64 _1
, v4i64 _2
, int var
) {
1075 v4i64 res
= __builtin_lasx_xvsrlrni_d_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1076 res
|= __builtin_lasx_xvsrlrni_d_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1077 res
|= __builtin_lasx_xvsrlrni_d_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvsrlrni_d_q' must be a constant integer}}
1081 v32i8
xvssrlni_b_h(v32i8 _1
, v32i8 _2
, int var
) {
1082 v32i8 res
= __builtin_lasx_xvssrlni_b_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1083 res
|= __builtin_lasx_xvssrlni_b_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1084 res
|= __builtin_lasx_xvssrlni_b_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrlni_b_h' must be a constant integer}}
1088 v16i16
xvssrlni_h_w(v16i16 _1
, v16i16 _2
, int var
) {
1089 v16i16 res
= __builtin_lasx_xvssrlni_h_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1090 res
|= __builtin_lasx_xvssrlni_h_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1091 res
|= __builtin_lasx_xvssrlni_h_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrlni_h_w' must be a constant integer}}
1095 v8i32
xvssrlni_w_d(v8i32 _1
, v8i32 _2
, int var
) {
1096 v8i32 res
= __builtin_lasx_xvssrlni_w_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1097 res
|= __builtin_lasx_xvssrlni_w_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1098 res
|= __builtin_lasx_xvssrlni_w_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrlni_w_d' must be a constant integer}}
1102 v4i64
xvssrlni_d_q(v4i64 _1
, v4i64 _2
, int var
) {
1103 v4i64 res
= __builtin_lasx_xvssrlni_d_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1104 res
|= __builtin_lasx_xvssrlni_d_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1105 res
|= __builtin_lasx_xvssrlni_d_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrlni_d_q' must be a constant integer}}
1109 v32u8
xvssrlni_bu_h(v32u8 _1
, v32i8 _2
, int var
) {
1110 v32u8 res
= __builtin_lasx_xvssrlni_bu_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1111 res
|= __builtin_lasx_xvssrlni_bu_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1112 res
|= __builtin_lasx_xvssrlni_bu_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrlni_bu_h' must be a constant integer}}
1116 v16u16
xvssrlni_hu_w(v16u16 _1
, v16i16 _2
, int var
) {
1117 v16u16 res
= __builtin_lasx_xvssrlni_hu_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1118 res
|= __builtin_lasx_xvssrlni_hu_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1119 res
|= __builtin_lasx_xvssrlni_hu_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrlni_hu_w' must be a constant integer}}
1123 v8u32
xvssrlni_wu_d(v8u32 _1
, v8i32 _2
, int var
) {
1124 v8u32 res
= __builtin_lasx_xvssrlni_wu_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1125 res
|= __builtin_lasx_xvssrlni_wu_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1126 res
|= __builtin_lasx_xvssrlni_wu_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrlni_wu_d' must be a constant integer}}
1130 v4u64
xvssrlni_du_q(v4u64 _1
, v4i64 _2
, int var
) {
1131 v4u64 res
= __builtin_lasx_xvssrlni_du_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1132 res
|= __builtin_lasx_xvssrlni_du_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1133 res
|= __builtin_lasx_xvssrlni_du_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrlni_du_q' must be a constant integer}}
1137 v32i8
xvssrlrni_b_h(v32i8 _1
, v32i8 _2
, int var
) {
1138 v32i8 res
= __builtin_lasx_xvssrlrni_b_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1139 res
|= __builtin_lasx_xvssrlrni_b_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1140 res
|= __builtin_lasx_xvssrlrni_b_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrlrni_b_h' must be a constant integer}}
1144 v16i16
xvssrlrni_h_w(v16i16 _1
, v16i16 _2
, int var
) {
1145 v16i16 res
= __builtin_lasx_xvssrlrni_h_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1146 res
|= __builtin_lasx_xvssrlrni_h_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1147 res
|= __builtin_lasx_xvssrlrni_h_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrlrni_h_w' must be a constant integer}}
1151 v8i32
xvssrlrni_w_d(v8i32 _1
, v8i32 _2
, int var
) {
1152 v8i32 res
= __builtin_lasx_xvssrlrni_w_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1153 res
|= __builtin_lasx_xvssrlrni_w_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1154 res
|= __builtin_lasx_xvssrlrni_w_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrlrni_w_d' must be a constant integer}}
1158 v4i64
xvssrlrni_d_q(v4i64 _1
, v4i64 _2
, int var
) {
1159 v4i64 res
= __builtin_lasx_xvssrlrni_d_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1160 res
|= __builtin_lasx_xvssrlrni_d_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1161 res
|= __builtin_lasx_xvssrlrni_d_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrlrni_d_q' must be a constant integer}}
1165 v32u8
xvssrlrni_bu_h(v32u8 _1
, v32i8 _2
, int var
) {
1166 v32u8 res
= __builtin_lasx_xvssrlrni_bu_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1167 res
|= __builtin_lasx_xvssrlrni_bu_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1168 res
|= __builtin_lasx_xvssrlrni_bu_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrlrni_bu_h' must be a constant integer}}
1172 v16u16
xvssrlrni_hu_w(v16u16 _1
, v16i16 _2
, int var
) {
1173 v16u16 res
= __builtin_lasx_xvssrlrni_hu_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1174 res
|= __builtin_lasx_xvssrlrni_hu_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1175 res
|= __builtin_lasx_xvssrlrni_hu_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrlrni_hu_w' must be a constant integer}}
1179 v8u32
xvssrlrni_wu_d(v8u32 _1
, v8i32 _2
, int var
) {
1180 v8u32 res
= __builtin_lasx_xvssrlrni_wu_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1181 res
|= __builtin_lasx_xvssrlrni_wu_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1182 res
|= __builtin_lasx_xvssrlrni_wu_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrlrni_wu_d' must be a constant integer}}
1186 v4u64
xvssrlrni_du_q(v4u64 _1
, v4i64 _2
, int var
) {
1187 v4u64 res
= __builtin_lasx_xvssrlrni_du_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1188 res
|= __builtin_lasx_xvssrlrni_du_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1189 res
|= __builtin_lasx_xvssrlrni_du_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrlrni_du_q' must be a constant integer}}
1193 v32i8
xvsrani_b_h(v32i8 _1
, v32i8 _2
, int var
) {
1194 v32i8 res
= __builtin_lasx_xvsrani_b_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1195 res
|= __builtin_lasx_xvsrani_b_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1196 res
|= __builtin_lasx_xvsrani_b_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvsrani_b_h' must be a constant integer}}
1200 v16i16
xvsrani_h_w(v16i16 _1
, v16i16 _2
, int var
) {
1201 v16i16 res
= __builtin_lasx_xvsrani_h_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1202 res
|= __builtin_lasx_xvsrani_h_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1203 res
|= __builtin_lasx_xvsrani_h_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvsrani_h_w' must be a constant integer}}
1207 v8i32
xvsrani_w_d(v8i32 _1
, v8i32 _2
, int var
) {
1208 v8i32 res
= __builtin_lasx_xvsrani_w_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1209 res
|= __builtin_lasx_xvsrani_w_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1210 res
|= __builtin_lasx_xvsrani_w_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvsrani_w_d' must be a constant integer}}
1214 v4i64
xvsrani_d_q(v4i64 _1
, v4i64 _2
, int var
) {
1215 v4i64 res
= __builtin_lasx_xvsrani_d_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1216 res
|= __builtin_lasx_xvsrani_d_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1217 res
|= __builtin_lasx_xvsrani_d_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvsrani_d_q' must be a constant integer}}
1221 v32i8
xvsrarni_b_h(v32i8 _1
, v32i8 _2
, int var
) {
1222 v32i8 res
= __builtin_lasx_xvsrarni_b_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1223 res
|= __builtin_lasx_xvsrarni_b_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1224 res
|= __builtin_lasx_xvsrarni_b_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvsrarni_b_h' must be a constant integer}}
1228 v16i16
xvsrarni_h_w(v16i16 _1
, v16i16 _2
, int var
) {
1229 v16i16 res
= __builtin_lasx_xvsrarni_h_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1230 res
|= __builtin_lasx_xvsrarni_h_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1231 res
|= __builtin_lasx_xvsrarni_h_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvsrarni_h_w' must be a constant integer}}
1235 v8i32
xvsrarni_w_d(v8i32 _1
, v8i32 _2
, int var
) {
1236 v8i32 res
= __builtin_lasx_xvsrarni_w_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1237 res
|= __builtin_lasx_xvsrarni_w_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1238 res
|= __builtin_lasx_xvsrarni_w_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvsrarni_w_d' must be a constant integer}}
1242 v4i64
xvsrarni_d_q(v4i64 _1
, v4i64 _2
, int var
) {
1243 v4i64 res
= __builtin_lasx_xvsrarni_d_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1244 res
|= __builtin_lasx_xvsrarni_d_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1245 res
|= __builtin_lasx_xvsrarni_d_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvsrarni_d_q' must be a constant integer}}
1249 v32i8
xvssrani_b_h(v32i8 _1
, v32i8 _2
, int var
) {
1250 v32i8 res
= __builtin_lasx_xvssrani_b_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1251 res
|= __builtin_lasx_xvssrani_b_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1252 res
|= __builtin_lasx_xvssrani_b_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrani_b_h' must be a constant integer}}
1256 v16i16
xvssrani_h_w(v16i16 _1
, v16i16 _2
, int var
) {
1257 v16i16 res
= __builtin_lasx_xvssrani_h_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1258 res
|= __builtin_lasx_xvssrani_h_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1259 res
|= __builtin_lasx_xvssrani_h_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrani_h_w' must be a constant integer}}
1263 v8i32
xvssrani_w_d(v8i32 _1
, v8i32 _2
, int var
) {
1264 v8i32 res
= __builtin_lasx_xvssrani_w_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1265 res
|= __builtin_lasx_xvssrani_w_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1266 res
|= __builtin_lasx_xvssrani_w_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrani_w_d' must be a constant integer}}
1270 v4i64
xvssrani_d_q(v4i64 _1
, v4i64 _2
, int var
) {
1271 v4i64 res
= __builtin_lasx_xvssrani_d_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1272 res
|= __builtin_lasx_xvssrani_d_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1273 res
|= __builtin_lasx_xvssrani_d_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrani_d_q' must be a constant integer}}
1277 v32u8
xvssrani_bu_h(v32u8 _1
, v32i8 _2
, int var
) {
1278 v32u8 res
= __builtin_lasx_xvssrani_bu_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1279 res
|= __builtin_lasx_xvssrani_bu_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1280 res
|= __builtin_lasx_xvssrani_bu_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrani_bu_h' must be a constant integer}}
1284 v16u16
xvssrani_hu_w(v16u16 _1
, v16i16 _2
, int var
) {
1285 v16u16 res
= __builtin_lasx_xvssrani_hu_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1286 res
|= __builtin_lasx_xvssrani_hu_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1287 res
|= __builtin_lasx_xvssrani_hu_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrani_hu_w' must be a constant integer}}
1291 v8u32
xvssrani_wu_d(v8u32 _1
, v8i32 _2
, int var
) {
1292 v8u32 res
= __builtin_lasx_xvssrani_wu_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1293 res
|= __builtin_lasx_xvssrani_wu_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1294 res
|= __builtin_lasx_xvssrani_wu_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrani_wu_d' must be a constant integer}}
1298 v4u64
xvssrani_du_q(v4u64 _1
, v4i64 _2
, int var
) {
1299 v4u64 res
= __builtin_lasx_xvssrani_du_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1300 res
|= __builtin_lasx_xvssrani_du_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1301 res
|= __builtin_lasx_xvssrani_du_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrani_du_q' must be a constant integer}}
1305 v32i8
xvssrarni_b_h(v32i8 _1
, v32i8 _2
, int var
) {
1306 v32i8 res
= __builtin_lasx_xvssrarni_b_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1307 res
|= __builtin_lasx_xvssrarni_b_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1308 res
|= __builtin_lasx_xvssrarni_b_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrarni_b_h' must be a constant integer}}
1312 v16i16
xvssrarni_h_w(v16i16 _1
, v16i16 _2
, int var
) {
1313 v16i16 res
= __builtin_lasx_xvssrarni_h_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1314 res
|= __builtin_lasx_xvssrarni_h_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1315 res
|= __builtin_lasx_xvssrarni_h_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrarni_h_w' must be a constant integer}}
1319 v8i32
xvssrarni_w_d(v8i32 _1
, v8i32 _2
, int var
) {
1320 v8i32 res
= __builtin_lasx_xvssrarni_w_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1321 res
|= __builtin_lasx_xvssrarni_w_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1322 res
|= __builtin_lasx_xvssrarni_w_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrarni_w_d' must be a constant integer}}
1326 v4i64
xvssrarni_d_q(v4i64 _1
, v4i64 _2
, int var
) {
1327 v4i64 res
= __builtin_lasx_xvssrarni_d_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1328 res
|= __builtin_lasx_xvssrarni_d_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1329 res
|= __builtin_lasx_xvssrarni_d_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrarni_d_q' must be a constant integer}}
1333 v32u8
xvssrarni_bu_h(v32u8 _1
, v32i8 _2
, int var
) {
1334 v32u8 res
= __builtin_lasx_xvssrarni_bu_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1335 res
|= __builtin_lasx_xvssrarni_bu_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1336 res
|= __builtin_lasx_xvssrarni_bu_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrarni_bu_h' must be a constant integer}}
1340 v16u16
xvssrarni_hu_w(v16u16 _1
, v16i16 _2
, int var
) {
1341 v16u16 res
= __builtin_lasx_xvssrarni_hu_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1342 res
|= __builtin_lasx_xvssrarni_hu_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1343 res
|= __builtin_lasx_xvssrarni_hu_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrarni_hu_w' must be a constant integer}}
1347 v8u32
xvssrarni_wu_d(v8u32 _1
, v8i32 _2
, int var
) {
1348 v8u32 res
= __builtin_lasx_xvssrarni_wu_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1349 res
|= __builtin_lasx_xvssrarni_wu_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1350 res
|= __builtin_lasx_xvssrarni_wu_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrarni_wu_d' must be a constant integer}}
1354 v4u64
xvssrarni_du_q(v4u64 _1
, v4i64 _2
, int var
) {
1355 v4u64 res
= __builtin_lasx_xvssrarni_du_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1356 res
|= __builtin_lasx_xvssrarni_du_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1357 res
|= __builtin_lasx_xvssrarni_du_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lasx_xvssrarni_du_q' must be a constant integer}}
1361 v4f64
xvpickve_d_f(v4f64 _1
, int var
) {
1362 v4f64 res
= __builtin_lasx_xvpickve_d_f(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}}
1363 res
+= __builtin_lasx_xvpickve_d_f(_1
, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}}
1364 res
+= __builtin_lasx_xvpickve_d_f(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvpickve_d_f' must be a constant integer}}
1368 v8f32
xvpickve_w_f(v8f32 _1
, int var
) {
1369 v8f32 res
= __builtin_lasx_xvpickve_w_f(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
1370 res
+= __builtin_lasx_xvpickve_w_f(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
1371 res
+= __builtin_lasx_xvpickve_w_f(_1
, var
); // expected-error {{argument to '__builtin_lasx_xvpickve_w_f' must be a constant integer}}
1375 v32i8
xvrepli_b(int var
) {
1376 v32i8 res
= __builtin_lasx_xvrepli_b(-513); // expected-error {{argument value -513 is outside the valid range [-512, 511]}}
1377 res
|= __builtin_lasx_xvrepli_b(512); // expected-error {{argument value 512 is outside the valid range [-512, 511]}}
1378 res
|= __builtin_lasx_xvrepli_b(var
); // expected-error {{argument to '__builtin_lasx_xvrepli_b' must be a constant integer}}
1382 v4i64
xvrepli_d(int var
) {
1383 v4i64 res
= __builtin_lasx_xvrepli_d(-513); // expected-error {{argument value -513 is outside the valid range [-512, 511]}}
1384 res
|= __builtin_lasx_xvrepli_d(512); // expected-error {{argument value 512 is outside the valid range [-512, 511]}}
1385 res
|= __builtin_lasx_xvrepli_d(var
); // expected-error {{argument to '__builtin_lasx_xvrepli_d' must be a constant integer}}
1389 v16i16
xvrepli_h(int var
) {
1390 v16i16 res
= __builtin_lasx_xvrepli_h(-513); // expected-error {{argument value -513 is outside the valid range [-512, 511]}}
1391 res
|= __builtin_lasx_xvrepli_h(512); // expected-error {{argument value 512 is outside the valid range [-512, 511]}}
1392 res
|= __builtin_lasx_xvrepli_h(var
); // expected-error {{argument to '__builtin_lasx_xvrepli_h' must be a constant integer}}
1396 v8i32
xvrepli_w(int var
) {
1397 v8i32 res
= __builtin_lasx_xvrepli_w(-513); // expected-error {{argument value -513 is outside the valid range [-512, 511]}}
1398 res
|= __builtin_lasx_xvrepli_w(512); // expected-error {{argument value 512 is outside the valid range [-512, 511]}}
1399 res
|= __builtin_lasx_xvrepli_w(var
); // expected-error {{argument to '__builtin_lasx_xvrepli_w' must be a constant integer}}