1 // RUN: %clang_cc1 -triple loongarch64 -target-feature +lsx -verify %s
2 // RUN: not %clang_cc1 -triple loongarch64 -DFEATURE_CHECK -emit-llvm %s -o /dev/null 2>&1 \
5 typedef signed char v16i8
__attribute__((vector_size(16), aligned(16)));
6 typedef signed char v16i8_b
__attribute__((vector_size(16), aligned(1)));
7 typedef unsigned char v16u8
__attribute__((vector_size(16), aligned(16)));
8 typedef unsigned char v16u8_b
__attribute__((vector_size(16), aligned(1)));
9 typedef short v8i16
__attribute__((vector_size(16), aligned(16)));
10 typedef short v8i16_h
__attribute__((vector_size(16), aligned(2)));
11 typedef unsigned short v8u16
__attribute__((vector_size(16), aligned(16)));
12 typedef unsigned short v8u16_h
__attribute__((vector_size(16), aligned(2)));
13 typedef int v4i32
__attribute__((vector_size(16), aligned(16)));
14 typedef int v4i32_w
__attribute__((vector_size(16), aligned(4)));
15 typedef unsigned int v4u32
__attribute__((vector_size(16), aligned(16)));
16 typedef unsigned int v4u32_w
__attribute__((vector_size(16), aligned(4)));
17 typedef long long v2i64
__attribute__((vector_size(16), aligned(16)));
18 typedef long long v2i64_d
__attribute__((vector_size(16), aligned(8)));
19 typedef unsigned long long v2u64
__attribute__((vector_size(16), aligned(16)));
20 typedef unsigned long long v2u64_d
__attribute__((vector_size(16), aligned(8)));
21 typedef float v4f32
__attribute__((vector_size(16), aligned(16)));
22 typedef float v4f32_w
__attribute__((vector_size(16), aligned(4)));
23 typedef double v2f64
__attribute__((vector_size(16), aligned(16)));
24 typedef double v2f64_d
__attribute__((vector_size(16), aligned(8)));
26 typedef long long __m128i
__attribute__((__vector_size__(16), __may_alias__
));
27 typedef float __m128
__attribute__((__vector_size__(16), __may_alias__
));
28 typedef double __m128d
__attribute__((__vector_size__(16), __may_alias__
));
31 void test_feature(v16i8 _1
) {
32 // CHECK: error: '__builtin_lsx_vslli_b' needs target feature lsx
33 (void)__builtin_lsx_vslli_b(_1
, 1);
37 v16i8
vslli_b(v16i8 _1
, int var
) {
38 v16i8 res
= __builtin_lsx_vslli_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
39 res
|= __builtin_lsx_vslli_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
40 res
|= __builtin_lsx_vslli_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslli_b' must be a constant integer}}
44 v8i16
vslli_h(v8i16 _1
, int var
) {
45 v8i16 res
= __builtin_lsx_vslli_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
46 res
|= __builtin_lsx_vslli_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
47 res
|= __builtin_lsx_vslli_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslli_h' must be a constant integer}}
51 v4i32
vslli_w(v4i32 _1
, int var
) {
52 v4i32 res
= __builtin_lsx_vslli_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
53 res
|= __builtin_lsx_vslli_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
54 res
|= __builtin_lsx_vslli_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslli_w' must be a constant integer}}
58 v2i64
vslli_d(v2i64 _1
, int var
) {
59 v2i64 res
= __builtin_lsx_vslli_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
60 res
|= __builtin_lsx_vslli_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
61 res
|= __builtin_lsx_vslli_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslli_d' must be a constant integer}}
65 v16i8
vsrai_b(v16i8 _1
, int var
) {
66 v16i8 res
= __builtin_lsx_vsrai_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
67 res
|= __builtin_lsx_vsrai_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
68 res
|= __builtin_lsx_vsrai_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrai_b' must be a constant integer}}
72 v8i16
vsrai_h(v8i16 _1
, int var
) {
73 v8i16 res
= __builtin_lsx_vsrai_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
74 res
|= __builtin_lsx_vsrai_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
75 res
|= __builtin_lsx_vsrai_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrai_h' must be a constant integer}}
79 v4i32
vsrai_w(v4i32 _1
, int var
) {
80 v4i32 res
= __builtin_lsx_vsrai_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
81 res
|= __builtin_lsx_vsrai_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
82 res
|= __builtin_lsx_vsrai_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrai_w' must be a constant integer}}
86 v2i64
vsrai_d(v2i64 _1
, int var
) {
87 v2i64 res
= __builtin_lsx_vsrai_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
88 res
|= __builtin_lsx_vsrai_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
89 res
|= __builtin_lsx_vsrai_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrai_d' must be a constant integer}}
93 v16i8
vsrari_b(v16i8 _1
, int var
) {
94 v16i8 res
= __builtin_lsx_vsrari_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
95 res
|= __builtin_lsx_vsrari_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
96 res
|= __builtin_lsx_vsrari_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrari_b' must be a constant integer}}
100 v8i16
vsrari_h(v8i16 _1
, int var
) {
101 v8i16 res
= __builtin_lsx_vsrari_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
102 res
|= __builtin_lsx_vsrari_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
103 res
|= __builtin_lsx_vsrari_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrari_h' must be a constant integer}}
107 v4i32
vsrari_w(v4i32 _1
, int var
) {
108 v4i32 res
= __builtin_lsx_vsrari_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
109 res
|= __builtin_lsx_vsrari_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
110 res
|= __builtin_lsx_vsrari_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrari_w' must be a constant integer}}
114 v2i64
vsrari_d(v2i64 _1
, int var
) {
115 v2i64 res
= __builtin_lsx_vsrari_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
116 res
|= __builtin_lsx_vsrari_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
117 res
|= __builtin_lsx_vsrari_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrari_d' must be a constant integer}}
121 v16i8
vsrli_b(v16i8 _1
, int var
) {
122 v16i8 res
= __builtin_lsx_vsrli_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
123 res
|= __builtin_lsx_vsrli_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
124 res
|= __builtin_lsx_vsrli_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrli_b' must be a constant integer}}
128 v8i16
vsrli_h(v8i16 _1
, int var
) {
129 v8i16 res
= __builtin_lsx_vsrli_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
130 res
|= __builtin_lsx_vsrli_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
131 res
|= __builtin_lsx_vsrli_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrli_h' must be a constant integer}}
135 v4i32
vsrli_w(v4i32 _1
, int var
) {
136 v4i32 res
= __builtin_lsx_vsrli_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
137 res
|= __builtin_lsx_vsrli_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
138 res
|= __builtin_lsx_vsrli_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrli_w' must be a constant integer}}
142 v2i64
vsrli_d(v2i64 _1
, int var
) {
143 v2i64 res
= __builtin_lsx_vsrli_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
144 res
|= __builtin_lsx_vsrli_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
145 res
|= __builtin_lsx_vsrli_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrli_d' must be a constant integer}}
149 v16i8
vsrlri_b(v16i8 _1
, int var
) {
150 v16i8 res
= __builtin_lsx_vsrlri_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
151 res
|= __builtin_lsx_vsrlri_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
152 res
|= __builtin_lsx_vsrlri_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrlri_b' must be a constant integer}}
156 v8i16
vsrlri_h(v8i16 _1
, int var
) {
157 v8i16 res
= __builtin_lsx_vsrlri_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
158 res
|= __builtin_lsx_vsrlri_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
159 res
|= __builtin_lsx_vsrlri_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrlri_h' must be a constant integer}}
163 v4i32
vsrlri_w(v4i32 _1
, int var
) {
164 v4i32 res
= __builtin_lsx_vsrlri_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
165 res
|= __builtin_lsx_vsrlri_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
166 res
|= __builtin_lsx_vsrlri_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrlri_w' must be a constant integer}}
170 v2i64
vsrlri_d(v2i64 _1
, int var
) {
171 v2i64 res
= __builtin_lsx_vsrlri_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
172 res
|= __builtin_lsx_vsrlri_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
173 res
|= __builtin_lsx_vsrlri_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsrlri_d' must be a constant integer}}
177 v16u8
vbitclri_b(v16u8 _1
, int var
) {
178 v16u8 res
= __builtin_lsx_vbitclri_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
179 res
|= __builtin_lsx_vbitclri_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
180 res
|= __builtin_lsx_vbitclri_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbitclri_b' must be a constant integer}}
184 v8u16
vbitclri_h(v8u16 _1
, int var
) {
185 v8u16 res
= __builtin_lsx_vbitclri_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
186 res
|= __builtin_lsx_vbitclri_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
187 res
|= __builtin_lsx_vbitclri_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbitclri_h' must be a constant integer}}
191 v4u32
vbitclri_w(v4u32 _1
, int var
) {
192 v4u32 res
= __builtin_lsx_vbitclri_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
193 res
|= __builtin_lsx_vbitclri_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
194 res
|= __builtin_lsx_vbitclri_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbitclri_w' must be a constant integer}}
198 v2u64
vbitclri_d(v2u64 _1
, int var
) {
199 v2u64 res
= __builtin_lsx_vbitclri_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
200 res
|= __builtin_lsx_vbitclri_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
201 res
|= __builtin_lsx_vbitclri_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbitclri_d' must be a constant integer}}
205 v16u8
vbitseti_b(v16u8 _1
, int var
) {
206 v16u8 res
= __builtin_lsx_vbitseti_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
207 res
|= __builtin_lsx_vbitseti_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
208 res
|= __builtin_lsx_vbitseti_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbitseti_b' must be a constant integer}}
212 v8u16
vbitseti_h(v8u16 _1
, int var
) {
213 v8u16 res
= __builtin_lsx_vbitseti_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
214 res
|= __builtin_lsx_vbitseti_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
215 res
|= __builtin_lsx_vbitseti_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbitseti_h' must be a constant integer}}
219 v4u32
vbitseti_w(v4u32 _1
, int var
) {
220 v4u32 res
= __builtin_lsx_vbitseti_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
221 res
|= __builtin_lsx_vbitseti_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
222 res
|= __builtin_lsx_vbitseti_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbitseti_w' must be a constant integer}}
226 v2u64
vbitseti_d(v2u64 _1
, int var
) {
227 v2u64 res
= __builtin_lsx_vbitseti_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
228 res
|= __builtin_lsx_vbitseti_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
229 res
|= __builtin_lsx_vbitseti_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbitseti_d' must be a constant integer}}
233 v16u8
vbitrevi_b(v16u8 _1
, int var
) {
234 v16u8 res
= __builtin_lsx_vbitrevi_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
235 res
|= __builtin_lsx_vbitrevi_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
236 res
|= __builtin_lsx_vbitrevi_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbitrevi_b' must be a constant integer}}
240 v8u16
vbitrevi_h(v8u16 _1
, int var
) {
241 v8u16 res
= __builtin_lsx_vbitrevi_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
242 res
|= __builtin_lsx_vbitrevi_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
243 res
|= __builtin_lsx_vbitrevi_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbitrevi_h' must be a constant integer}}
247 v4u32
vbitrevi_w(v4u32 _1
, int var
) {
248 v4u32 res
= __builtin_lsx_vbitrevi_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
249 res
|= __builtin_lsx_vbitrevi_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
250 res
|= __builtin_lsx_vbitrevi_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbitrevi_w' must be a constant integer}}
254 v2u64
vbitrevi_d(v2u64 _1
, int var
) {
255 v2u64 res
= __builtin_lsx_vbitrevi_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
256 res
|= __builtin_lsx_vbitrevi_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
257 res
|= __builtin_lsx_vbitrevi_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbitrevi_d' must be a constant integer}}
261 v16i8
vaddi_bu(v16i8 _1
, int var
) {
262 v16i8 res
= __builtin_lsx_vaddi_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
263 res
|= __builtin_lsx_vaddi_bu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
264 res
|= __builtin_lsx_vaddi_bu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vaddi_bu' must be a constant integer}}
268 v8i16
vaddi_hu(v8i16 _1
, int var
) {
269 v8i16 res
= __builtin_lsx_vaddi_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
270 res
|= __builtin_lsx_vaddi_hu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
271 res
|= __builtin_lsx_vaddi_hu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vaddi_hu' must be a constant integer}}
275 v4i32
vaddi_wu(v4i32 _1
, int var
) {
276 v4i32 res
= __builtin_lsx_vaddi_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
277 res
|= __builtin_lsx_vaddi_wu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
278 res
|= __builtin_lsx_vaddi_wu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vaddi_wu' must be a constant integer}}
282 v2i64
vaddi_du(v2i64 _1
, int var
) {
283 v2i64 res
= __builtin_lsx_vaddi_du(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
284 res
|= __builtin_lsx_vaddi_du(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
285 res
|= __builtin_lsx_vaddi_du(_1
, var
); // expected-error {{argument to '__builtin_lsx_vaddi_du' must be a constant integer}}
289 v16i8
vsubi_bu(v16i8 _1
, int var
) {
290 v16i8 res
= __builtin_lsx_vsubi_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
291 res
|= __builtin_lsx_vsubi_bu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
292 res
|= __builtin_lsx_vsubi_bu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsubi_bu' must be a constant integer}}
296 v8i16
vsubi_hu(v8i16 _1
, int var
) {
297 v8i16 res
= __builtin_lsx_vsubi_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
298 res
|= __builtin_lsx_vsubi_hu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
299 res
|= __builtin_lsx_vsubi_hu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsubi_hu' must be a constant integer}}
303 v4i32
vsubi_wu(v4i32 _1
, int var
) {
304 v4i32 res
= __builtin_lsx_vsubi_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
305 res
|= __builtin_lsx_vsubi_wu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
306 res
|= __builtin_lsx_vsubi_wu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsubi_wu' must be a constant integer}}
310 v2i64
vsubi_du(v2i64 _1
, int var
) {
311 v2i64 res
= __builtin_lsx_vsubi_du(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
312 res
|= __builtin_lsx_vsubi_du(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
313 res
|= __builtin_lsx_vsubi_du(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsubi_du' must be a constant integer}}
317 v16i8
vmaxi_b(v16i8 _1
, int var
) {
318 v16i8 res
= __builtin_lsx_vmaxi_b(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
319 res
|= __builtin_lsx_vmaxi_b(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
320 res
|= __builtin_lsx_vmaxi_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmaxi_b' must be a constant integer}}
324 v8i16
vmaxi_h(v8i16 _1
, int var
) {
325 v8i16 res
= __builtin_lsx_vmaxi_h(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
326 res
|= __builtin_lsx_vmaxi_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
327 res
|= __builtin_lsx_vmaxi_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmaxi_h' must be a constant integer}}
331 v4i32
vmaxi_w(v4i32 _1
, int var
) {
332 v4i32 res
= __builtin_lsx_vmaxi_w(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
333 res
|= __builtin_lsx_vmaxi_w(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
334 res
|= __builtin_lsx_vmaxi_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmaxi_w' must be a constant integer}}
338 v2i64
vmaxi_d(v2i64 _1
, int var
) {
339 v2i64 res
= __builtin_lsx_vmaxi_d(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
340 res
|= __builtin_lsx_vmaxi_d(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
341 res
|= __builtin_lsx_vmaxi_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmaxi_d' must be a constant integer}}
345 v16u8
vmaxi_bu(v16u8 _1
, int var
) {
346 v16u8 res
= __builtin_lsx_vmaxi_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
347 res
|= __builtin_lsx_vmaxi_bu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
348 res
|= __builtin_lsx_vmaxi_bu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmaxi_bu' must be a constant integer}}
352 v8u16
vmaxi_hu(v8u16 _1
, int var
) {
353 v8u16 res
= __builtin_lsx_vmaxi_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
354 res
|= __builtin_lsx_vmaxi_hu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
355 res
|= __builtin_lsx_vmaxi_hu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmaxi_hu' must be a constant integer}}
359 v4u32
vmaxi_wu(v4u32 _1
, int var
) {
360 v4u32 res
= __builtin_lsx_vmaxi_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
361 res
|= __builtin_lsx_vmaxi_wu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
362 res
|= __builtin_lsx_vmaxi_wu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmaxi_wu' must be a constant integer}}
366 v2u64
vmaxi_du(v2u64 _1
, int var
) {
367 v2u64 res
= __builtin_lsx_vmaxi_du(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
368 res
|= __builtin_lsx_vmaxi_du(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
369 res
|= __builtin_lsx_vmaxi_du(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmaxi_du' must be a constant integer}}
373 v16i8
vmini_b(v16i8 _1
, int var
) {
374 v16i8 res
= __builtin_lsx_vmini_b(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
375 res
|= __builtin_lsx_vmini_b(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
376 res
|= __builtin_lsx_vmini_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmini_b' must be a constant integer}}
380 v8i16
vmini_h(v8i16 _1
, int var
) {
381 v8i16 res
= __builtin_lsx_vmini_h(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
382 res
|= __builtin_lsx_vmini_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
383 res
|= __builtin_lsx_vmini_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmini_h' must be a constant integer}}}
387 v4i32
vmini_w(v4i32 _1
, int var
) {
388 v4i32 res
= __builtin_lsx_vmini_w(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
389 res
|= __builtin_lsx_vmini_w(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
390 res
|= __builtin_lsx_vmini_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmini_w' must be a constant integer}}
394 v2i64
vmini_d(v2i64 _1
, int var
) {
395 v2i64 res
= __builtin_lsx_vmini_d(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
396 res
|= __builtin_lsx_vmini_d(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
397 res
|= __builtin_lsx_vmini_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmini_d' must be a constant integer}}
401 v16u8
vmini_bu(v16u8 _1
, int var
) {
402 v16u8 res
= __builtin_lsx_vmini_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
403 res
|= __builtin_lsx_vmini_bu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
404 res
|= __builtin_lsx_vmini_bu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmini_bu' must be a constant integer}}
408 v8u16
vmini_hu(v8u16 _1
, int var
) {
409 v8u16 res
= __builtin_lsx_vmini_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
410 res
|= __builtin_lsx_vmini_hu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
411 res
|= __builtin_lsx_vmini_hu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmini_hu' must be a constant integer}}
415 v4u32
vmini_wu(v4u32 _1
, int var
) {
416 v4u32 res
= __builtin_lsx_vmini_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
417 res
|= __builtin_lsx_vmini_wu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
418 res
|= __builtin_lsx_vmini_wu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmini_wu' must be a constant integer}}
422 v2u64
vmini_du(v2u64 _1
, int var
) {
423 v2u64 res
= __builtin_lsx_vmini_du(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
424 res
|= __builtin_lsx_vmini_du(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
425 res
|= __builtin_lsx_vmini_du(_1
, var
); // expected-error {{argument to '__builtin_lsx_vmini_du' must be a constant integer}}
429 v16i8
vseqi_b(v16i8 _1
, int var
) {
430 v16i8 res
= __builtin_lsx_vseqi_b(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
431 res
|= __builtin_lsx_vseqi_b(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
432 res
|= __builtin_lsx_vseqi_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vseqi_b' must be a constant integer}}
436 v8i16
vseqi_h(v8i16 _1
, int var
) {
437 v8i16 res
= __builtin_lsx_vseqi_h(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
438 res
|= __builtin_lsx_vseqi_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
439 res
|= __builtin_lsx_vseqi_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vseqi_h' must be a constant integer}}
443 v4i32
vseqi_w(v4i32 _1
, int var
) {
444 v4i32 res
= __builtin_lsx_vseqi_w(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
445 res
|= __builtin_lsx_vseqi_w(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
446 res
|= __builtin_lsx_vseqi_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vseqi_w' must be a constant integer}}
450 v2i64
vseqi_d(v2i64 _1
, int var
) {
451 v2i64 res
= __builtin_lsx_vseqi_d(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
452 res
|= __builtin_lsx_vseqi_d(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
453 res
|= __builtin_lsx_vseqi_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vseqi_d' must be a constant integer}}
457 v16i8
vslti_b(v16i8 _1
, int var
) {
458 v16i8 res
= __builtin_lsx_vslti_b(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
459 res
|= __builtin_lsx_vslti_b(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
460 res
|= __builtin_lsx_vslti_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslti_b' must be a constant integer}}
464 v8i16
vslti_h(v8i16 _1
, int var
) {
465 v8i16 res
= __builtin_lsx_vslti_h(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
466 res
|= __builtin_lsx_vslti_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
467 res
|= __builtin_lsx_vslti_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslti_h' must be a constant integer}}
471 v4i32
vslti_w(v4i32 _1
, int var
) {
472 v4i32 res
= __builtin_lsx_vslti_w(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
473 res
|= __builtin_lsx_vslti_w(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
474 res
|= __builtin_lsx_vslti_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslti_w' must be a constant integer}}
478 v2i64
vslti_d(v2i64 _1
, int var
) {
479 v2i64 res
= __builtin_lsx_vslti_d(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
480 res
|= __builtin_lsx_vslti_d(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
481 res
|= __builtin_lsx_vslti_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslti_d' must be a constant integer}}
485 v16i8
vslti_bu(v16u8 _1
, int var
) {
486 v16i8 res
= __builtin_lsx_vslti_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
487 res
|= __builtin_lsx_vslti_bu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
488 res
|= __builtin_lsx_vslti_bu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslti_bu' must be a constant integer}}
492 v8i16
vslti_hu(v8u16 _1
, int var
) {
493 v8i16 res
= __builtin_lsx_vslti_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
494 res
|= __builtin_lsx_vslti_hu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
495 res
|= __builtin_lsx_vslti_hu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslti_hu' must be a constant integer}}
499 v4i32
vslti_wu(v4u32 _1
, int var
) {
500 v4i32 res
= __builtin_lsx_vslti_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
501 res
|= __builtin_lsx_vslti_wu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
502 res
|= __builtin_lsx_vslti_wu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslti_wu' must be a constant integer}}
506 v2i64
vslti_du(v2u64 _1
, int var
) {
507 v2i64 res
= __builtin_lsx_vslti_du(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
508 res
|= __builtin_lsx_vslti_du(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
509 res
|= __builtin_lsx_vslti_du(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslti_du' must be a constant integer}}
513 v16i8
vslei_b(v16i8 _1
, int var
) {
514 v16i8 res
= __builtin_lsx_vslei_b(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
515 res
|= __builtin_lsx_vslei_b(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
516 res
|= __builtin_lsx_vslei_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslei_b' must be a constant integer}}
520 v8i16
vslei_h(v8i16 _1
, int var
) {
521 v8i16 res
= __builtin_lsx_vslei_h(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
522 res
|= __builtin_lsx_vslei_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
523 res
|= __builtin_lsx_vslei_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslei_h' must be a constant integer}}
527 v4i32
vslei_w(v4i32 _1
, int var
) {
528 v4i32 res
= __builtin_lsx_vslei_w(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
529 res
|= __builtin_lsx_vslei_w(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
530 res
|= __builtin_lsx_vslei_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslei_w' must be a constant integer}}
534 v2i64
vslei_d(v2i64 _1
, int var
) {
535 v2i64 res
= __builtin_lsx_vslei_d(_1
, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}}
536 res
|= __builtin_lsx_vslei_d(_1
, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}}
537 res
|= __builtin_lsx_vslei_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslei_d' must be a constant integer}}
541 v16i8
vslei_bu(v16u8 _1
, int var
) {
542 v16i8 res
= __builtin_lsx_vslei_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
543 res
|= __builtin_lsx_vslei_bu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
544 res
|= __builtin_lsx_vslei_bu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslei_bu' must be a constant integer}}
548 v8i16
vslei_hu(v8u16 _1
, int var
) {
549 v8i16 res
= __builtin_lsx_vslei_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
550 res
|= __builtin_lsx_vslei_hu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
551 res
|= __builtin_lsx_vslei_hu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslei_hu' must be a constant integer}}
555 v4i32
vslei_wu(v4u32 _1
, int var
) {
556 v4i32 res
= __builtin_lsx_vslei_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
557 res
|= __builtin_lsx_vslei_wu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
558 res
|= __builtin_lsx_vslei_wu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslei_wu' must be a constant integer}}
562 v2i64
vslei_du(v2u64 _1
, int var
) {
563 v2i64 res
= __builtin_lsx_vslei_du(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
564 res
|= __builtin_lsx_vslei_du(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
565 res
|= __builtin_lsx_vslei_du(_1
, var
); // expected-error {{argument to '__builtin_lsx_vslei_du' must be a constant integer}}
569 v16i8
vsat_b(v16i8 _1
, int var
) {
570 v16i8 res
= __builtin_lsx_vsat_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
571 res
|= __builtin_lsx_vsat_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
572 res
|= __builtin_lsx_vsat_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsat_b' must be a constant integer}}
576 v8i16
vsat_h(v8i16 _1
, int var
) {
577 v8i16 res
= __builtin_lsx_vsat_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
578 res
|= __builtin_lsx_vsat_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
579 res
|= __builtin_lsx_vsat_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsat_h' must be a constant integer}}
583 v4i32
vsat_w(v4i32 _1
, int var
) {
584 v4i32 res
= __builtin_lsx_vsat_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
585 res
|= __builtin_lsx_vsat_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
586 res
|= __builtin_lsx_vsat_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsat_w' must be a constant integer}}
590 v2i64
vsat_d(v2i64 _1
, int var
) {
591 v2i64 res
= __builtin_lsx_vsat_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
592 res
|= __builtin_lsx_vsat_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
593 res
|= __builtin_lsx_vsat_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsat_d' must be a constant integer}}
597 v16u8
vsat_bu(v16u8 _1
, int var
) {
598 v16u8 res
= __builtin_lsx_vsat_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
599 res
|= __builtin_lsx_vsat_bu(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
600 res
|= __builtin_lsx_vsat_bu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsat_bu' must be a constant integer}}
604 v8u16
vsat_hu(v8u16 _1
, int var
) {
605 v8u16 res
= __builtin_lsx_vsat_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
606 res
|= __builtin_lsx_vsat_hu(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
607 res
|= __builtin_lsx_vsat_hu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsat_hu' must be a constant integer}}
611 v4u32
vsat_wu(v4u32 _1
, int var
) {
612 v4u32 res
= __builtin_lsx_vsat_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
613 res
|= __builtin_lsx_vsat_wu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
614 res
|= __builtin_lsx_vsat_wu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsat_wu' must be a constant integer}}
618 v2u64
vsat_du(v2u64 _1
, int var
) {
619 v2u64 res
= __builtin_lsx_vsat_du(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
620 res
|= __builtin_lsx_vsat_du(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
621 res
|= __builtin_lsx_vsat_du(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsat_du' must be a constant integer}}
625 v16i8
vreplvei_b(v16i8 _1
, int var
) {
626 v16i8 res
= __builtin_lsx_vreplvei_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
627 res
|= __builtin_lsx_vreplvei_b(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
628 res
|= __builtin_lsx_vreplvei_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vreplvei_b' must be a constant integer}}
632 v8i16
vreplvei_h(v8i16 _1
, int var
) {
633 v8i16 res
= __builtin_lsx_vreplvei_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
634 res
|= __builtin_lsx_vreplvei_h(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
635 res
|= __builtin_lsx_vreplvei_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vreplvei_h' must be a constant integer}}
639 v4i32
vreplvei_w(v4i32 _1
, int var
) {
640 v4i32 res
= __builtin_lsx_vreplvei_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}}
641 res
|= __builtin_lsx_vreplvei_w(_1
, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}}
642 res
|= __builtin_lsx_vreplvei_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vreplvei_w' must be a constant integer}}
646 v2i64
vreplvei_d(v2i64 _1
, int var
) {
647 v2i64 res
= __builtin_lsx_vreplvei_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 1]}}
648 res
|= __builtin_lsx_vreplvei_d(_1
, 2); // expected-error {{argument value 2 is outside the valid range [0, 1]}}
649 res
|= __builtin_lsx_vreplvei_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vreplvei_d' must be a constant integer}}
653 v16u8
vandi_b(v16u8 _1
, int var
) {
654 v16u8 res
= __builtin_lsx_vandi_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
655 res
|= __builtin_lsx_vandi_b(_1
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
656 res
|= __builtin_lsx_vandi_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vandi_b' must be a constant integer}}
660 v16u8
vori_b(v16u8 _1
, int var
) {
661 v16u8 res
= __builtin_lsx_vori_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
662 res
|= __builtin_lsx_vori_b(_1
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
663 res
|= __builtin_lsx_vori_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vori_b' must be a constant integer}}
667 v16u8
vnori_b(v16u8 _1
, int var
) {
668 v16u8 res
= __builtin_lsx_vnori_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
669 res
|= __builtin_lsx_vnori_b(_1
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
670 res
|= __builtin_lsx_vnori_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vnori_b' must be a constant integer}}
674 v16u8
vxori_b(v16u8 _1
, int var
) {
675 v16u8 res
= __builtin_lsx_vxori_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
676 res
|= __builtin_lsx_vxori_b(_1
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
677 res
|= __builtin_lsx_vxori_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vxori_b' must be a constant integer}}
681 v16u8
vbitseli_b(v16u8 _1
, v16u8 _2
, int var
) {
682 v16u8 res
= __builtin_lsx_vbitseli_b(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
683 res
|= __builtin_lsx_vbitseli_b(_1
, _2
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
684 res
|= __builtin_lsx_vbitseli_b(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vbitseli_b' must be a constant integer}}
688 v16i8
vshuf4i_b(v16i8 _1
, int var
) {
689 v16i8 res
= __builtin_lsx_vshuf4i_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
690 res
|= __builtin_lsx_vshuf4i_b(_1
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
691 res
|= __builtin_lsx_vshuf4i_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vshuf4i_b' must be a constant integer}}
695 v8i16
vshuf4i_h(v8i16 _1
, int var
) {
696 v8i16 res
= __builtin_lsx_vshuf4i_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
697 res
|= __builtin_lsx_vshuf4i_h(_1
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
698 res
|= __builtin_lsx_vshuf4i_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vshuf4i_h' must be a constant integer}}
702 v4i32
vshuf4i_w(v4i32 _1
, int var
) {
703 v4i32 res
= __builtin_lsx_vshuf4i_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
704 res
|= __builtin_lsx_vshuf4i_w(_1
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
705 res
|= __builtin_lsx_vshuf4i_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vshuf4i_w' must be a constant integer}}
709 int vpickve2gr_b(v16i8 _1
, int var
) {
710 int res
= __builtin_lsx_vpickve2gr_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
711 res
|= __builtin_lsx_vpickve2gr_b(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
712 res
|= __builtin_lsx_vpickve2gr_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vpickve2gr_b' must be a constant integer}}
716 int vpickve2gr_h(v8i16 _1
, int var
) {
717 int res
= __builtin_lsx_vpickve2gr_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
718 res
|= __builtin_lsx_vpickve2gr_h(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
719 res
|= __builtin_lsx_vpickve2gr_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vpickve2gr_h' must be a constant integer}}
723 int vpickve2gr_w(v4i32 _1
, int var
) {
724 int res
= __builtin_lsx_vpickve2gr_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}}
725 res
|= __builtin_lsx_vpickve2gr_w(_1
, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}}
726 res
|= __builtin_lsx_vpickve2gr_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vpickve2gr_w' must be a constant integer}}
730 long vpickve2gr_d(v2i64 _1
, int var
) {
731 long res
= __builtin_lsx_vpickve2gr_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 1]}}
732 res
|= __builtin_lsx_vpickve2gr_d(_1
, 2); // expected-error {{argument value 2 is outside the valid range [0, 1]}}
733 res
|= __builtin_lsx_vpickve2gr_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vpickve2gr_d' must be a constant integer}}
737 unsigned int vpickve2gr_bu(v16i8 _1
, int var
) {
738 unsigned int res
= __builtin_lsx_vpickve2gr_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
739 res
|= __builtin_lsx_vpickve2gr_bu(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
740 res
|= __builtin_lsx_vpickve2gr_bu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vpickve2gr_bu' must be a constant integer}}
744 unsigned int vpickve2gr_hu(v8i16 _1
, int var
) {
745 unsigned int res
= __builtin_lsx_vpickve2gr_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
746 res
|= __builtin_lsx_vpickve2gr_hu(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
747 res
|= __builtin_lsx_vpickve2gr_hu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vpickve2gr_hu' must be a constant integer}}
751 unsigned int vpickve2gr_wu(v4i32 _1
, int var
) {
752 unsigned int res
= __builtin_lsx_vpickve2gr_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}}
753 res
|= __builtin_lsx_vpickve2gr_wu(_1
, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}}
754 res
|= __builtin_lsx_vpickve2gr_wu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vpickve2gr_wu' must be a constant integer}}
758 unsigned long int vpickve2gr_du(v2i64 _1
, int var
) {
759 unsigned long int res
= __builtin_lsx_vpickve2gr_du(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 1]}}
760 res
|= __builtin_lsx_vpickve2gr_du(_1
, 2); // expected-error {{argument value 2 is outside the valid range [0, 1]}}
761 res
|= __builtin_lsx_vpickve2gr_du(_1
, var
); // expected-error {{argument to '__builtin_lsx_vpickve2gr_du' must be a constant integer}}
765 v16i8
vinsgr2vr_b(v16i8 _1
, int var
) {
766 v16i8 res
= __builtin_lsx_vinsgr2vr_b(_1
, 1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
767 res
|= __builtin_lsx_vinsgr2vr_b(_1
, 1, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
768 res
|= __builtin_lsx_vinsgr2vr_b(_1
, 1, var
); // expected-error {{argument to '__builtin_lsx_vinsgr2vr_b' must be a constant integer}}
772 v8i16
vinsgr2vr_h(v8i16 _1
, int var
) {
773 v8i16 res
= __builtin_lsx_vinsgr2vr_h(_1
, 1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
774 res
|= __builtin_lsx_vinsgr2vr_h(_1
, 1, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
775 res
|= __builtin_lsx_vinsgr2vr_h(_1
, 1, var
); // expected-error {{argument to '__builtin_lsx_vinsgr2vr_h' must be a constant integer}}
779 v4i32
vinsgr2vr_w(v4i32 _1
, int var
) {
780 v4i32 res
= __builtin_lsx_vinsgr2vr_w(_1
, 1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}}
781 res
|= __builtin_lsx_vinsgr2vr_w(_1
, 1, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}}
782 res
|= __builtin_lsx_vinsgr2vr_w(_1
, 1, var
); // expected-error {{argument to '__builtin_lsx_vinsgr2vr_w' must be a constant integer}}
786 v2i64
vinsgr2vr_d(v2i64 _1
, int var
) {
787 v2i64 res
= __builtin_lsx_vinsgr2vr_d(_1
, 1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 1]}}
788 res
|= __builtin_lsx_vinsgr2vr_d(_1
, 1, 2); // expected-error {{argument value 2 is outside the valid range [0, 1]}}
789 res
|= __builtin_lsx_vinsgr2vr_d(_1
, 1, var
); // expected-error {{argument to '__builtin_lsx_vinsgr2vr_d' must be a constant integer}}
793 v8i16
vsllwil_h_b(v16i8 _1
, int var
) {
794 v8i16 res
= __builtin_lsx_vsllwil_h_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
795 res
|= __builtin_lsx_vsllwil_h_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
796 res
|= __builtin_lsx_vsllwil_h_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsllwil_h_b' must be a constant integer}}
800 v4i32
vsllwil_w_h(v8i16 _1
, int var
) {
801 v4i32 res
= __builtin_lsx_vsllwil_w_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
802 res
|= __builtin_lsx_vsllwil_w_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
803 res
|= __builtin_lsx_vsllwil_w_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsllwil_w_h' must be a constant integer}}
807 v2i64
vsllwil_d_w(v4i32 _1
, int var
) {
808 v2i64 res
= __builtin_lsx_vsllwil_d_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
809 res
|= __builtin_lsx_vsllwil_d_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
810 res
|= __builtin_lsx_vsllwil_d_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsllwil_d_w' must be a constant integer}}
814 v8u16
vsllwil_hu_bu(v16u8 _1
, int var
) {
815 v8u16 res
= __builtin_lsx_vsllwil_hu_bu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
816 res
|= __builtin_lsx_vsllwil_hu_bu(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
817 res
|= __builtin_lsx_vsllwil_hu_bu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsllwil_hu_bu' must be a constant integer}}
821 v4u32
vsllwil_wu_hu(v8u16 _1
, int var
) {
822 v4u32 res
= __builtin_lsx_vsllwil_wu_hu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
823 res
|= __builtin_lsx_vsllwil_wu_hu(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
824 res
|= __builtin_lsx_vsllwil_wu_hu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsllwil_wu_hu' must be a constant integer}}
828 v2u64
vsllwil_du_wu(v4u32 _1
, int var
) {
829 v2u64 res
= __builtin_lsx_vsllwil_du_wu(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
830 res
|= __builtin_lsx_vsllwil_du_wu(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
831 res
|= __builtin_lsx_vsllwil_du_wu(_1
, var
); // expected-error {{argument to '__builtin_lsx_vsllwil_du_wu' must be a constant integer}}
835 v16i8
vfrstpi_b(v16i8 _1
, v16i8 _2
, int var
) {
836 v16i8 res
= __builtin_lsx_vfrstpi_b(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
837 res
|= __builtin_lsx_vfrstpi_b(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
838 res
|= __builtin_lsx_vfrstpi_b(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vfrstpi_b' must be a constant integer}}
842 v8i16
vfrstpi_h(v8i16 _1
, v8i16 _2
, int var
) {
843 v8i16 res
= __builtin_lsx_vfrstpi_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
844 res
|= __builtin_lsx_vfrstpi_h(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
845 res
|= __builtin_lsx_vfrstpi_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vfrstpi_h' must be a constant integer}}
849 v2i64
vshuf4i_d(v2i64 _1
, v2i64 _2
, int var
) {
850 v2i64 res
= __builtin_lsx_vshuf4i_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
851 res
|= __builtin_lsx_vshuf4i_d(_1
, _2
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
852 res
|= __builtin_lsx_vshuf4i_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vshuf4i_d' must be a constant integer}}
856 v16i8
vbsrl_v(v16i8 _1
, int var
) {
857 v16i8 res
= __builtin_lsx_vbsrl_v(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
858 res
|= __builtin_lsx_vbsrl_v(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
859 res
|= __builtin_lsx_vbsrl_v(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbsrl_v' must be a constant integer}}
863 v16i8
vbsll_v(v16i8 _1
, int var
) {
864 v16i8 res
= __builtin_lsx_vbsll_v(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
865 res
|= __builtin_lsx_vbsll_v(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
866 res
|= __builtin_lsx_vbsll_v(_1
, var
); // expected-error {{argument to '__builtin_lsx_vbsll_v' must be a constant integer}}
870 v16i8
vextrins_b(v16i8 _1
, v16i8 _2
, int var
) {
871 v16i8 res
= __builtin_lsx_vextrins_b(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
872 res
|= __builtin_lsx_vextrins_b(_1
, _2
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
873 res
|= __builtin_lsx_vextrins_b(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vextrins_b' must be a constant integer}}
877 v8i16
vextrins_h(v8i16 _1
, v8i16 _2
, int var
) {
878 v8i16 res
= __builtin_lsx_vextrins_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
879 res
|= __builtin_lsx_vextrins_h(_1
, _2
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
880 res
|= __builtin_lsx_vextrins_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vextrins_h' must be a constant integer}}
884 v4i32
vextrins_w(v4i32 _1
, v4i32 _2
, int var
) {
885 v4i32 res
= __builtin_lsx_vextrins_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
886 res
|= __builtin_lsx_vextrins_w(_1
, _2
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
887 res
|= __builtin_lsx_vextrins_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vextrins_w' must be a constant integer}}
891 v2i64
vextrins_d(v2i64 _1
, v2i64 _2
, int var
) {
892 v2i64 res
= __builtin_lsx_vextrins_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
893 res
|= __builtin_lsx_vextrins_d(_1
, _2
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
894 res
|= __builtin_lsx_vextrins_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vextrins_d' must be a constant integer}}
898 void vstelm_b_idx(v16i8 _1
, void *_2
, int var
) {
899 __builtin_lsx_vstelm_b(_1
, _2
, 1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
900 __builtin_lsx_vstelm_b(_1
, _2
, 1, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
901 __builtin_lsx_vstelm_b(_1
, _2
, 1, var
); // expected-error {{argument to '__builtin_lsx_vstelm_b' must be a constant integer}}
904 void vstelm_h_idx(v8i16 _1
, void *_2
, int var
) {
905 __builtin_lsx_vstelm_h(_1
, _2
, 2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
906 __builtin_lsx_vstelm_h(_1
, _2
, 2, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
907 __builtin_lsx_vstelm_h(_1
, _2
, 2, var
); // expected-error {{argument to '__builtin_lsx_vstelm_h' must be a constant integer}}
910 void vstelm_w_idx(v4i32 _1
, void *_2
, int var
) {
911 __builtin_lsx_vstelm_w(_1
, _2
, 4, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}}
912 __builtin_lsx_vstelm_w(_1
, _2
, 4, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}}
913 __builtin_lsx_vstelm_w(_1
, _2
, 4, var
); // expected-error {{argument to '__builtin_lsx_vstelm_w' must be a constant integer}}
916 void vstelm_d_idx(v2i64 _1
, void *_2
, int var
) {
917 __builtin_lsx_vstelm_d(_1
, _2
, 8, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 1]}}
918 __builtin_lsx_vstelm_d(_1
, _2
, 8, 2); // expected-error {{argument value 2 is outside the valid range [0, 1]}}
919 __builtin_lsx_vstelm_d(_1
, _2
, 8, var
); // expected-error {{argument to '__builtin_lsx_vstelm_d' must be a constant integer}}
922 void vstelm_b(v16i8 _1
, void *_2
, int var
) {
923 __builtin_lsx_vstelm_b(_1
, _2
, -129, 1); // expected-error {{argument value -129 is outside the valid range [-128, 127]}}
924 __builtin_lsx_vstelm_b(_1
, _2
, 128, 1); // expected-error {{argument value 128 is outside the valid range [-128, 127]}}
925 __builtin_lsx_vstelm_b(_1
, _2
, var
, 1); // expected-error {{argument to '__builtin_lsx_vstelm_b' must be a constant integer}}
928 void vstelm_h(v8i16 _1
, void *_2
, int var
) {
929 __builtin_lsx_vstelm_h(_1
, _2
, -258, 1); // expected-error {{argument value -258 is outside the valid range [-256, 254]}}
930 __builtin_lsx_vstelm_h(_1
, _2
, 256, 1); // expected-error {{argument value 256 is outside the valid range [-256, 254]}}
931 __builtin_lsx_vstelm_h(_1
, _2
, var
, 1); // expected-error {{argument to '__builtin_lsx_vstelm_h' must be a constant integer}}
934 void vstelm_w(v4i32 _1
, void *_2
, int var
) {
935 __builtin_lsx_vstelm_w(_1
, _2
, -516, 1); // expected-error {{argument value -516 is outside the valid range [-512, 508]}}
936 __builtin_lsx_vstelm_w(_1
, _2
, 512, 1); // expected-error {{argument value 512 is outside the valid range [-512, 508]}}
937 __builtin_lsx_vstelm_w(_1
, _2
, var
, 1); // expected-error {{argument to '__builtin_lsx_vstelm_w' must be a constant integer}}
940 void vstelm_d(v2i64 _1
, void *_2
, int var
) {
941 __builtin_lsx_vstelm_d(_1
, _2
, -1032, 1); // expected-error {{argument value -1032 is outside the valid range [-1024, 1016]}}
942 __builtin_lsx_vstelm_d(_1
, _2
, 1024, 1); // expected-error {{argument value 1024 is outside the valid range [-1024, 1016]}}
943 __builtin_lsx_vstelm_d(_1
, _2
, var
, 1); // expected-error {{argument to '__builtin_lsx_vstelm_d' must be a constant integer}}
946 v16i8
vldrepl_b(void *_1
, int var
) {
947 v16i8 res
= __builtin_lsx_vldrepl_b(_1
, -2049); // expected-error {{argument value -2049 is outside the valid range [-2048, 2047]}}
948 res
|= __builtin_lsx_vldrepl_b(_1
, 2048); // expected-error {{argument value 2048 is outside the valid range [-2048, 2047]}}
949 res
|= __builtin_lsx_vldrepl_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vldrepl_b' must be a constant integer}}
953 v8i16
vldrepl_h(void *_1
, int var
) {
954 v8i16 res
= __builtin_lsx_vldrepl_h(_1
, -2050); // expected-error {{argument value -2050 is outside the valid range [-2048, 2046]}}
955 res
|= __builtin_lsx_vldrepl_h(_1
, 2048); // expected-error {{argument value 2048 is outside the valid range [-2048, 2046]}}
956 res
|= __builtin_lsx_vldrepl_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vldrepl_h' must be a constant integer}}
960 v4i32
vldrepl_w(void *_1
, int var
) {
961 v4i32 res
= __builtin_lsx_vldrepl_w(_1
, -2052); // expected-error {{argument value -2052 is outside the valid range [-2048, 2044]}}
962 res
|= __builtin_lsx_vldrepl_w(_1
, 2048); // expected-error {{argument value 2048 is outside the valid range [-2048, 2044]}}
963 res
|= __builtin_lsx_vldrepl_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vldrepl_w' must be a constant integer}}
967 v2i64
vldrepl_d(void *_1
, int var
) {
968 v2i64 res
= __builtin_lsx_vldrepl_d(_1
, -2056); // expected-error {{argument value -2056 is outside the valid range [-2048, 2040]}}
969 res
|= __builtin_lsx_vldrepl_d(_1
, 2048); // expected-error {{argument value 2048 is outside the valid range [-2048, 2040]}}
970 res
|= __builtin_lsx_vldrepl_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vldrepl_d' must be a constant integer}}
974 v16i8
vrotri_b(v16i8 _1
, int var
) {
975 v16i8 res
= __builtin_lsx_vrotri_b(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}}
976 res
|= __builtin_lsx_vrotri_b(_1
, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
977 res
|= __builtin_lsx_vrotri_b(_1
, var
); // expected-error {{argument to '__builtin_lsx_vrotri_b' must be a constant integer}}
981 v8i16
vrotri_h(v8i16 _1
, int var
) {
982 v8i16 res
= __builtin_lsx_vrotri_h(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
983 res
|= __builtin_lsx_vrotri_h(_1
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
984 res
|= __builtin_lsx_vrotri_h(_1
, var
); // expected-error {{argument to '__builtin_lsx_vrotri_h' must be a constant integer}}
988 v4i32
vrotri_w(v4i32 _1
, int var
) {
989 v4i32 res
= __builtin_lsx_vrotri_w(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
990 res
|= __builtin_lsx_vrotri_w(_1
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
991 res
|= __builtin_lsx_vrotri_w(_1
, var
); // expected-error {{argument to '__builtin_lsx_vrotri_w' must be a constant integer}}
995 v2i64
vrotri_d(v2i64 _1
, int var
) {
996 v2i64 res
= __builtin_lsx_vrotri_d(_1
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
997 res
|= __builtin_lsx_vrotri_d(_1
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
998 res
|= __builtin_lsx_vrotri_d(_1
, var
); // expected-error {{argument to '__builtin_lsx_vrotri_d' must be a constant integer}}
1002 v16i8
vsrlni_b_h(v16i8 _1
, v16i8 _2
, int var
) {
1003 v16i8 res
= __builtin_lsx_vsrlni_b_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1004 res
|= __builtin_lsx_vsrlni_b_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1005 res
|= __builtin_lsx_vsrlni_b_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrlni_b_h' must be a constant integer}}
1009 v8i16
vsrlni_h_w(v8i16 _1
, v8i16 _2
, int var
) {
1010 v8i16 res
= __builtin_lsx_vsrlni_h_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1011 res
|= __builtin_lsx_vsrlni_h_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1012 res
|= __builtin_lsx_vsrlni_h_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrlni_h_w' must be a constant integer}}
1016 v4i32
vsrlni_w_d(v4i32 _1
, v4i32 _2
, int var
) {
1017 v4i32 res
= __builtin_lsx_vsrlni_w_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1018 res
|= __builtin_lsx_vsrlni_w_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1019 res
|= __builtin_lsx_vsrlni_w_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrlni_w_d' must be a constant integer}}
1023 v2i64
vsrlni_d_q(v2i64 _1
, v2i64 _2
, int var
) {
1024 v2i64 res
= __builtin_lsx_vsrlni_d_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1025 res
|= __builtin_lsx_vsrlni_d_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1026 res
|= __builtin_lsx_vsrlni_d_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrlni_d_q' must be a constant integer}}
1030 v16i8
vsrlrni_b_h(v16i8 _1
, v16i8 _2
, int var
) {
1031 v16i8 res
= __builtin_lsx_vsrlrni_b_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1032 res
|= __builtin_lsx_vsrlrni_b_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1033 res
|= __builtin_lsx_vsrlrni_b_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrlrni_b_h' must be a constant integer}}
1037 v8i16
vsrlrni_h_w(v8i16 _1
, v8i16 _2
, int var
) {
1038 v8i16 res
= __builtin_lsx_vsrlrni_h_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1039 res
|= __builtin_lsx_vsrlrni_h_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1040 res
|= __builtin_lsx_vsrlrni_h_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrlrni_h_w' must be a constant integer}}
1044 v4i32
vsrlrni_w_d(v4i32 _1
, v4i32 _2
, int var
) {
1045 v4i32 res
= __builtin_lsx_vsrlrni_w_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1046 res
|= __builtin_lsx_vsrlrni_w_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1047 res
|= __builtin_lsx_vsrlrni_w_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrlrni_w_d' must be a constant integer}}
1051 v2i64
vsrlrni_d_q(v2i64 _1
, v2i64 _2
, int var
) {
1052 v2i64 res
= __builtin_lsx_vsrlrni_d_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1053 res
|= __builtin_lsx_vsrlrni_d_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1054 res
|= __builtin_lsx_vsrlrni_d_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrlrni_d_q' must be a constant integer}}
1058 v16i8
vssrlni_b_h(v16i8 _1
, v16i8 _2
, int var
) {
1059 v16i8 res
= __builtin_lsx_vssrlni_b_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1060 res
|= __builtin_lsx_vssrlni_b_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1061 res
|= __builtin_lsx_vssrlni_b_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlni_b_h' must be a constant integer}}
1065 v8i16
vssrlni_h_w(v8i16 _1
, v8i16 _2
, int var
) {
1066 v8i16 res
= __builtin_lsx_vssrlni_h_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1067 res
|= __builtin_lsx_vssrlni_h_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1068 res
|= __builtin_lsx_vssrlni_h_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlni_h_w' must be a constant integer}}
1072 v4i32
vssrlni_w_d(v4i32 _1
, v4i32 _2
, int var
) {
1073 v4i32 res
= __builtin_lsx_vssrlni_w_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1074 res
|= __builtin_lsx_vssrlni_w_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1075 res
|= __builtin_lsx_vssrlni_w_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlni_w_d' must be a constant integer}}
1079 v2i64
vssrlni_d_q(v2i64 _1
, v2i64 _2
, int var
) {
1080 v2i64 res
= __builtin_lsx_vssrlni_d_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1081 res
|= __builtin_lsx_vssrlni_d_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1082 res
|= __builtin_lsx_vssrlni_d_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlni_d_q' must be a constant integer}}
1086 v16u8
vssrlni_bu_h(v16u8 _1
, v16i8 _2
, int var
) {
1087 v16u8 res
= __builtin_lsx_vssrlni_bu_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1088 res
|= __builtin_lsx_vssrlni_bu_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1089 res
|= __builtin_lsx_vssrlni_bu_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlni_bu_h' must be a constant integer}}
1093 v8u16
vssrlni_hu_w(v8u16 _1
, v8i16 _2
, int var
) {
1094 v8u16 res
= __builtin_lsx_vssrlni_hu_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1095 res
|= __builtin_lsx_vssrlni_hu_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1096 res
|= __builtin_lsx_vssrlni_hu_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlni_hu_w' must be a constant integer}}
1100 v4u32
vssrlni_wu_d(v4u32 _1
, v4i32 _2
, int var
) {
1101 v4u32 res
= __builtin_lsx_vssrlni_wu_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1102 res
|= __builtin_lsx_vssrlni_wu_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1103 res
|= __builtin_lsx_vssrlni_wu_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlni_wu_d' must be a constant integer}}
1107 v2u64
vssrlni_du_q(v2u64 _1
, v2i64 _2
, int var
) {
1108 v2u64 res
= __builtin_lsx_vssrlni_du_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1109 res
|= __builtin_lsx_vssrlni_du_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1110 res
|= __builtin_lsx_vssrlni_du_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlni_du_q' must be a constant integer}}
1114 v16i8
vssrlrni_b_h(v16i8 _1
, v16i8 _2
, int var
) {
1115 v16i8 res
= __builtin_lsx_vssrlrni_b_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1116 res
|= __builtin_lsx_vssrlrni_b_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1117 res
|= __builtin_lsx_vssrlrni_b_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlrni_b_h' must be a constant integer}}
1121 v8i16
vssrlrni_h_w(v8i16 _1
, v8i16 _2
, int var
) {
1122 v8i16 res
= __builtin_lsx_vssrlrni_h_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1123 res
|= __builtin_lsx_vssrlrni_h_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1124 res
|= __builtin_lsx_vssrlrni_h_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlrni_h_w' must be a constant integer}}
1128 v4i32
vssrlrni_w_d(v4i32 _1
, v4i32 _2
, int var
) {
1129 v4i32 res
= __builtin_lsx_vssrlrni_w_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1130 res
|= __builtin_lsx_vssrlrni_w_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1131 res
|= __builtin_lsx_vssrlrni_w_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlrni_w_d' must be a constant integer}}
1135 v2i64
vssrlrni_d_q(v2i64 _1
, v2i64 _2
, int var
) {
1136 v2i64 res
= __builtin_lsx_vssrlrni_d_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1137 res
|= __builtin_lsx_vssrlrni_d_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1138 res
|= __builtin_lsx_vssrlrni_d_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlrni_d_q' must be a constant integer}}
1142 v16u8
vssrlrni_bu_h(v16u8 _1
, v16i8 _2
, int var
) {
1143 v16u8 res
= __builtin_lsx_vssrlrni_bu_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1144 res
|= __builtin_lsx_vssrlrni_bu_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1145 res
|= __builtin_lsx_vssrlrni_bu_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlrni_bu_h' must be a constant integer}}
1149 v8u16
vssrlrni_hu_w(v8u16 _1
, v8i16 _2
, int var
) {
1150 v8u16 res
= __builtin_lsx_vssrlrni_hu_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1151 res
|= __builtin_lsx_vssrlrni_hu_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1152 res
|= __builtin_lsx_vssrlrni_hu_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlrni_hu_w' must be a constant integer}}
1156 v4u32
vssrlrni_wu_d(v4u32 _1
, v4i32 _2
, int var
) {
1157 v4u32 res
= __builtin_lsx_vssrlrni_wu_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1158 res
|= __builtin_lsx_vssrlrni_wu_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1159 res
|= __builtin_lsx_vssrlrni_wu_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlrni_wu_d' must be a constant integer}}
1163 v2u64
vssrlrni_du_q(v2u64 _1
, v2i64 _2
, int var
) {
1164 v2u64 res
= __builtin_lsx_vssrlrni_du_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1165 res
|= __builtin_lsx_vssrlrni_du_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1166 res
|= __builtin_lsx_vssrlrni_du_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrlrni_du_q' must be a constant integer}}
1170 v16i8
vsrani_b_h(v16i8 _1
, v16i8 _2
, int var
) {
1171 v16i8 res
= __builtin_lsx_vsrani_b_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1172 res
|= __builtin_lsx_vsrani_b_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1173 res
|= __builtin_lsx_vsrani_b_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrani_b_h' must be a constant integer}}
1177 v8i16
vsrani_h_w(v8i16 _1
, v8i16 _2
, int var
) {
1178 v8i16 res
= __builtin_lsx_vsrani_h_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1179 res
|= __builtin_lsx_vsrani_h_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1180 res
|= __builtin_lsx_vsrani_h_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrani_h_w' must be a constant integer}}
1184 v4i32
vsrani_w_d(v4i32 _1
, v4i32 _2
, int var
) {
1185 v4i32 res
= __builtin_lsx_vsrani_w_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1186 res
|= __builtin_lsx_vsrani_w_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1187 res
|= __builtin_lsx_vsrani_w_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrani_w_d' must be a constant integer}}
1191 v2i64
vsrani_d_q(v2i64 _1
, v2i64 _2
, int var
) {
1192 v2i64 res
= __builtin_lsx_vsrani_d_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1193 res
|= __builtin_lsx_vsrani_d_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1194 res
|= __builtin_lsx_vsrani_d_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrani_d_q' must be a constant integer}}
1198 v16i8
vsrarni_b_h(v16i8 _1
, v16i8 _2
, int var
) {
1199 v16i8 res
= __builtin_lsx_vsrarni_b_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1200 res
|= __builtin_lsx_vsrarni_b_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1201 res
|= __builtin_lsx_vsrarni_b_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrarni_b_h' must be a constant integer}}
1205 v8i16
vsrarni_h_w(v8i16 _1
, v8i16 _2
, int var
) {
1206 v8i16 res
= __builtin_lsx_vsrarni_h_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1207 res
|= __builtin_lsx_vsrarni_h_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1208 res
|= __builtin_lsx_vsrarni_h_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrarni_h_w' must be a constant integer}}
1212 v4i32
vsrarni_w_d(v4i32 _1
, v4i32 _2
, int var
) {
1213 v4i32 res
= __builtin_lsx_vsrarni_w_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1214 res
|= __builtin_lsx_vsrarni_w_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1215 res
|= __builtin_lsx_vsrarni_w_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrarni_w_d' must be a constant integer}}
1219 v2i64
vsrarni_d_q(v2i64 _1
, v2i64 _2
, int var
) {
1220 v2i64 res
= __builtin_lsx_vsrarni_d_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1221 res
|= __builtin_lsx_vsrarni_d_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1222 res
|= __builtin_lsx_vsrarni_d_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vsrarni_d_q' must be a constant integer}}
1226 v16i8
vssrani_b_h(v16i8 _1
, v16i8 _2
, int var
) {
1227 v16i8 res
= __builtin_lsx_vssrani_b_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1228 res
|= __builtin_lsx_vssrani_b_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1229 res
|= __builtin_lsx_vssrani_b_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrani_b_h' must be a constant integer}}
1233 v8i16
vssrani_h_w(v8i16 _1
, v8i16 _2
, int var
) {
1234 v8i16 res
= __builtin_lsx_vssrani_h_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1235 res
|= __builtin_lsx_vssrani_h_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1236 res
|= __builtin_lsx_vssrani_h_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrani_h_w' must be a constant integer}}
1240 v4i32
vssrani_w_d(v4i32 _1
, v4i32 _2
, int var
) {
1241 v4i32 res
= __builtin_lsx_vssrani_w_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1242 res
|= __builtin_lsx_vssrani_w_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1243 res
|= __builtin_lsx_vssrani_w_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrani_w_d' must be a constant integer}}
1247 v2i64
vssrani_d_q(v2i64 _1
, v2i64 _2
, int var
) {
1248 v2i64 res
= __builtin_lsx_vssrani_d_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1249 res
|= __builtin_lsx_vssrani_d_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1250 res
|= __builtin_lsx_vssrani_d_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrani_d_q' must be a constant integer}}
1254 v16u8
vssrani_bu_h(v16u8 _1
, v16i8 _2
, int var
) {
1255 v16u8 res
= __builtin_lsx_vssrani_bu_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1256 res
|= __builtin_lsx_vssrani_bu_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1257 res
|= __builtin_lsx_vssrani_bu_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrani_bu_h' must be a constant integer}}
1261 v8u16
vssrani_hu_w(v8u16 _1
, v8i16 _2
, int var
) {
1262 v8u16 res
= __builtin_lsx_vssrani_hu_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1263 res
|= __builtin_lsx_vssrani_hu_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1264 res
|= __builtin_lsx_vssrani_hu_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrani_hu_w' must be a constant integer}}
1268 v4u32
vssrani_wu_d(v4u32 _1
, v4i32 _2
, int var
) {
1269 v4u32 res
= __builtin_lsx_vssrani_wu_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1270 res
|= __builtin_lsx_vssrani_wu_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1271 res
|= __builtin_lsx_vssrani_wu_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrani_wu_d' must be a constant integer}}
1275 v2u64
vssrani_du_q(v2u64 _1
, v2i64 _2
, int var
) {
1276 v2u64 res
= __builtin_lsx_vssrani_du_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1277 res
|= __builtin_lsx_vssrani_du_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1278 res
|= __builtin_lsx_vssrani_du_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrani_du_q' must be a constant integer}}
1282 v16i8
vssrarni_b_h(v16i8 _1
, v16i8 _2
, int var
) {
1283 v16i8 res
= __builtin_lsx_vssrarni_b_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1284 res
|= __builtin_lsx_vssrarni_b_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1285 res
|= __builtin_lsx_vssrarni_b_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrarni_b_h' must be a constant integer}}
1289 v8i16
vssrarni_h_w(v8i16 _1
, v8i16 _2
, int var
) {
1290 v8i16 res
= __builtin_lsx_vssrarni_h_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1291 res
|= __builtin_lsx_vssrarni_h_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1292 res
|= __builtin_lsx_vssrarni_h_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrarni_h_w' must be a constant integer}}
1296 v4i32
vssrarni_w_d(v4i32 _1
, v4i32 _2
, int var
) {
1297 v4i32 res
= __builtin_lsx_vssrarni_w_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1298 res
|= __builtin_lsx_vssrarni_w_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1299 res
|= __builtin_lsx_vssrarni_w_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrarni_w_d' must be a constant integer}}
1303 v2i64
vssrarni_d_q(v2i64 _1
, v2i64 _2
, int var
) {
1304 v2i64 res
= __builtin_lsx_vssrarni_d_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1305 res
|= __builtin_lsx_vssrarni_d_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1306 res
|= __builtin_lsx_vssrarni_d_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrarni_d_q' must be a constant integer}}
1310 v16u8
vssrarni_bu_h(v16u8 _1
, v16i8 _2
, int var
) {
1311 v16u8 res
= __builtin_lsx_vssrarni_bu_h(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}}
1312 res
|= __builtin_lsx_vssrarni_bu_h(_1
, _2
, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
1313 res
|= __builtin_lsx_vssrarni_bu_h(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrarni_bu_h' must be a constant integer}}
1317 v8u16
vssrarni_hu_w(v8u16 _1
, v8i16 _2
, int var
) {
1318 v8u16 res
= __builtin_lsx_vssrarni_hu_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}}
1319 res
|= __builtin_lsx_vssrarni_hu_w(_1
, _2
, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}}
1320 res
|= __builtin_lsx_vssrarni_hu_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrarni_hu_w' must be a constant integer}}
1324 v4u32
vssrarni_wu_d(v4u32 _1
, v4i32 _2
, int var
) {
1325 v4u32 res
= __builtin_lsx_vssrarni_wu_d(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}}
1326 res
|= __builtin_lsx_vssrarni_wu_d(_1
, _2
, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}}
1327 res
|= __builtin_lsx_vssrarni_wu_d(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrarni_wu_d' must be a constant integer}}
1331 v2u64
vssrarni_du_q(v2u64 _1
, v2i64 _2
, int var
) {
1332 v2u64 res
= __builtin_lsx_vssrarni_du_q(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}}
1333 res
|= __builtin_lsx_vssrarni_du_q(_1
, _2
, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}}
1334 res
|= __builtin_lsx_vssrarni_du_q(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vssrarni_du_q' must be a constant integer}}
1338 v4i32
vpermi_w(v4i32 _1
, v4i32 _2
, int var
) {
1339 v4i32 res
= __builtin_lsx_vpermi_w(_1
, _2
, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}}
1340 res
|= __builtin_lsx_vpermi_w(_1
, _2
, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
1341 res
|= __builtin_lsx_vpermi_w(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vpermi_w' must be a constant integer}}
1345 v16i8
vld(void *_1
, int var
) {
1346 v16i8 res
= __builtin_lsx_vld(_1
, -2049); // expected-error {{argument value -2049 is outside the valid range [-2048, 2047]}}
1347 res
|= __builtin_lsx_vld(_1
, 2048); // expected-error {{argument value 2048 is outside the valid range [-2048, 2047]}}
1348 res
|= __builtin_lsx_vld(_1
, var
); // expected-error {{argument to '__builtin_lsx_vld' must be a constant integer}}
1352 void vst(v16i8 _1
, void *_2
, int var
) {
1353 __builtin_lsx_vst(_1
, _2
, -2049); // expected-error {{argument value -2049 is outside the valid range [-2048, 2047]}}
1354 __builtin_lsx_vst(_1
, _2
, 2048); // expected-error {{argument value 2048 is outside the valid range [-2048, 2047]}}
1355 __builtin_lsx_vst(_1
, _2
, var
); // expected-error {{argument to '__builtin_lsx_vst' must be a constant integer}}
1358 v2i64
vldi(int var
) {
1359 v2i64 res
= __builtin_lsx_vldi(-4097); // expected-error {{argument value -4097 is outside the valid range [-4096, 4095]}}
1360 res
|= __builtin_lsx_vldi(4096); // expected-error {{argument value 4096 is outside the valid range [-4096, 4095]}}
1361 res
|= __builtin_lsx_vldi(var
); // expected-error {{argument to '__builtin_lsx_vldi' must be a constant integer}}
1365 v16i8
vrepli_b(int var
) {
1366 v16i8 res
= __builtin_lsx_vrepli_b(-513); // expected-error {{argument value -513 is outside the valid range [-512, 511]}}
1367 res
|= __builtin_lsx_vrepli_b(512); // expected-error {{argument value 512 is outside the valid range [-512, 511]}}
1368 res
|= __builtin_lsx_vrepli_b(var
); // expected-error {{argument to '__builtin_lsx_vrepli_b' must be a constant integer}}
1372 v2i64
vrepli_d(int var
) {
1373 v2i64 res
= __builtin_lsx_vrepli_d(-513); // expected-error {{argument value -513 is outside the valid range [-512, 511]}}
1374 res
|= __builtin_lsx_vrepli_d(512); // expected-error {{argument value 512 is outside the valid range [-512, 511]}}
1375 res
|= __builtin_lsx_vrepli_d(var
); // expected-error {{argument to '__builtin_lsx_vrepli_d' must be a constant integer}}
1379 v8i16
vrepli_h(int var
) {
1380 v8i16 res
= __builtin_lsx_vrepli_h(-513); // expected-error {{argument value -513 is outside the valid range [-512, 511]}}
1381 res
|= __builtin_lsx_vrepli_h(512); // expected-error {{argument value 512 is outside the valid range [-512, 511]}}
1382 res
|= __builtin_lsx_vrepli_h(var
); // expected-error {{argument to '__builtin_lsx_vrepli_h' must be a constant integer}}
1386 v4i32
vrepli_w(int var
) {
1387 v4i32 res
= __builtin_lsx_vrepli_w(-513); // expected-error {{argument value -513 is outside the valid range [-512, 511]}}
1388 res
|= __builtin_lsx_vrepli_w(512); // expected-error {{argument value 512 is outside the valid range [-512, 511]}}
1389 res
|= __builtin_lsx_vrepli_w(var
); // expected-error {{argument to '__builtin_lsx_vrepli_w' must be a constant integer}}