1 // RUN: %clang_cc1 -triple loongarch64 -target-feature +lsx -verify %s
3 typedef signed char v16i8
__attribute__((vector_size(16), aligned(16)));
4 typedef signed char v16i8_b
__attribute__((vector_size(16), aligned(1)));
5 typedef unsigned char v16u8
__attribute__((vector_size(16), aligned(16)));
6 typedef unsigned char v16u8_b
__attribute__((vector_size(16), aligned(1)));
7 typedef short v8i16
__attribute__((vector_size(16), aligned(16)));
8 typedef short v8i16_h
__attribute__((vector_size(16), aligned(2)));
9 typedef unsigned short v8u16
__attribute__((vector_size(16), aligned(16)));
10 typedef unsigned short v8u16_h
__attribute__((vector_size(16), aligned(2)));
11 typedef int v4i32
__attribute__((vector_size(16), aligned(16)));
12 typedef int v4i32_w
__attribute__((vector_size(16), aligned(4)));
13 typedef unsigned int v4u32
__attribute__((vector_size(16), aligned(16)));
14 typedef unsigned int v4u32_w
__attribute__((vector_size(16), aligned(4)));
15 typedef long long v2i64
__attribute__((vector_size(16), aligned(16)));
16 typedef long long v2i64_d
__attribute__((vector_size(16), aligned(8)));
17 typedef unsigned long long v2u64
__attribute__((vector_size(16), aligned(16)));
18 typedef unsigned long long v2u64_d
__attribute__((vector_size(16), aligned(8)));
19 typedef float v4f32
__attribute__((vector_size(16), aligned(16)));
20 typedef float v4f32_w
__attribute__((vector_size(16), aligned(4)));
21 typedef double v2f64
__attribute__((vector_size(16), aligned(16)));
22 typedef double v2f64_d
__attribute__((vector_size(16), aligned(8)));
24 typedef long long __m128i
__attribute__((__vector_size__(16), __may_alias__
));
25 typedef float __m128
__attribute__((__vector_size__(16), __may_alias__
));
26 typedef double __m128d
__attribute__((__vector_size__(16), __may_alias__
));
28 v16i8
vslli_b(v16i8 _1
, int var
) {
29 v16i8 res
= __builtin_lsx_vslli_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
30 res
|= __builtin_lsx_vslli_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
31 res
|= __builtin_lsx_vslli_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslli_b' must be a constant integer}}
35 v8i16
vslli_h(v8i16 _1
, int var
) {
36 v8i16 res
= __builtin_lsx_vslli_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
37 res
|= __builtin_lsx_vslli_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
38 res
|= __builtin_lsx_vslli_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslli_h' must be a constant integer}}
42 v4i32
vslli_w(v4i32 _1
, int var
) {
43 v4i32 res
= __builtin_lsx_vslli_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
44 res
|= __builtin_lsx_vslli_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
45 res
|= __builtin_lsx_vslli_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslli_w' must be a constant integer}}
49 v2i64
vslli_d(v2i64 _1
, int var
) {
50 v2i64 res
= __builtin_lsx_vslli_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
51 res
|= __builtin_lsx_vslli_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
52 res
|= __builtin_lsx_vslli_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslli_d' must be a constant integer}}
56 v16i8
vsrai_b(v16i8 _1
, int var
) {
57 v16i8 res
= __builtin_lsx_vsrai_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
58 res
|= __builtin_lsx_vsrai_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
59 res
|= __builtin_lsx_vsrai_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrai_b' must be a constant integer}}
63 v8i16
vsrai_h(v8i16 _1
, int var
) {
64 v8i16 res
= __builtin_lsx_vsrai_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
65 res
|= __builtin_lsx_vsrai_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
66 res
|= __builtin_lsx_vsrai_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrai_h' must be a constant integer}}
70 v4i32
vsrai_w(v4i32 _1
, int var
) {
71 v4i32 res
= __builtin_lsx_vsrai_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
72 res
|= __builtin_lsx_vsrai_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
73 res
|= __builtin_lsx_vsrai_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrai_w' must be a constant integer}}
77 v2i64
vsrai_d(v2i64 _1
, int var
) {
78 v2i64 res
= __builtin_lsx_vsrai_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
79 res
|= __builtin_lsx_vsrai_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
80 res
|= __builtin_lsx_vsrai_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrai_d' must be a constant integer}}
84 v16i8
vsrari_b(v16i8 _1
, int var
) {
85 v16i8 res
= __builtin_lsx_vsrari_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
86 res
|= __builtin_lsx_vsrari_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
87 res
|= __builtin_lsx_vsrari_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrari_b' must be a constant integer}}
91 v8i16
vsrari_h(v8i16 _1
, int var
) {
92 v8i16 res
= __builtin_lsx_vsrari_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
93 res
|= __builtin_lsx_vsrari_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
94 res
|= __builtin_lsx_vsrari_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrari_h' must be a constant integer}}
98 v4i32
vsrari_w(v4i32 _1
, int var
) {
99 v4i32 res
= __builtin_lsx_vsrari_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
100 res
|= __builtin_lsx_vsrari_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
101 res
|= __builtin_lsx_vsrari_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrari_w' must be a constant integer}}
105 v2i64
vsrari_d(v2i64 _1
, int var
) {
106 v2i64 res
= __builtin_lsx_vsrari_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
107 res
|= __builtin_lsx_vsrari_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
108 res
|= __builtin_lsx_vsrari_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrari_d' must be a constant integer}}
112 v16i8
vsrli_b(v16i8 _1
, int var
) {
113 v16i8 res
= __builtin_lsx_vsrli_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
114 res
|= __builtin_lsx_vsrli_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
115 res
|= __builtin_lsx_vsrli_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrli_b' must be a constant integer}}
119 v8i16
vsrli_h(v8i16 _1
, int var
) {
120 v8i16 res
= __builtin_lsx_vsrli_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
121 res
|= __builtin_lsx_vsrli_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
122 res
|= __builtin_lsx_vsrli_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrli_h' must be a constant integer}}
126 v4i32
vsrli_w(v4i32 _1
, int var
) {
127 v4i32 res
= __builtin_lsx_vsrli_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
128 res
|= __builtin_lsx_vsrli_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
129 res
|= __builtin_lsx_vsrli_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrli_w' must be a constant integer}}
133 v2i64
vsrli_d(v2i64 _1
, int var
) {
134 v2i64 res
= __builtin_lsx_vsrli_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
135 res
|= __builtin_lsx_vsrli_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
136 res
|= __builtin_lsx_vsrli_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrli_d' must be a constant integer}}
140 v16i8
vsrlri_b(v16i8 _1
, int var
) {
141 v16i8 res
= __builtin_lsx_vsrlri_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
142 res
|= __builtin_lsx_vsrlri_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
143 res
|= __builtin_lsx_vsrlri_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrlri_b' must be a constant integer}}
147 v8i16
vsrlri_h(v8i16 _1
, int var
) {
148 v8i16 res
= __builtin_lsx_vsrlri_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
149 res
|= __builtin_lsx_vsrlri_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
150 res
|= __builtin_lsx_vsrlri_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrlri_h' must be a constant integer}}
154 v4i32
vsrlri_w(v4i32 _1
, int var
) {
155 v4i32 res
= __builtin_lsx_vsrlri_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
156 res
|= __builtin_lsx_vsrlri_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
157 res
|= __builtin_lsx_vsrlri_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrlri_w' must be a constant integer}}
161 v2i64
vsrlri_d(v2i64 _1
, int var
) {
162 v2i64 res
= __builtin_lsx_vsrlri_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
163 res
|= __builtin_lsx_vsrlri_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
164 res
|= __builtin_lsx_vsrlri_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrlri_d' must be a constant integer}}
168 v16u8
vbitclri_b(v16u8 _1
, int var
) {
169 v16u8 res
= __builtin_lsx_vbitclri_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
170 res
|= __builtin_lsx_vbitclri_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
171 res
|= __builtin_lsx_vbitclri_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbitclri_b' must be a constant integer}}
175 v8u16
vbitclri_h(v8u16 _1
, int var
) {
176 v8u16 res
= __builtin_lsx_vbitclri_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
177 res
|= __builtin_lsx_vbitclri_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
178 res
|= __builtin_lsx_vbitclri_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbitclri_h' must be a constant integer}}
182 v4u32
vbitclri_w(v4u32 _1
, int var
) {
183 v4u32 res
= __builtin_lsx_vbitclri_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
184 res
|= __builtin_lsx_vbitclri_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
185 res
|= __builtin_lsx_vbitclri_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbitclri_w' must be a constant integer}}
189 v2u64
vbitclri_d(v2u64 _1
, int var
) {
190 v2u64 res
= __builtin_lsx_vbitclri_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
191 res
|= __builtin_lsx_vbitclri_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
192 res
|= __builtin_lsx_vbitclri_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbitclri_d' must be a constant integer}}
196 v16u8
vbitseti_b(v16u8 _1
, int var
) {
197 v16u8 res
= __builtin_lsx_vbitseti_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
198 res
|= __builtin_lsx_vbitseti_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
199 res
|= __builtin_lsx_vbitseti_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbitseti_b' must be a constant integer}}
203 v8u16
vbitseti_h(v8u16 _1
, int var
) {
204 v8u16 res
= __builtin_lsx_vbitseti_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
205 res
|= __builtin_lsx_vbitseti_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
206 res
|= __builtin_lsx_vbitseti_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbitseti_h' must be a constant integer}}
210 v4u32
vbitseti_w(v4u32 _1
, int var
) {
211 v4u32 res
= __builtin_lsx_vbitseti_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
212 res
|= __builtin_lsx_vbitseti_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
213 res
|= __builtin_lsx_vbitseti_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbitseti_w' must be a constant integer}}
217 v2u64
vbitseti_d(v2u64 _1
, int var
) {
218 v2u64 res
= __builtin_lsx_vbitseti_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
219 res
|= __builtin_lsx_vbitseti_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
220 res
|= __builtin_lsx_vbitseti_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbitseti_d' must be a constant integer}}
224 v16u8
vbitrevi_b(v16u8 _1
, int var
) {
225 v16u8 res
= __builtin_lsx_vbitrevi_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
226 res
|= __builtin_lsx_vbitrevi_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
227 res
|= __builtin_lsx_vbitrevi_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbitrevi_b' must be a constant integer}}
231 v8u16
vbitrevi_h(v8u16 _1
, int var
) {
232 v8u16 res
= __builtin_lsx_vbitrevi_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
233 res
|= __builtin_lsx_vbitrevi_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
234 res
|= __builtin_lsx_vbitrevi_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbitrevi_h' must be a constant integer}}
238 v4u32
vbitrevi_w(v4u32 _1
, int var
) {
239 v4u32 res
= __builtin_lsx_vbitrevi_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
240 res
|= __builtin_lsx_vbitrevi_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
241 res
|= __builtin_lsx_vbitrevi_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbitrevi_w' must be a constant integer}}
245 v2u64
vbitrevi_d(v2u64 _1
, int var
) {
246 v2u64 res
= __builtin_lsx_vbitrevi_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
247 res
|= __builtin_lsx_vbitrevi_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
248 res
|= __builtin_lsx_vbitrevi_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbitrevi_d' must be a constant integer}}
252 v16i8
vaddi_bu(v16i8 _1
, int var
) {
253 v16i8 res
= __builtin_lsx_vaddi_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
254 res
|= __builtin_lsx_vaddi_bu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
255 res
|= __builtin_lsx_vaddi_bu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vaddi_bu' must be a constant integer}}
259 v8i16
vaddi_hu(v8i16 _1
, int var
) {
260 v8i16 res
= __builtin_lsx_vaddi_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
261 res
|= __builtin_lsx_vaddi_hu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
262 res
|= __builtin_lsx_vaddi_hu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vaddi_hu' must be a constant integer}}
266 v4i32
vaddi_wu(v4i32 _1
, int var
) {
267 v4i32 res
= __builtin_lsx_vaddi_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
268 res
|= __builtin_lsx_vaddi_wu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
269 res
|= __builtin_lsx_vaddi_wu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vaddi_wu' must be a constant integer}}
273 v2i64
vaddi_du(v2i64 _1
, int var
) {
274 v2i64 res
= __builtin_lsx_vaddi_du(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
275 res
|= __builtin_lsx_vaddi_du(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
276 res
|= __builtin_lsx_vaddi_du(_1
, var
); // expected-error {{argument to '__builtin_lsx_vaddi_du' must be a constant integer}}
280 v16i8
vsubi_bu(v16i8 _1
, int var
) {
281 v16i8 res
= __builtin_lsx_vsubi_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
282 res
|= __builtin_lsx_vsubi_bu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
283 res
|= __builtin_lsx_vsubi_bu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsubi_bu' must be a constant integer}}
287 v8i16
vsubi_hu(v8i16 _1
, int var
) {
288 v8i16 res
= __builtin_lsx_vsubi_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
289 res
|= __builtin_lsx_vsubi_hu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
290 res
|= __builtin_lsx_vsubi_hu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsubi_hu' must be a constant integer}}
294 v4i32
vsubi_wu(v4i32 _1
, int var
) {
295 v4i32 res
= __builtin_lsx_vsubi_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
296 res
|= __builtin_lsx_vsubi_wu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
297 res
|= __builtin_lsx_vsubi_wu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsubi_wu' must be a constant integer}}
301 v2i64
vsubi_du(v2i64 _1
, int var
) {
302 v2i64 res
= __builtin_lsx_vsubi_du(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
303 res
|= __builtin_lsx_vsubi_du(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
304 res
|= __builtin_lsx_vsubi_du(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsubi_du' must be a constant integer}}
308 v16i8
vmaxi_b(v16i8 _1
, int var
) {
309 v16i8 res
= __builtin_lsx_vmaxi_b(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
310 res
|= __builtin_lsx_vmaxi_b(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
311 res
|= __builtin_lsx_vmaxi_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmaxi_b' must be a constant integer}}
315 v8i16
vmaxi_h(v8i16 _1
, int var
) {
316 v8i16 res
= __builtin_lsx_vmaxi_h(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
317 res
|= __builtin_lsx_vmaxi_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
318 res
|= __builtin_lsx_vmaxi_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmaxi_h' must be a constant integer}}
322 v4i32
vmaxi_w(v4i32 _1
, int var
) {
323 v4i32 res
= __builtin_lsx_vmaxi_w(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
324 res
|= __builtin_lsx_vmaxi_w(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
325 res
|= __builtin_lsx_vmaxi_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmaxi_w' must be a constant integer}}
329 v2i64
vmaxi_d(v2i64 _1
, int var
) {
330 v2i64 res
= __builtin_lsx_vmaxi_d(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
331 res
|= __builtin_lsx_vmaxi_d(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
332 res
|= __builtin_lsx_vmaxi_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmaxi_d' must be a constant integer}}
336 v16u8
vmaxi_bu(v16u8 _1
, int var
) {
337 v16u8 res
= __builtin_lsx_vmaxi_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
338 res
|= __builtin_lsx_vmaxi_bu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
339 res
|= __builtin_lsx_vmaxi_bu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmaxi_bu' must be a constant integer}}
343 v8u16
vmaxi_hu(v8u16 _1
, int var
) {
344 v8u16 res
= __builtin_lsx_vmaxi_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
345 res
|= __builtin_lsx_vmaxi_hu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
346 res
|= __builtin_lsx_vmaxi_hu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmaxi_hu' must be a constant integer}}
350 v4u32
vmaxi_wu(v4u32 _1
, int var
) {
351 v4u32 res
= __builtin_lsx_vmaxi_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
352 res
|= __builtin_lsx_vmaxi_wu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
353 res
|= __builtin_lsx_vmaxi_wu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmaxi_wu' must be a constant integer}}
357 v2u64
vmaxi_du(v2u64 _1
, int var
) {
358 v2u64 res
= __builtin_lsx_vmaxi_du(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
359 res
|= __builtin_lsx_vmaxi_du(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
360 res
|= __builtin_lsx_vmaxi_du(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmaxi_du' must be a constant integer}}
364 v16i8
vmini_b(v16i8 _1
, int var
) {
365 v16i8 res
= __builtin_lsx_vmini_b(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
366 res
|= __builtin_lsx_vmini_b(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
367 res
|= __builtin_lsx_vmini_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmini_b' must be a constant integer}}
371 v8i16
vmini_h(v8i16 _1
, int var
) {
372 v8i16 res
= __builtin_lsx_vmini_h(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
373 res
|= __builtin_lsx_vmini_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
374 res
|= __builtin_lsx_vmini_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmini_h' must be a constant integer}}}
378 v4i32
vmini_w(v4i32 _1
, int var
) {
379 v4i32 res
= __builtin_lsx_vmini_w(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
380 res
|= __builtin_lsx_vmini_w(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
381 res
|= __builtin_lsx_vmini_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmini_w' must be a constant integer}}
385 v2i64
vmini_d(v2i64 _1
, int var
) {
386 v2i64 res
= __builtin_lsx_vmini_d(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
387 res
|= __builtin_lsx_vmini_d(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
388 res
|= __builtin_lsx_vmini_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmini_d' must be a constant integer}}
392 v16u8
vmini_bu(v16u8 _1
, int var
) {
393 v16u8 res
= __builtin_lsx_vmini_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
394 res
|= __builtin_lsx_vmini_bu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
395 res
|= __builtin_lsx_vmini_bu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmini_bu' must be a constant integer}}
399 v8u16
vmini_hu(v8u16 _1
, int var
) {
400 v8u16 res
= __builtin_lsx_vmini_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
401 res
|= __builtin_lsx_vmini_hu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
402 res
|= __builtin_lsx_vmini_hu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmini_hu' must be a constant integer}}
406 v4u32
vmini_wu(v4u32 _1
, int var
) {
407 v4u32 res
= __builtin_lsx_vmini_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
408 res
|= __builtin_lsx_vmini_wu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
409 res
|= __builtin_lsx_vmini_wu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmini_wu' must be a constant integer}}
413 v2u64
vmini_du(v2u64 _1
, int var
) {
414 v2u64 res
= __builtin_lsx_vmini_du(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
415 res
|= __builtin_lsx_vmini_du(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
416 res
|= __builtin_lsx_vmini_du(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmini_du' must be a constant integer}}
420 v16i8
vseqi_b(v16i8 _1
, int var
) {
421 v16i8 res
= __builtin_lsx_vseqi_b(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
422 res
|= __builtin_lsx_vseqi_b(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
423 res
|= __builtin_lsx_vseqi_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vseqi_b' must be a constant integer}}
427 v8i16
vseqi_h(v8i16 _1
, int var
) {
428 v8i16 res
= __builtin_lsx_vseqi_h(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
429 res
|= __builtin_lsx_vseqi_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
430 res
|= __builtin_lsx_vseqi_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vseqi_h' must be a constant integer}}
434 v4i32
vseqi_w(v4i32 _1
, int var
) {
435 v4i32 res
= __builtin_lsx_vseqi_w(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
436 res
|= __builtin_lsx_vseqi_w(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
437 res
|= __builtin_lsx_vseqi_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vseqi_w' must be a constant integer}}
441 v2i64
vseqi_d(v2i64 _1
, int var
) {
442 v2i64 res
= __builtin_lsx_vseqi_d(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
443 res
|= __builtin_lsx_vseqi_d(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
444 res
|= __builtin_lsx_vseqi_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vseqi_d' must be a constant integer}}
448 v16i8
vslti_b(v16i8 _1
, int var
) {
449 v16i8 res
= __builtin_lsx_vslti_b(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
450 res
|= __builtin_lsx_vslti_b(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
451 res
|= __builtin_lsx_vslti_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslti_b' must be a constant integer}}
455 v8i16
vslti_h(v8i16 _1
, int var
) {
456 v8i16 res
= __builtin_lsx_vslti_h(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
457 res
|= __builtin_lsx_vslti_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
458 res
|= __builtin_lsx_vslti_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslti_h' must be a constant integer}}
462 v4i32
vslti_w(v4i32 _1
, int var
) {
463 v4i32 res
= __builtin_lsx_vslti_w(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
464 res
|= __builtin_lsx_vslti_w(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
465 res
|= __builtin_lsx_vslti_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslti_w' must be a constant integer}}
469 v2i64
vslti_d(v2i64 _1
, int var
) {
470 v2i64 res
= __builtin_lsx_vslti_d(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
471 res
|= __builtin_lsx_vslti_d(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
472 res
|= __builtin_lsx_vslti_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslti_d' must be a constant integer}}
476 v16i8
vslti_bu(v16u8 _1
, int var
) {
477 v16i8 res
= __builtin_lsx_vslti_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
478 res
|= __builtin_lsx_vslti_bu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
479 res
|= __builtin_lsx_vslti_bu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslti_bu' must be a constant integer}}
483 v8i16
vslti_hu(v8u16 _1
, int var
) {
484 v8i16 res
= __builtin_lsx_vslti_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
485 res
|= __builtin_lsx_vslti_hu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
486 res
|= __builtin_lsx_vslti_hu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslti_hu' must be a constant integer}}
490 v4i32
vslti_wu(v4u32 _1
, int var
) {
491 v4i32 res
= __builtin_lsx_vslti_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
492 res
|= __builtin_lsx_vslti_wu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
493 res
|= __builtin_lsx_vslti_wu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslti_wu' must be a constant integer}}
497 v2i64
vslti_du(v2u64 _1
, int var
) {
498 v2i64 res
= __builtin_lsx_vslti_du(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
499 res
|= __builtin_lsx_vslti_du(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
500 res
|= __builtin_lsx_vslti_du(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslti_du' must be a constant integer}}
504 v16i8
vslei_b(v16i8 _1
, int var
) {
505 v16i8 res
= __builtin_lsx_vslei_b(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
506 res
|= __builtin_lsx_vslei_b(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
507 res
|= __builtin_lsx_vslei_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslei_b' must be a constant integer}}
511 v8i16
vslei_h(v8i16 _1
, int var
) {
512 v8i16 res
= __builtin_lsx_vslei_h(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
513 res
|= __builtin_lsx_vslei_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
514 res
|= __builtin_lsx_vslei_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslei_h' must be a constant integer}}
518 v4i32
vslei_w(v4i32 _1
, int var
) {
519 v4i32 res
= __builtin_lsx_vslei_w(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
520 res
|= __builtin_lsx_vslei_w(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
521 res
|= __builtin_lsx_vslei_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslei_w' must be a constant integer}}
525 v2i64
vslei_d(v2i64 _1
, int var
) {
526 v2i64 res
= __builtin_lsx_vslei_d(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
527 res
|= __builtin_lsx_vslei_d(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
528 res
|= __builtin_lsx_vslei_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslei_d' must be a constant integer}}
532 v16i8
vslei_bu(v16u8 _1
, int var
) {
533 v16i8 res
= __builtin_lsx_vslei_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
534 res
|= __builtin_lsx_vslei_bu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
535 res
|= __builtin_lsx_vslei_bu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslei_bu' must be a constant integer}}
539 v8i16
vslei_hu(v8u16 _1
, int var
) {
540 v8i16 res
= __builtin_lsx_vslei_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
541 res
|= __builtin_lsx_vslei_hu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
542 res
|= __builtin_lsx_vslei_hu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslei_hu' must be a constant integer}}
546 v4i32
vslei_wu(v4u32 _1
, int var
) {
547 v4i32 res
= __builtin_lsx_vslei_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
548 res
|= __builtin_lsx_vslei_wu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
549 res
|= __builtin_lsx_vslei_wu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslei_wu' must be a constant integer}}
553 v2i64
vslei_du(v2u64 _1
, int var
) {
554 v2i64 res
= __builtin_lsx_vslei_du(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
555 res
|= __builtin_lsx_vslei_du(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
556 res
|= __builtin_lsx_vslei_du(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslei_du' must be a constant integer}}
560 v16i8
vsat_b(v16i8 _1
, int var
) {
561 v16i8 res
= __builtin_lsx_vsat_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
562 res
|= __builtin_lsx_vsat_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
563 res
|= __builtin_lsx_vsat_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsat_b' must be a constant integer}}
567 v8i16
vsat_h(v8i16 _1
, int var
) {
568 v8i16 res
= __builtin_lsx_vsat_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
569 res
|= __builtin_lsx_vsat_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
570 res
|= __builtin_lsx_vsat_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsat_h' must be a constant integer}}
574 v4i32
vsat_w(v4i32 _1
, int var
) {
575 v4i32 res
= __builtin_lsx_vsat_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
576 res
|= __builtin_lsx_vsat_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
577 res
|= __builtin_lsx_vsat_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsat_w' must be a constant integer}}
581 v2i64
vsat_d(v2i64 _1
, int var
) {
582 v2i64 res
= __builtin_lsx_vsat_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
583 res
|= __builtin_lsx_vsat_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
584 res
|= __builtin_lsx_vsat_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsat_d' must be a constant integer}}
588 v16u8
vsat_bu(v16u8 _1
, int var
) {
589 v16u8 res
= __builtin_lsx_vsat_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
590 res
|= __builtin_lsx_vsat_bu(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
591 res
|= __builtin_lsx_vsat_bu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsat_bu' must be a constant integer}}
595 v8u16
vsat_hu(v8u16 _1
, int var
) {
596 v8u16 res
= __builtin_lsx_vsat_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
597 res
|= __builtin_lsx_vsat_hu(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
598 res
|= __builtin_lsx_vsat_hu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsat_hu' must be a constant integer}}
602 v4u32
vsat_wu(v4u32 _1
, int var
) {
603 v4u32 res
= __builtin_lsx_vsat_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
604 res
|= __builtin_lsx_vsat_wu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
605 res
|= __builtin_lsx_vsat_wu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsat_wu' must be a constant integer}}
609 v2u64
vsat_du(v2u64 _1
, int var
) {
610 v2u64 res
= __builtin_lsx_vsat_du(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
611 res
|= __builtin_lsx_vsat_du(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
612 res
|= __builtin_lsx_vsat_du(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsat_du' must be a constant integer}}
616 v16i8
vreplvei_b(v16i8 _1
, int var
) {
617 v16i8 res
= __builtin_lsx_vreplvei_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
618 res
|= __builtin_lsx_vreplvei_b(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
619 res
|= __builtin_lsx_vreplvei_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vreplvei_b' must be a constant integer}}
623 v8i16
vreplvei_h(v8i16 _1
, int var
) {
624 v8i16 res
= __builtin_lsx_vreplvei_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
625 res
|= __builtin_lsx_vreplvei_h(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
626 res
|= __builtin_lsx_vreplvei_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vreplvei_h' must be a constant integer}}
630 v4i32
vreplvei_w(v4i32 _1
, int var
) {
631 v4i32 res
= __builtin_lsx_vreplvei_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}}
632 res
|= __builtin_lsx_vreplvei_w(_1
, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}}
633 res
|= __builtin_lsx_vreplvei_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vreplvei_w' must be a constant integer}}
637 v2i64
vreplvei_d(v2i64 _1
, int var
) {
638 v2i64 res
= __builtin_lsx_vreplvei_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 1]}}
639 res
|= __builtin_lsx_vreplvei_d(_1
, 2); // expected-error {{argument value 2 is outside the valid range [0, 1]}}
640 res
|= __builtin_lsx_vreplvei_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vreplvei_d' must be a constant integer}}
644 v16u8
vandi_b(v16u8 _1
, int var
) {
645 v16u8 res
= __builtin_lsx_vandi_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
646 res
|= __builtin_lsx_vandi_b(_1
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
647 res
|= __builtin_lsx_vandi_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vandi_b' must be a constant integer}}
651 v16u8
vori_b(v16u8 _1
, int var
) {
652 v16u8 res
= __builtin_lsx_vori_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
653 res
|= __builtin_lsx_vori_b(_1
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
654 res
|= __builtin_lsx_vori_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vori_b' must be a constant integer}}
658 v16u8
vnori_b(v16u8 _1
, int var
) {
659 v16u8 res
= __builtin_lsx_vnori_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
660 res
|= __builtin_lsx_vnori_b(_1
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
661 res
|= __builtin_lsx_vnori_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vnori_b' must be a constant integer}}
665 v16u8
vxori_b(v16u8 _1
, int var
) {
666 v16u8 res
= __builtin_lsx_vxori_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
667 res
|= __builtin_lsx_vxori_b(_1
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
668 res
|= __builtin_lsx_vxori_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vxori_b' must be a constant integer}}
672 v16u8
vbitseli_b(v16u8 _1
, v16u8 _2
, int var
) {
673 v16u8 res
= __builtin_lsx_vbitseli_b(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
674 res
|= __builtin_lsx_vbitseli_b(_1
, _2
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
675 res
|= __builtin_lsx_vbitseli_b(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vbitseli_b' must be a constant integer}}
679 v16i8
vshuf4i_b(v16i8 _1
, int var
) {
680 v16i8 res
= __builtin_lsx_vshuf4i_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
681 res
|= __builtin_lsx_vshuf4i_b(_1
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
682 res
|= __builtin_lsx_vshuf4i_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vshuf4i_b' must be a constant integer}}
686 v8i16
vshuf4i_h(v8i16 _1
, int var
) {
687 v8i16 res
= __builtin_lsx_vshuf4i_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
688 res
|= __builtin_lsx_vshuf4i_h(_1
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
689 res
|= __builtin_lsx_vshuf4i_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vshuf4i_h' must be a constant integer}}
693 v4i32
vshuf4i_w(v4i32 _1
, int var
) {
694 v4i32 res
= __builtin_lsx_vshuf4i_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
695 res
|= __builtin_lsx_vshuf4i_w(_1
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
696 res
|= __builtin_lsx_vshuf4i_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vshuf4i_w' must be a constant integer}}
700 int vpickve2gr_b(v16i8 _1
, int var
) {
701 int res
= __builtin_lsx_vpickve2gr_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
702 res
|= __builtin_lsx_vpickve2gr_b(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
703 res
|= __builtin_lsx_vpickve2gr_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vpickve2gr_b' must be a constant integer}}
707 int vpickve2gr_h(v8i16 _1
, int var
) {
708 int res
= __builtin_lsx_vpickve2gr_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
709 res
|= __builtin_lsx_vpickve2gr_h(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
710 res
|= __builtin_lsx_vpickve2gr_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vpickve2gr_h' must be a constant integer}}
714 int vpickve2gr_w(v4i32 _1
, int var
) {
715 int res
= __builtin_lsx_vpickve2gr_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}}
716 res
|= __builtin_lsx_vpickve2gr_w(_1
, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}}
717 res
|= __builtin_lsx_vpickve2gr_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vpickve2gr_w' must be a constant integer}}
721 long vpickve2gr_d(v2i64 _1
, int var
) {
722 long res
= __builtin_lsx_vpickve2gr_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 1]}}
723 res
|= __builtin_lsx_vpickve2gr_d(_1
, 2); // expected-error {{argument value 2 is outside the valid range [0, 1]}}
724 res
|= __builtin_lsx_vpickve2gr_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vpickve2gr_d' must be a constant integer}}
728 unsigned int vpickve2gr_bu(v16i8 _1
, int var
) {
729 unsigned int res
= __builtin_lsx_vpickve2gr_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
730 res
|= __builtin_lsx_vpickve2gr_bu(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
731 res
|= __builtin_lsx_vpickve2gr_bu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vpickve2gr_bu' must be a constant integer}}
735 unsigned int vpickve2gr_hu(v8i16 _1
, int var
) {
736 unsigned int res
= __builtin_lsx_vpickve2gr_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
737 res
|= __builtin_lsx_vpickve2gr_hu(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
738 res
|= __builtin_lsx_vpickve2gr_hu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vpickve2gr_hu' must be a constant integer}}
742 unsigned int vpickve2gr_wu(v4i32 _1
, int var
) {
743 unsigned int res
= __builtin_lsx_vpickve2gr_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}}
744 res
|= __builtin_lsx_vpickve2gr_wu(_1
, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}}
745 res
|= __builtin_lsx_vpickve2gr_wu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vpickve2gr_wu' must be a constant integer}}
749 unsigned long int vpickve2gr_du(v2i64 _1
, int var
) {
750 unsigned long int res
= __builtin_lsx_vpickve2gr_du(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 1]}}
751 res
|= __builtin_lsx_vpickve2gr_du(_1
, 2); // expected-error {{argument value 2 is outside the valid range [0, 1]}}
752 res
|= __builtin_lsx_vpickve2gr_du(_1
, var
); // expected-error {{argument to '__builtin_lsx_vpickve2gr_du' must be a constant integer}}
756 v16i8
vinsgr2vr_b(v16i8 _1
, int var
) {
757 v16i8 res
= __builtin_lsx_vinsgr2vr_b(_1
, 1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
758 res
|= __builtin_lsx_vinsgr2vr_b(_1
, 1, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
759 res
|= __builtin_lsx_vinsgr2vr_b(_1
, 1, var
); // expected-error {{argument to '__builtin_lsx_vinsgr2vr_b' must be a constant integer}}
763 v8i16
vinsgr2vr_h(v8i16 _1
, int var
) {
764 v8i16 res
= __builtin_lsx_vinsgr2vr_h(_1
, 1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
765 res
|= __builtin_lsx_vinsgr2vr_h(_1
, 1, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
766 res
|= __builtin_lsx_vinsgr2vr_h(_1
, 1, var
); // expected-error {{argument to '__builtin_lsx_vinsgr2vr_h' must be a constant integer}}
770 v4i32
vinsgr2vr_w(v4i32 _1
, int var
) {
771 v4i32 res
= __builtin_lsx_vinsgr2vr_w(_1
, 1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}}
772 res
|= __builtin_lsx_vinsgr2vr_w(_1
, 1, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}}
773 res
|= __builtin_lsx_vinsgr2vr_w(_1
, 1, var
); // expected-error {{argument to '__builtin_lsx_vinsgr2vr_w' must be a constant integer}}
777 v2i64
vinsgr2vr_d(v2i64 _1
, int var
) {
778 v2i64 res
= __builtin_lsx_vinsgr2vr_d(_1
, 1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 1]}}
779 res
|= __builtin_lsx_vinsgr2vr_d(_1
, 1, 2); // expected-error {{argument value 2 is outside the valid range [0, 1]}}
780 res
|= __builtin_lsx_vinsgr2vr_d(_1
, 1, var
); // expected-error {{argument to '__builtin_lsx_vinsgr2vr_d' must be a constant integer}}
784 v8i16
vsllwil_h_b(v16i8 _1
, int var
) {
785 v8i16 res
= __builtin_lsx_vsllwil_h_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
786 res
|= __builtin_lsx_vsllwil_h_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
787 res
|= __builtin_lsx_vsllwil_h_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsllwil_h_b' must be a constant integer}}
791 v4i32
vsllwil_w_h(v8i16 _1
, int var
) {
792 v4i32 res
= __builtin_lsx_vsllwil_w_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
793 res
|= __builtin_lsx_vsllwil_w_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
794 res
|= __builtin_lsx_vsllwil_w_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsllwil_w_h' must be a constant integer}}
798 v2i64
vsllwil_d_w(v4i32 _1
, int var
) {
799 v2i64 res
= __builtin_lsx_vsllwil_d_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
800 res
|= __builtin_lsx_vsllwil_d_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
801 res
|= __builtin_lsx_vsllwil_d_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsllwil_d_w' must be a constant integer}}
805 v8u16
vsllwil_hu_bu(v16u8 _1
, int var
) {
806 v8u16 res
= __builtin_lsx_vsllwil_hu_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
807 res
|= __builtin_lsx_vsllwil_hu_bu(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
808 res
|= __builtin_lsx_vsllwil_hu_bu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsllwil_hu_bu' must be a constant integer}}
812 v4u32
vsllwil_wu_hu(v8u16 _1
, int var
) {
813 v4u32 res
= __builtin_lsx_vsllwil_wu_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
814 res
|= __builtin_lsx_vsllwil_wu_hu(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
815 res
|= __builtin_lsx_vsllwil_wu_hu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsllwil_wu_hu' must be a constant integer}}
819 v2u64
vsllwil_du_wu(v4u32 _1
, int var
) {
820 v2u64 res
= __builtin_lsx_vsllwil_du_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
821 res
|= __builtin_lsx_vsllwil_du_wu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
822 res
|= __builtin_lsx_vsllwil_du_wu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsllwil_du_wu' must be a constant integer}}
826 v16i8
vfrstpi_b(v16i8 _1
, v16i8 _2
, int var
) {
827 v16i8 res
= __builtin_lsx_vfrstpi_b(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
828 res
|= __builtin_lsx_vfrstpi_b(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
829 res
|= __builtin_lsx_vfrstpi_b(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vfrstpi_b' must be a constant integer}}
833 v8i16
vfrstpi_h(v8i16 _1
, v8i16 _2
, int var
) {
834 v8i16 res
= __builtin_lsx_vfrstpi_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
835 res
|= __builtin_lsx_vfrstpi_h(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
836 res
|= __builtin_lsx_vfrstpi_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vfrstpi_h' must be a constant integer}}
840 v2i64
vshuf4i_d(v2i64 _1
, v2i64 _2
, int var
) {
841 v2i64 res
= __builtin_lsx_vshuf4i_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
842 res
|= __builtin_lsx_vshuf4i_d(_1
, _2
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
843 res
|= __builtin_lsx_vshuf4i_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vshuf4i_d' must be a constant integer}}
847 v16i8
vbsrl_v(v16i8 _1
, int var
) {
848 v16i8 res
= __builtin_lsx_vbsrl_v(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
849 res
|= __builtin_lsx_vbsrl_v(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
850 res
|= __builtin_lsx_vbsrl_v(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbsrl_v' must be a constant integer}}
854 v16i8
vbsll_v(v16i8 _1
, int var
) {
855 v16i8 res
= __builtin_lsx_vbsll_v(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
856 res
|= __builtin_lsx_vbsll_v(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
857 res
|= __builtin_lsx_vbsll_v(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbsll_v' must be a constant integer}}
861 v16i8
vextrins_b(v16i8 _1
, v16i8 _2
, int var
) {
862 v16i8 res
= __builtin_lsx_vextrins_b(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
863 res
|= __builtin_lsx_vextrins_b(_1
, _2
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
864 res
|= __builtin_lsx_vextrins_b(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vextrins_b' must be a constant integer}}
868 v8i16
vextrins_h(v8i16 _1
, v8i16 _2
, int var
) {
869 v8i16 res
= __builtin_lsx_vextrins_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
870 res
|= __builtin_lsx_vextrins_h(_1
, _2
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
871 res
|= __builtin_lsx_vextrins_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vextrins_h' must be a constant integer}}
875 v4i32
vextrins_w(v4i32 _1
, v4i32 _2
, int var
) {
876 v4i32 res
= __builtin_lsx_vextrins_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
877 res
|= __builtin_lsx_vextrins_w(_1
, _2
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
878 res
|= __builtin_lsx_vextrins_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vextrins_w' must be a constant integer}}
882 v2i64
vextrins_d(v2i64 _1
, v2i64 _2
, int var
) {
883 v2i64 res
= __builtin_lsx_vextrins_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
884 res
|= __builtin_lsx_vextrins_d(_1
, _2
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
885 res
|= __builtin_lsx_vextrins_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vextrins_d' must be a constant integer}}
889 void vstelm_b_idx(v16i8 _1
, void *_2
, int var
) {
890 __builtin_lsx_vstelm_b(_1
, _2
, 1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
891 __builtin_lsx_vstelm_b(_1
, _2
, 1, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
892 __builtin_lsx_vstelm_b(_1
, _2
, 1, var
); // expected-error {{argument to '__builtin_lsx_vstelm_b' must be a constant integer}}
895 void vstelm_h_idx(v8i16 _1
, void *_2
, int var
) {
896 __builtin_lsx_vstelm_h(_1
, _2
, 2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
897 __builtin_lsx_vstelm_h(_1
, _2
, 2, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
898 __builtin_lsx_vstelm_h(_1
, _2
, 2, var
); // expected-error {{argument to '__builtin_lsx_vstelm_h' must be a constant integer}}
901 void vstelm_w_idx(v4i32 _1
, void *_2
, int var
) {
902 __builtin_lsx_vstelm_w(_1
, _2
, 4, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}}
903 __builtin_lsx_vstelm_w(_1
, _2
, 4, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}}
904 __builtin_lsx_vstelm_w(_1
, _2
, 4, var
); // expected-error {{argument to '__builtin_lsx_vstelm_w' must be a constant integer}}
907 void vstelm_d_idx(v2i64 _1
, void *_2
, int var
) {
908 __builtin_lsx_vstelm_d(_1
, _2
, 8, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 1]}}
909 __builtin_lsx_vstelm_d(_1
, _2
, 8, 2); // expected-error {{argument value 2 is outside the valid range [0, 1]}}
910 __builtin_lsx_vstelm_d(_1
, _2
, 8, var
); // expected-error {{argument to '__builtin_lsx_vstelm_d' must be a constant integer}}
913 void vstelm_b(v16i8 _1
, void *_2
, int var
) {
914 __builtin_lsx_vstelm_b(_1
, _2
, -129, 1); // expected-error {{argument value -129 is outside the valid range [-128, 127]}}
915 __builtin_lsx_vstelm_b(_1
, _2
, 128, 1); // expected-error {{argument value 128 is outside the valid range [-128, 127]}}
916 __builtin_lsx_vstelm_b(_1
, _2
, var
, 1); // expected-error {{argument to '__builtin_lsx_vstelm_b' must be a constant integer}}
919 void vstelm_h(v8i16 _1
, void *_2
, int var
) {
920 __builtin_lsx_vstelm_h(_1
, _2
, -258, 1); // expected-error {{argument value -258 is outside the valid range [-256, 254]}}
921 __builtin_lsx_vstelm_h(_1
, _2
, 256, 1); // expected-error {{argument value 256 is outside the valid range [-256, 254]}}
922 __builtin_lsx_vstelm_h(_1
, _2
, var
, 1); // expected-error {{argument to '__builtin_lsx_vstelm_h' must be a constant integer}}
925 void vstelm_w(v4i32 _1
, void *_2
, int var
) {
926 __builtin_lsx_vstelm_w(_1
, _2
, -516, 1); // expected-error {{argument value -516 is outside the valid range [-512, 508]}}
927 __builtin_lsx_vstelm_w(_1
, _2
, 512, 1); // expected-error {{argument value 512 is outside the valid range [-512, 508]}}
928 __builtin_lsx_vstelm_w(_1
, _2
, var
, 1); // expected-error {{argument to '__builtin_lsx_vstelm_w' must be a constant integer}}
931 void vstelm_d(v2i64 _1
, void *_2
, int var
) {
932 __builtin_lsx_vstelm_d(_1
, _2
, -1032, 1); // expected-error {{argument value -1032 is outside the valid range [-1024, 1016]}}
933 __builtin_lsx_vstelm_d(_1
, _2
, 1024, 1); // expected-error {{argument value 1024 is outside the valid range [-1024, 1016]}}
934 __builtin_lsx_vstelm_d(_1
, _2
, var
, 1); // expected-error {{argument to '__builtin_lsx_vstelm_d' must be a constant integer}}
937 v16i8
vldrepl_b(void *_1
, int var
) {
938 v16i8 res
= __builtin_lsx_vldrepl_b(_1
, -2049); // expected-error {{argument value -2049 is outside the valid range [-2048, 2047]}}
939 res
|= __builtin_lsx_vldrepl_b(_1
, 2048); // expected-error {{argument value 2048 is outside the valid range [-2048, 2047]}}
940 res
|= __builtin_lsx_vldrepl_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vldrepl_b' must be a constant integer}}
944 v8i16
vldrepl_h(void *_1
, int var
) {
945 v8i16 res
= __builtin_lsx_vldrepl_h(_1
, -2050); // expected-error {{argument value -2050 is outside the valid range [-2048, 2046]}}
946 res
|= __builtin_lsx_vldrepl_h(_1
, 2048); // expected-error {{argument value 2048 is outside the valid range [-2048, 2046]}}
947 res
|= __builtin_lsx_vldrepl_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vldrepl_h' must be a constant integer}}
951 v4i32
vldrepl_w(void *_1
, int var
) {
952 v4i32 res
= __builtin_lsx_vldrepl_w(_1
, -2052); // expected-error {{argument value -2052 is outside the valid range [-2048, 2044]}}
953 res
|= __builtin_lsx_vldrepl_w(_1
, 2048); // expected-error {{argument value 2048 is outside the valid range [-2048, 2044]}}
954 res
|= __builtin_lsx_vldrepl_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vldrepl_w' must be a constant integer}}
958 v2i64
vldrepl_d(void *_1
, int var
) {
959 v2i64 res
= __builtin_lsx_vldrepl_d(_1
, -2056); // expected-error {{argument value -2056 is outside the valid range [-2048, 2040]}}
960 res
|= __builtin_lsx_vldrepl_d(_1
, 2048); // expected-error {{argument value 2048 is outside the valid range [-2048, 2040]}}
961 res
|= __builtin_lsx_vldrepl_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vldrepl_d' must be a constant integer}}
965 v16i8
vrotri_b(v16i8 _1
, int var
) {
966 v16i8 res
= __builtin_lsx_vrotri_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
967 res
|= __builtin_lsx_vrotri_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
968 res
|= __builtin_lsx_vrotri_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vrotri_b' must be a constant integer}}
972 v8i16
vrotri_h(v8i16 _1
, int var
) {
973 v8i16 res
= __builtin_lsx_vrotri_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
974 res
|= __builtin_lsx_vrotri_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
975 res
|= __builtin_lsx_vrotri_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vrotri_h' must be a constant integer}}
979 v4i32
vrotri_w(v4i32 _1
, int var
) {
980 v4i32 res
= __builtin_lsx_vrotri_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
981 res
|= __builtin_lsx_vrotri_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
982 res
|= __builtin_lsx_vrotri_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vrotri_w' must be a constant integer}}
986 v2i64
vrotri_d(v2i64 _1
, int var
) {
987 v2i64 res
= __builtin_lsx_vrotri_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
988 res
|= __builtin_lsx_vrotri_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
989 res
|= __builtin_lsx_vrotri_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vrotri_d' must be a constant integer}}
993 v16i8
vsrlni_b_h(v16i8 _1
, v16i8 _2
, int var
) {
994 v16i8 res
= __builtin_lsx_vsrlni_b_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
995 res
|= __builtin_lsx_vsrlni_b_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
996 res
|= __builtin_lsx_vsrlni_b_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrlni_b_h' must be a constant integer}}
1000 v8i16
vsrlni_h_w(v8i16 _1
, v8i16 _2
, int var
) {
1001 v8i16 res
= __builtin_lsx_vsrlni_h_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1002 res
|= __builtin_lsx_vsrlni_h_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1003 res
|= __builtin_lsx_vsrlni_h_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrlni_h_w' must be a constant integer}}
1007 v4i32
vsrlni_w_d(v4i32 _1
, v4i32 _2
, int var
) {
1008 v4i32 res
= __builtin_lsx_vsrlni_w_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1009 res
|= __builtin_lsx_vsrlni_w_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1010 res
|= __builtin_lsx_vsrlni_w_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrlni_w_d' must be a constant integer}}
1014 v2i64
vsrlni_d_q(v2i64 _1
, v2i64 _2
, int var
) {
1015 v2i64 res
= __builtin_lsx_vsrlni_d_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1016 res
|= __builtin_lsx_vsrlni_d_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1017 res
|= __builtin_lsx_vsrlni_d_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrlni_d_q' must be a constant integer}}
1021 v16i8
vsrlrni_b_h(v16i8 _1
, v16i8 _2
, int var
) {
1022 v16i8 res
= __builtin_lsx_vsrlrni_b_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1023 res
|= __builtin_lsx_vsrlrni_b_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1024 res
|= __builtin_lsx_vsrlrni_b_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrlrni_b_h' must be a constant integer}}
1028 v8i16
vsrlrni_h_w(v8i16 _1
, v8i16 _2
, int var
) {
1029 v8i16 res
= __builtin_lsx_vsrlrni_h_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1030 res
|= __builtin_lsx_vsrlrni_h_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1031 res
|= __builtin_lsx_vsrlrni_h_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrlrni_h_w' must be a constant integer}}
1035 v4i32
vsrlrni_w_d(v4i32 _1
, v4i32 _2
, int var
) {
1036 v4i32 res
= __builtin_lsx_vsrlrni_w_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1037 res
|= __builtin_lsx_vsrlrni_w_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1038 res
|= __builtin_lsx_vsrlrni_w_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrlrni_w_d' must be a constant integer}}
1042 v2i64
vsrlrni_d_q(v2i64 _1
, v2i64 _2
, int var
) {
1043 v2i64 res
= __builtin_lsx_vsrlrni_d_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1044 res
|= __builtin_lsx_vsrlrni_d_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1045 res
|= __builtin_lsx_vsrlrni_d_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrlrni_d_q' must be a constant integer}}
1049 v16i8
vssrlni_b_h(v16i8 _1
, v16i8 _2
, int var
) {
1050 v16i8 res
= __builtin_lsx_vssrlni_b_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1051 res
|= __builtin_lsx_vssrlni_b_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1052 res
|= __builtin_lsx_vssrlni_b_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlni_b_h' must be a constant integer}}
1056 v8i16
vssrlni_h_w(v8i16 _1
, v8i16 _2
, int var
) {
1057 v8i16 res
= __builtin_lsx_vssrlni_h_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1058 res
|= __builtin_lsx_vssrlni_h_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1059 res
|= __builtin_lsx_vssrlni_h_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlni_h_w' must be a constant integer}}
1063 v4i32
vssrlni_w_d(v4i32 _1
, v4i32 _2
, int var
) {
1064 v4i32 res
= __builtin_lsx_vssrlni_w_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1065 res
|= __builtin_lsx_vssrlni_w_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1066 res
|= __builtin_lsx_vssrlni_w_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlni_w_d' must be a constant integer}}
1070 v2i64
vssrlni_d_q(v2i64 _1
, v2i64 _2
, int var
) {
1071 v2i64 res
= __builtin_lsx_vssrlni_d_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1072 res
|= __builtin_lsx_vssrlni_d_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1073 res
|= __builtin_lsx_vssrlni_d_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlni_d_q' must be a constant integer}}
1077 v16u8
vssrlni_bu_h(v16u8 _1
, v16i8 _2
, int var
) {
1078 v16u8 res
= __builtin_lsx_vssrlni_bu_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1079 res
|= __builtin_lsx_vssrlni_bu_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1080 res
|= __builtin_lsx_vssrlni_bu_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlni_bu_h' must be a constant integer}}
1084 v8u16
vssrlni_hu_w(v8u16 _1
, v8i16 _2
, int var
) {
1085 v8u16 res
= __builtin_lsx_vssrlni_hu_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1086 res
|= __builtin_lsx_vssrlni_hu_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1087 res
|= __builtin_lsx_vssrlni_hu_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlni_hu_w' must be a constant integer}}
1091 v4u32
vssrlni_wu_d(v4u32 _1
, v4i32 _2
, int var
) {
1092 v4u32 res
= __builtin_lsx_vssrlni_wu_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1093 res
|= __builtin_lsx_vssrlni_wu_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1094 res
|= __builtin_lsx_vssrlni_wu_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlni_wu_d' must be a constant integer}}
1098 v2u64
vssrlni_du_q(v2u64 _1
, v2i64 _2
, int var
) {
1099 v2u64 res
= __builtin_lsx_vssrlni_du_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1100 res
|= __builtin_lsx_vssrlni_du_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1101 res
|= __builtin_lsx_vssrlni_du_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlni_du_q' must be a constant integer}}
1105 v16i8
vssrlrni_b_h(v16i8 _1
, v16i8 _2
, int var
) {
1106 v16i8 res
= __builtin_lsx_vssrlrni_b_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1107 res
|= __builtin_lsx_vssrlrni_b_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1108 res
|= __builtin_lsx_vssrlrni_b_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlrni_b_h' must be a constant integer}}
1112 v8i16
vssrlrni_h_w(v8i16 _1
, v8i16 _2
, int var
) {
1113 v8i16 res
= __builtin_lsx_vssrlrni_h_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1114 res
|= __builtin_lsx_vssrlrni_h_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1115 res
|= __builtin_lsx_vssrlrni_h_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlrni_h_w' must be a constant integer}}
1119 v4i32
vssrlrni_w_d(v4i32 _1
, v4i32 _2
, int var
) {
1120 v4i32 res
= __builtin_lsx_vssrlrni_w_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1121 res
|= __builtin_lsx_vssrlrni_w_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1122 res
|= __builtin_lsx_vssrlrni_w_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlrni_w_d' must be a constant integer}}
1126 v2i64
vssrlrni_d_q(v2i64 _1
, v2i64 _2
, int var
) {
1127 v2i64 res
= __builtin_lsx_vssrlrni_d_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1128 res
|= __builtin_lsx_vssrlrni_d_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1129 res
|= __builtin_lsx_vssrlrni_d_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlrni_d_q' must be a constant integer}}
1133 v16u8
vssrlrni_bu_h(v16u8 _1
, v16i8 _2
, int var
) {
1134 v16u8 res
= __builtin_lsx_vssrlrni_bu_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1135 res
|= __builtin_lsx_vssrlrni_bu_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1136 res
|= __builtin_lsx_vssrlrni_bu_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlrni_bu_h' must be a constant integer}}
1140 v8u16
vssrlrni_hu_w(v8u16 _1
, v8i16 _2
, int var
) {
1141 v8u16 res
= __builtin_lsx_vssrlrni_hu_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1142 res
|= __builtin_lsx_vssrlrni_hu_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1143 res
|= __builtin_lsx_vssrlrni_hu_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlrni_hu_w' must be a constant integer}}
1147 v4u32
vssrlrni_wu_d(v4u32 _1
, v4i32 _2
, int var
) {
1148 v4u32 res
= __builtin_lsx_vssrlrni_wu_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1149 res
|= __builtin_lsx_vssrlrni_wu_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1150 res
|= __builtin_lsx_vssrlrni_wu_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlrni_wu_d' must be a constant integer}}
1154 v2u64
vssrlrni_du_q(v2u64 _1
, v2i64 _2
, int var
) {
1155 v2u64 res
= __builtin_lsx_vssrlrni_du_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1156 res
|= __builtin_lsx_vssrlrni_du_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1157 res
|= __builtin_lsx_vssrlrni_du_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlrni_du_q' must be a constant integer}}
1161 v16i8
vsrani_b_h(v16i8 _1
, v16i8 _2
, int var
) {
1162 v16i8 res
= __builtin_lsx_vsrani_b_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1163 res
|= __builtin_lsx_vsrani_b_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1164 res
|= __builtin_lsx_vsrani_b_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrani_b_h' must be a constant integer}}
1168 v8i16
vsrani_h_w(v8i16 _1
, v8i16 _2
, int var
) {
1169 v8i16 res
= __builtin_lsx_vsrani_h_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1170 res
|= __builtin_lsx_vsrani_h_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1171 res
|= __builtin_lsx_vsrani_h_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrani_h_w' must be a constant integer}}
1175 v4i32
vsrani_w_d(v4i32 _1
, v4i32 _2
, int var
) {
1176 v4i32 res
= __builtin_lsx_vsrani_w_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1177 res
|= __builtin_lsx_vsrani_w_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1178 res
|= __builtin_lsx_vsrani_w_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrani_w_d' must be a constant integer}}
1182 v2i64
vsrani_d_q(v2i64 _1
, v2i64 _2
, int var
) {
1183 v2i64 res
= __builtin_lsx_vsrani_d_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1184 res
|= __builtin_lsx_vsrani_d_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1185 res
|= __builtin_lsx_vsrani_d_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrani_d_q' must be a constant integer}}
1189 v16i8
vsrarni_b_h(v16i8 _1
, v16i8 _2
, int var
) {
1190 v16i8 res
= __builtin_lsx_vsrarni_b_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1191 res
|= __builtin_lsx_vsrarni_b_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1192 res
|= __builtin_lsx_vsrarni_b_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrarni_b_h' must be a constant integer}}
1196 v8i16
vsrarni_h_w(v8i16 _1
, v8i16 _2
, int var
) {
1197 v8i16 res
= __builtin_lsx_vsrarni_h_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1198 res
|= __builtin_lsx_vsrarni_h_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1199 res
|= __builtin_lsx_vsrarni_h_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrarni_h_w' must be a constant integer}}
1203 v4i32
vsrarni_w_d(v4i32 _1
, v4i32 _2
, int var
) {
1204 v4i32 res
= __builtin_lsx_vsrarni_w_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1205 res
|= __builtin_lsx_vsrarni_w_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1206 res
|= __builtin_lsx_vsrarni_w_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrarni_w_d' must be a constant integer}}
1210 v2i64
vsrarni_d_q(v2i64 _1
, v2i64 _2
, int var
) {
1211 v2i64 res
= __builtin_lsx_vsrarni_d_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1212 res
|= __builtin_lsx_vsrarni_d_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1213 res
|= __builtin_lsx_vsrarni_d_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrarni_d_q' must be a constant integer}}
1217 v16i8
vssrani_b_h(v16i8 _1
, v16i8 _2
, int var
) {
1218 v16i8 res
= __builtin_lsx_vssrani_b_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1219 res
|= __builtin_lsx_vssrani_b_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1220 res
|= __builtin_lsx_vssrani_b_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrani_b_h' must be a constant integer}}
1224 v8i16
vssrani_h_w(v8i16 _1
, v8i16 _2
, int var
) {
1225 v8i16 res
= __builtin_lsx_vssrani_h_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1226 res
|= __builtin_lsx_vssrani_h_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1227 res
|= __builtin_lsx_vssrani_h_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrani_h_w' must be a constant integer}}
1231 v4i32
vssrani_w_d(v4i32 _1
, v4i32 _2
, int var
) {
1232 v4i32 res
= __builtin_lsx_vssrani_w_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1233 res
|= __builtin_lsx_vssrani_w_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1234 res
|= __builtin_lsx_vssrani_w_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrani_w_d' must be a constant integer}}
1238 v2i64
vssrani_d_q(v2i64 _1
, v2i64 _2
, int var
) {
1239 v2i64 res
= __builtin_lsx_vssrani_d_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1240 res
|= __builtin_lsx_vssrani_d_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1241 res
|= __builtin_lsx_vssrani_d_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrani_d_q' must be a constant integer}}
1245 v16u8
vssrani_bu_h(v16u8 _1
, v16i8 _2
, int var
) {
1246 v16u8 res
= __builtin_lsx_vssrani_bu_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1247 res
|= __builtin_lsx_vssrani_bu_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1248 res
|= __builtin_lsx_vssrani_bu_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrani_bu_h' must be a constant integer}}
1252 v8u16
vssrani_hu_w(v8u16 _1
, v8i16 _2
, int var
) {
1253 v8u16 res
= __builtin_lsx_vssrani_hu_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1254 res
|= __builtin_lsx_vssrani_hu_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1255 res
|= __builtin_lsx_vssrani_hu_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrani_hu_w' must be a constant integer}}
1259 v4u32
vssrani_wu_d(v4u32 _1
, v4i32 _2
, int var
) {
1260 v4u32 res
= __builtin_lsx_vssrani_wu_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1261 res
|= __builtin_lsx_vssrani_wu_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1262 res
|= __builtin_lsx_vssrani_wu_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrani_wu_d' must be a constant integer}}
1266 v2u64
vssrani_du_q(v2u64 _1
, v2i64 _2
, int var
) {
1267 v2u64 res
= __builtin_lsx_vssrani_du_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1268 res
|= __builtin_lsx_vssrani_du_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1269 res
|= __builtin_lsx_vssrani_du_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrani_du_q' must be a constant integer}}
1273 v16i8
vssrarni_b_h(v16i8 _1
, v16i8 _2
, int var
) {
1274 v16i8 res
= __builtin_lsx_vssrarni_b_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1275 res
|= __builtin_lsx_vssrarni_b_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1276 res
|= __builtin_lsx_vssrarni_b_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrarni_b_h' must be a constant integer}}
1280 v8i16
vssrarni_h_w(v8i16 _1
, v8i16 _2
, int var
) {
1281 v8i16 res
= __builtin_lsx_vssrarni_h_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1282 res
|= __builtin_lsx_vssrarni_h_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1283 res
|= __builtin_lsx_vssrarni_h_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrarni_h_w' must be a constant integer}}
1287 v4i32
vssrarni_w_d(v4i32 _1
, v4i32 _2
, int var
) {
1288 v4i32 res
= __builtin_lsx_vssrarni_w_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1289 res
|= __builtin_lsx_vssrarni_w_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1290 res
|= __builtin_lsx_vssrarni_w_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrarni_w_d' must be a constant integer}}
1294 v2i64
vssrarni_d_q(v2i64 _1
, v2i64 _2
, int var
) {
1295 v2i64 res
= __builtin_lsx_vssrarni_d_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1296 res
|= __builtin_lsx_vssrarni_d_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1297 res
|= __builtin_lsx_vssrarni_d_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrarni_d_q' must be a constant integer}}
1301 v16u8
vssrarni_bu_h(v16u8 _1
, v16i8 _2
, int var
) {
1302 v16u8 res
= __builtin_lsx_vssrarni_bu_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1303 res
|= __builtin_lsx_vssrarni_bu_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1304 res
|= __builtin_lsx_vssrarni_bu_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrarni_bu_h' must be a constant integer}}
1308 v8u16
vssrarni_hu_w(v8u16 _1
, v8i16 _2
, int var
) {
1309 v8u16 res
= __builtin_lsx_vssrarni_hu_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1310 res
|= __builtin_lsx_vssrarni_hu_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1311 res
|= __builtin_lsx_vssrarni_hu_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrarni_hu_w' must be a constant integer}}
1315 v4u32
vssrarni_wu_d(v4u32 _1
, v4i32 _2
, int var
) {
1316 v4u32 res
= __builtin_lsx_vssrarni_wu_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1317 res
|= __builtin_lsx_vssrarni_wu_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1318 res
|= __builtin_lsx_vssrarni_wu_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrarni_wu_d' must be a constant integer}}
1322 v2u64
vssrarni_du_q(v2u64 _1
, v2i64 _2
, int var
) {
1323 v2u64 res
= __builtin_lsx_vssrarni_du_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1324 res
|= __builtin_lsx_vssrarni_du_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1325 res
|= __builtin_lsx_vssrarni_du_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrarni_du_q' must be a constant integer}}
1329 v4i32
vpermi_w(v4i32 _1
, v4i32 _2
, int var
) {
1330 v4i32 res
= __builtin_lsx_vpermi_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
1331 res
|= __builtin_lsx_vpermi_w(_1
, _2
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
1332 res
|= __builtin_lsx_vpermi_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vpermi_w' must be a constant integer}}
1336 v16i8
vld(void *_1
, int var
) {
1337 v16i8 res
= __builtin_lsx_vld(_1
, -2049); // expected-error {{argument value -2049 is outside the valid range [-2048, 2047]}}
1338 res
|= __builtin_lsx_vld(_1
, 2048); // expected-error {{argument value 2048 is outside the valid range [-2048, 2047]}}
1339 res
|= __builtin_lsx_vld(_1
, var
); // expected-error {{argument to '__builtin_lsx_vld' must be a constant integer}}
1343 void vst(v16i8 _1
, void *_2
, int var
) {
1344 __builtin_lsx_vst(_1
, _2
, -2049); // expected-error {{argument value -2049 is outside the valid range [-2048, 2047]}}
1345 __builtin_lsx_vst(_1
, _2
, 2048); // expected-error {{argument value 2048 is outside the valid range [-2048, 2047]}}
1346 __builtin_lsx_vst(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vst' must be a constant integer}}
1349 v2i64
vldi(int var
) {
1350 v2i64 res
= __builtin_lsx_vldi(-4097); // expected-error {{argument value -4097 is outside the valid range [-4096, 4095]}}
1351 res
|= __builtin_lsx_vldi(4096); // expected-error {{argument value 4096 is outside the valid range [-4096, 4095]}}
1352 res
|= __builtin_lsx_vldi(var
); // expected-error {{argument to '__builtin_lsx_vldi' must be a constant integer}}
1356 v16i8
vrepli_b(int var
) {
1357 v16i8 res
= __builtin_lsx_vrepli_b(-513); // expected-error {{argument value -513 is outside the valid range [-512, 511]}}
1358 res
|= __builtin_lsx_vrepli_b(512); // expected-error {{argument value 512 is outside the valid range [-512, 511]}}
1359 res
|= __builtin_lsx_vrepli_b(var
); // expected-error {{argument to '__builtin_lsx_vrepli_b' must be a constant integer}}
1363 v2i64
vrepli_d(int var
) {
1364 v2i64 res
= __builtin_lsx_vrepli_d(-513); // expected-error {{argument value -513 is outside the valid range [-512, 511]}}
1365 res
|= __builtin_lsx_vrepli_d(512); // expected-error {{argument value 512 is outside the valid range [-512, 511]}}
1366 res
|= __builtin_lsx_vrepli_d(var
); // expected-error {{argument to '__builtin_lsx_vrepli_d' must be a constant integer}}
1370 v8i16
vrepli_h(int var
) {
1371 v8i16 res
= __builtin_lsx_vrepli_h(-513); // expected-error {{argument value -513 is outside the valid range [-512, 511]}}
1372 res
|= __builtin_lsx_vrepli_h(512); // expected-error {{argument value 512 is outside the valid range [-512, 511]}}
1373 res
|= __builtin_lsx_vrepli_h(var
); // expected-error {{argument to '__builtin_lsx_vrepli_h' must be a constant integer}}
1377 v4i32
vrepli_w(int var
) {
1378 v4i32 res
= __builtin_lsx_vrepli_w(-513); // expected-error {{argument value -513 is outside the valid range [-512, 511]}}
1379 res
|= __builtin_lsx_vrepli_w(512); // expected-error {{argument value 512 is outside the valid range [-512, 511]}}
1380 res
|= __builtin_lsx_vrepli_w(var
); // expected-error {{argument to '__builtin_lsx_vrepli_w' must be a constant integer}}