| 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 \ |
| 3 |
// RUN: | FileCheck %s |
| 4 |
|
| 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))); |
| 25 |
|
| 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__)); |
| 29 |
|
| 30 |
#ifdef FEATURE_CHECK |
| 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); |
| 34 |
} |
| 35 |
#endif |
| 36 |
|
| 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}} |
| 41 |
return res; |
| 42 |
} |
| 43 |
|
| 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}} |
| 48 |
return res; |
| 49 |
} |
| 50 |
|
| 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}} |
| 55 |
return res; |
| 56 |
} |
| 57 |
|
| 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}} |
| 62 |
return res; |
| 63 |
} |
| 64 |
|
| 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}} |
| 69 |
return res; |
| 70 |
} |
| 71 |
|
| 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}} |
| 76 |
return res; |
| 77 |
} |
| 78 |
|
| 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}} |
| 83 |
return res; |
| 84 |
} |
| 85 |
|
| 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}} |
| 90 |
return res; |
| 91 |
} |
| 92 |
|
| 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}} |
| 97 |
return res; |
| 98 |
} |
| 99 |
|
| 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}} |
| 104 |
return res; |
| 105 |
} |
| 106 |
|
| 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}} |
| 111 |
return res; |
| 112 |
} |
| 113 |
|
| 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}} |
| 118 |
return res; |
| 119 |
} |
| 120 |
|
| 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}} |
| 125 |
return res; |
| 126 |
} |
| 127 |
|
| 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}} |
| 132 |
return res; |
| 133 |
} |
| 134 |
|
| 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}} |
| 139 |
return res; |
| 140 |
} |
| 141 |
|
| 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}} |
| 146 |
return res; |
| 147 |
} |
| 148 |
|
| 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}} |
| 153 |
return res; |
| 154 |
} |
| 155 |
|
| 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}} |
| 160 |
return res; |
| 161 |
} |
| 162 |
|
| 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}} |
| 167 |
return res; |
| 168 |
} |
| 169 |
|
| 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}} |
| 174 |
return res; |
| 175 |
} |
| 176 |
|
| 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}} |
| 181 |
return res; |
| 182 |
} |
| 183 |
|
| 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}} |
| 188 |
return res; |
| 189 |
} |
| 190 |
|
| 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}} |
| 195 |
return res; |
| 196 |
} |
| 197 |
|
| 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}} |
| 202 |
return res; |
| 203 |
} |
| 204 |
|
| 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}} |
| 209 |
return res; |
| 210 |
} |
| 211 |
|
| 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}} |
| 216 |
return res; |
| 217 |
} |
| 218 |
|
| 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}} |
| 223 |
return res; |
| 224 |
} |
| 225 |
|
| 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}} |
| 230 |
return res; |
| 231 |
} |
| 232 |
|
| 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}} |
| 237 |
return res; |
| 238 |
} |
| 239 |
|
| 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}} |
| 244 |
return res; |
| 245 |
} |
| 246 |
|
| 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}} |
| 251 |
return res; |
| 252 |
} |
| 253 |
|
| 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}} |
| 258 |
return res; |
| 259 |
} |
| 260 |
|
| 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}} |
| 265 |
return res; |
| 266 |
} |
| 267 |
|
| 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}} |
| 272 |
return res; |
| 273 |
} |
| 274 |
|
| 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}} |
| 279 |
return res; |
| 280 |
} |
| 281 |
|
| 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}} |
| 286 |
return res; |
| 287 |
} |
| 288 |
|
| 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}} |
| 293 |
return res; |
| 294 |
} |
| 295 |
|
| 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}} |
| 300 |
return res; |
| 301 |
} |
| 302 |
|
| 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}} |
| 307 |
return res; |
| 308 |
} |
| 309 |
|
| 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}} |
| 314 |
return res; |
| 315 |
} |
| 316 |
|
| 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}} |
| 321 |
return res; |
| 322 |
} |
| 323 |
|
| 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}} |
| 328 |
return res; |
| 329 |
} |
| 330 |
|
| 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}} |
| 335 |
return res; |
| 336 |
} |
| 337 |
|
| 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}} |
| 342 |
return res; |
| 343 |
} |
| 344 |
|
| 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}} |
| 349 |
return res; |
| 350 |
} |
| 351 |
|
| 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}} |
| 356 |
return res; |
| 357 |
} |
| 358 |
|
| 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}} |
| 363 |
return res; |
| 364 |
} |
| 365 |
|
| 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}} |
| 370 |
return res; |
| 371 |
} |
| 372 |
|
| 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}} |
| 377 |
return res; |
| 378 |
} |
| 379 |
|
| 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}}} |
| 384 |
return res; |
| 385 |
} |
| 386 |
|
| 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}} |
| 391 |
return res; |
| 392 |
} |
| 393 |
|
| 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}} |
| 398 |
return res; |
| 399 |
} |
| 400 |
|
| 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}} |
| 405 |
return res; |
| 406 |
} |
| 407 |
|
| 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}} |
| 412 |
return res; |
| 413 |
} |
| 414 |
|
| 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}} |
| 419 |
return res; |
| 420 |
} |
| 421 |
|
| 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}} |
| 426 |
return res; |
| 427 |
} |
| 428 |
|
| 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}} |
| 433 |
return res; |
| 434 |
} |
| 435 |
|
| 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}} |
| 440 |
return res; |
| 441 |
} |
| 442 |
|
| 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}} |
| 447 |
return res; |
| 448 |
} |
| 449 |
|
| 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}} |
| 454 |
return res; |
| 455 |
} |
| 456 |
|
| 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}} |
| 461 |
return res; |
| 462 |
} |
| 463 |
|
| 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}} |
| 468 |
return res; |
| 469 |
} |
| 470 |
|
| 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}} |
| 475 |
return res; |
| 476 |
} |
| 477 |
|
| 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}} |
| 482 |
return res; |
| 483 |
} |
| 484 |
|
| 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}} |
| 489 |
return res; |
| 490 |
} |
| 491 |
|
| 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}} |
| 496 |
return res; |
| 497 |
} |
| 498 |
|
| 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}} |
| 503 |
return res; |
| 504 |
} |
| 505 |
|
| 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}} |
| 510 |
return res; |
| 511 |
} |
| 512 |
|
| 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}} |
| 517 |
return res; |
| 518 |
} |
| 519 |
|
| 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}} |
| 524 |
return res; |
| 525 |
} |
| 526 |
|
| 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}} |
| 531 |
return res; |
| 532 |
} |
| 533 |
|
| 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}} |
| 538 |
return res; |
| 539 |
} |
| 540 |
|
| 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}} |
| 545 |
return res; |
| 546 |
} |
| 547 |
|
| 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}} |
| 552 |
return res; |
| 553 |
} |
| 554 |
|
| 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}} |
| 559 |
return res; |
| 560 |
} |
| 561 |
|
| 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}} |
| 566 |
return res; |
| 567 |
} |
| 568 |
|
| 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}} |
| 573 |
return res; |
| 574 |
} |
| 575 |
|
| 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}} |
| 580 |
return res; |
| 581 |
} |
| 582 |
|
| 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}} |
| 587 |
return res; |
| 588 |
} |
| 589 |
|
| 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}} |
| 594 |
return res; |
| 595 |
} |
| 596 |
|
| 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}} |
| 601 |
return res; |
| 602 |
} |
| 603 |
|
| 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}} |
| 608 |
return res; |
| 609 |
} |
| 610 |
|
| 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}} |
| 615 |
return res; |
| 616 |
} |
| 617 |
|
| 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}} |
| 622 |
return res; |
| 623 |
} |
| 624 |
|
| 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}} |
| 629 |
return res; |
| 630 |
} |
| 631 |
|
| 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}} |
| 636 |
return res; |
| 637 |
} |
| 638 |
|
| 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}} |
| 643 |
return res; |
| 644 |
} |
| 645 |
|
| 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}} |
| 650 |
return res; |
| 651 |
} |
| 652 |
|
| 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}} |
| 657 |
return res; |
| 658 |
} |
| 659 |
|
| 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}} |
| 664 |
return res; |
| 665 |
} |
| 666 |
|
| 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}} |
| 671 |
return res; |
| 672 |
} |
| 673 |
|
| 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}} |
| 678 |
return res; |
| 679 |
} |
| 680 |
|
| 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}} |
| 685 |
return res; |
| 686 |
} |
| 687 |
|
| 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}} |
| 692 |
return res; |
| 693 |
} |
| 694 |
|
| 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}} |
| 699 |
return res; |
| 700 |
} |
| 701 |
|
| 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}} |
| 706 |
return res; |
| 707 |
} |
| 708 |
|
| 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}} |
| 713 |
return res; |
| 714 |
} |
| 715 |
|
| 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}} |
| 720 |
return res; |
| 721 |
} |
| 722 |
|
| 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}} |
| 727 |
return res; |
| 728 |
} |
| 729 |
|
| 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}} |
| 734 |
return res; |
| 735 |
} |
| 736 |
|
| 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}} |
| 741 |
return res; |
| 742 |
} |
| 743 |
|
| 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}} |
| 748 |
return res; |
| 749 |
} |
| 750 |
|
| 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}} |
| 755 |
return res; |
| 756 |
} |
| 757 |
|
| 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}} |
| 762 |
return res; |
| 763 |
} |
| 764 |
|
| 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}} |
| 769 |
return res; |
| 770 |
} |
| 771 |
|
| 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}} |
| 776 |
return res; |
| 777 |
} |
| 778 |
|
| 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}} |
| 783 |
return res; |
| 784 |
} |
| 785 |
|
| 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}} |
| 790 |
return res; |
| 791 |
} |
| 792 |
|
| 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}} |
| 797 |
return res; |
| 798 |
} |
| 799 |
|
| 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}} |
| 804 |
return res; |
| 805 |
} |
| 806 |
|
| 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}} |
| 811 |
return res; |
| 812 |
} |
| 813 |
|
| 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}} |
| 818 |
return res; |
| 819 |
} |
| 820 |
|
| 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}} |
| 825 |
return res; |
| 826 |
} |
| 827 |
|
| 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}} |
| 832 |
return res; |
| 833 |
} |
| 834 |
|
| 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}} |
| 839 |
return res; |
| 840 |
} |
| 841 |
|
| 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}} |
| 846 |
return res; |
| 847 |
} |
| 848 |
|
| 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}} |
| 853 |
return res; |
| 854 |
} |
| 855 |
|
| 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}} |
| 860 |
return res; |
| 861 |
} |
| 862 |
|
| 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}} |
| 867 |
return res; |
| 868 |
} |
| 869 |
|
| 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}} |
| 874 |
return res; |
| 875 |
} |
| 876 |
|
| 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}} |
| 881 |
return res; |
| 882 |
} |
| 883 |
|
| 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}} |
| 888 |
return res; |
| 889 |
} |
| 890 |
|
| 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}} |
| 895 |
return res; |
| 896 |
} |
| 897 |
|
| 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}} |
| 902 |
} |
| 903 |
|
| 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}} |
| 908 |
} |
| 909 |
|
| 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}} |
| 914 |
} |
| 915 |
|
| 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}} |
| 920 |
} |
| 921 |
|
| 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}} |
| 926 |
} |
| 927 |
|
| 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}} |
| 932 |
} |
| 933 |
|
| 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}} |
| 938 |
} |
| 939 |
|
| 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}} |
| 944 |
} |
| 945 |
|
| 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}} |
| 950 |
return res; |
| 951 |
} |
| 952 |
|
| 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}} |
| 957 |
return res; |
| 958 |
} |
| 959 |
|
| 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}} |
| 964 |
return res; |
| 965 |
} |
| 966 |
|
| 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}} |
| 971 |
return res; |
| 972 |
} |
| 973 |
|
| 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}} |
| 978 |
return res; |
| 979 |
} |
| 980 |
|
| 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}} |
| 985 |
return res; |
| 986 |
} |
| 987 |
|
| 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}} |
| 992 |
return res; |
| 993 |
} |
| 994 |
|
| 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}} |
| 999 |
return res; |
| 1000 |
} |
| 1001 |
|
| 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}} |
| 1006 |
return res; |
| 1007 |
} |
| 1008 |
|
| 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}} |
| 1013 |
return res; |
| 1014 |
} |
| 1015 |
|
| 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}} |
| 1020 |
return res; |
| 1021 |
} |
| 1022 |
|
| 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}} |
| 1027 |
return res; |
| 1028 |
} |
| 1029 |
|
| 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}} |
| 1034 |
return res; |
| 1035 |
} |
| 1036 |
|
| 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}} |
| 1041 |
return res; |
| 1042 |
} |
| 1043 |
|
| 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}} |
| 1048 |
return res; |
| 1049 |
} |
| 1050 |
|
| 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}} |
| 1055 |
return res; |
| 1056 |
} |
| 1057 |
|
| 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}} |
| 1062 |
return res; |
| 1063 |
} |
| 1064 |
|
| 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}} |
| 1069 |
return res; |
| 1070 |
} |
| 1071 |
|
| 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}} |
| 1076 |
return res; |
| 1077 |
} |
| 1078 |
|
| 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}} |
| 1083 |
return res; |
| 1084 |
} |
| 1085 |
|
| 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}} |
| 1090 |
return res; |
| 1091 |
} |
| 1092 |
|
| 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}} |
| 1097 |
return res; |
| 1098 |
} |
| 1099 |
|
| 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}} |
| 1104 |
return res; |
| 1105 |
} |
| 1106 |
|
| 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}} |
| 1111 |
return res; |
| 1112 |
} |
| 1113 |
|
| 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}} |
| 1118 |
return res; |
| 1119 |
} |
| 1120 |
|
| 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}} |
| 1125 |
return res; |
| 1126 |
} |
| 1127 |
|
| 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}} |
| 1132 |
return res; |
| 1133 |
} |
| 1134 |
|
| 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}} |
| 1139 |
return res; |
| 1140 |
} |
| 1141 |
|
| 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}} |
| 1146 |
return res; |
| 1147 |
} |
| 1148 |
|
| 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}} |
| 1153 |
return res; |
| 1154 |
} |
| 1155 |
|
| 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}} |
| 1160 |
return res; |
| 1161 |
} |
| 1162 |
|
| 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}} |
| 1167 |
return res; |
| 1168 |
} |
| 1169 |
|
| 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}} |
| 1174 |
return res; |
| 1175 |
} |
| 1176 |
|
| 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}} |
| 1181 |
return res; |
| 1182 |
} |
| 1183 |
|
| 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}} |
| 1188 |
return res; |
| 1189 |
} |
| 1190 |
|
| 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}} |
| 1195 |
return res; |
| 1196 |
} |
| 1197 |
|
| 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}} |
| 1202 |
return res; |
| 1203 |
} |
| 1204 |
|
| 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}} |
| 1209 |
return res; |
| 1210 |
} |
| 1211 |
|
| 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}} |
| 1216 |
return res; |
| 1217 |
} |
| 1218 |
|
| 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}} |
| 1223 |
return res; |
| 1224 |
} |
| 1225 |
|
| 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}} |
| 1230 |
return res; |
| 1231 |
} |
| 1232 |
|
| 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}} |
| 1237 |
return res; |
| 1238 |
} |
| 1239 |
|
| 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}} |
| 1244 |
return res; |
| 1245 |
} |
| 1246 |
|
| 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}} |
| 1251 |
return res; |
| 1252 |
} |
| 1253 |
|
| 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}} |
| 1258 |
return res; |
| 1259 |
} |
| 1260 |
|
| 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}} |
| 1265 |
return res; |
| 1266 |
} |
| 1267 |
|
| 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}} |
| 1272 |
return res; |
| 1273 |
} |
| 1274 |
|
| 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}} |
| 1279 |
return res; |
| 1280 |
} |
| 1281 |
|
| 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}} |
| 1286 |
return res; |
| 1287 |
} |
| 1288 |
|
| 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}} |
| 1293 |
return res; |
| 1294 |
} |
| 1295 |
|
| 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}} |
| 1300 |
return res; |
| 1301 |
} |
| 1302 |
|
| 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}} |
| 1307 |
return res; |
| 1308 |
} |
| 1309 |
|
| 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}} |
| 1314 |
return res; |
| 1315 |
} |
| 1316 |
|
| 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}} |
| 1321 |
return res; |
| 1322 |
} |
| 1323 |
|
| 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}} |
| 1328 |
return res; |
| 1329 |
} |
| 1330 |
|
| 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}} |
| 1335 |
return res; |
| 1336 |
} |
| 1337 |
|
| 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}} |
| 1342 |
return res; |
| 1343 |
} |
| 1344 |
|
| 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}} |
| 1349 |
return res; |
| 1350 |
} |
| 1351 |
|
| 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}} |
| 1356 |
} |
| 1357 |
|
| 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}} |
| 1362 |
return res; |
| 1363 |
} |
| 1364 |
|
| 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}} |
| 1369 |
return res; |
| 1370 |
} |
| 1371 |
|
| 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}} |
| 1376 |
return res; |
| 1377 |
} |
| 1378 |
|
| 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}} |
| 1383 |
return res; |
| 1384 |
} |
| 1385 |
|
| 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}} |
| 1390 |
return res; |
| 1391 |
} |