| 1 |
// RUN: %clang_cc1 -triple loongarch64 -target-feature +lasx -verify %s |
| 2 |
// RUN: not %clang_cc1 -triple loongarch64 -DFEATURE_CHECK -emit-llvm %s -o /dev/null 2>&1 \ |
| 3 |
// RUN: | FileCheck %s |
| 4 |
|
| 5 |
typedef signed char v32i8 __attribute__((vector_size(32), aligned(32))); |
| 6 |
typedef signed char v32i8_b __attribute__((vector_size(32), aligned(1))); |
| 7 |
typedef unsigned char v32u8 __attribute__((vector_size(32), aligned(32))); |
| 8 |
typedef unsigned char v32u8_b __attribute__((vector_size(32), aligned(1))); |
| 9 |
typedef short v16i16 __attribute__((vector_size(32), aligned(32))); |
| 10 |
typedef short v16i16_h __attribute__((vector_size(32), aligned(2))); |
| 11 |
typedef unsigned short v16u16 __attribute__((vector_size(32), aligned(32))); |
| 12 |
typedef unsigned short v16u16_h __attribute__((vector_size(32), aligned(2))); |
| 13 |
typedef int v8i32 __attribute__((vector_size(32), aligned(32))); |
| 14 |
typedef int v8i32_w __attribute__((vector_size(32), aligned(4))); |
| 15 |
typedef unsigned int v8u32 __attribute__((vector_size(32), aligned(32))); |
| 16 |
typedef unsigned int v8u32_w __attribute__((vector_size(32), aligned(4))); |
| 17 |
typedef long long v4i64 __attribute__((vector_size(32), aligned(32))); |
| 18 |
typedef long long v4i64_d __attribute__((vector_size(32), aligned(8))); |
| 19 |
typedef unsigned long long v4u64 __attribute__((vector_size(32), aligned(32))); |
| 20 |
typedef unsigned long long v4u64_d __attribute__((vector_size(32), aligned(8))); |
| 21 |
typedef float v8f32 __attribute__((vector_size(32), aligned(32))); |
| 22 |
typedef float v8f32_w __attribute__((vector_size(32), aligned(4))); |
| 23 |
typedef double v4f64 __attribute__((vector_size(32), aligned(32))); |
| 24 |
typedef double v4f64_d __attribute__((vector_size(32), aligned(8))); |
| 25 |
|
| 26 |
#ifdef FEATURE_CHECK |
| 27 |
void test_feature(v32i8 _1) { |
| 28 |
// CHECK: error: '__builtin_lasx_xvslli_b' needs target feature lasx |
| 29 |
(void)__builtin_lasx_xvslli_b(_1, 1); |
| 30 |
} |
| 31 |
#endif |
| 32 |
|
| 33 |
v32i8 xvslli_b(v32i8 _1, int var) { |
| 34 |
v32i8 res = __builtin_lasx_xvslli_b(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}} |
| 35 |
res |= __builtin_lasx_xvslli_b(_1, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}} |
| 36 |
res |= __builtin_lasx_xvslli_b(_1, var); // expected-error {{argument to '__builtin_lasx_xvslli_b' must be a constant integer}} |
| 37 |
return res; |
| 38 |
} |
| 39 |
|
| 40 |
v16i16 xvslli_h(v16i16 _1, int var) { |
| 41 |
v16i16 res = __builtin_lasx_xvslli_h(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 42 |
res |= __builtin_lasx_xvslli_h(_1, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 43 |
res |= __builtin_lasx_xvslli_h(_1, var); // expected-error {{argument to '__builtin_lasx_xvslli_h' must be a constant integer}} |
| 44 |
return res; |
| 45 |
} |
| 46 |
|
| 47 |
v8i32 xvslli_w(v8i32 _1, int var) { |
| 48 |
v8i32 res = __builtin_lasx_xvslli_w(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 49 |
res |= __builtin_lasx_xvslli_w(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 50 |
res |= __builtin_lasx_xvslli_w(_1, var); // expected-error {{argument to '__builtin_lasx_xvslli_w' must be a constant integer}} |
| 51 |
return res; |
| 52 |
} |
| 53 |
|
| 54 |
v4i64 xvslli_d(v4i64 _1, int var) { |
| 55 |
v4i64 res = __builtin_lasx_xvslli_d(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}} |
| 56 |
res |= __builtin_lasx_xvslli_d(_1, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}} |
| 57 |
res |= __builtin_lasx_xvslli_d(_1, var); // expected-error {{argument to '__builtin_lasx_xvslli_d' must be a constant integer}} |
| 58 |
return res; |
| 59 |
} |
| 60 |
|
| 61 |
v32i8 xvsrai_b(v32i8 _1, int var) { |
| 62 |
v32i8 res = __builtin_lasx_xvsrai_b(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}} |
| 63 |
res |= __builtin_lasx_xvsrai_b(_1, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}} |
| 64 |
res |= __builtin_lasx_xvsrai_b(_1, var); // expected-error {{argument to '__builtin_lasx_xvsrai_b' must be a constant integer}} |
| 65 |
return res; |
| 66 |
} |
| 67 |
|
| 68 |
v16i16 xvsrai_h(v16i16 _1, int var) { |
| 69 |
v16i16 res = __builtin_lasx_xvsrai_h(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 70 |
res |= __builtin_lasx_xvsrai_h(_1, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 71 |
res |= __builtin_lasx_xvsrai_h(_1, var); // expected-error {{argument to '__builtin_lasx_xvsrai_h' must be a constant integer}} |
| 72 |
return res; |
| 73 |
} |
| 74 |
|
| 75 |
v8i32 xvsrai_w(v8i32 _1, int var) { |
| 76 |
v8i32 res = __builtin_lasx_xvsrai_w(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 77 |
res |= __builtin_lasx_xvsrai_w(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 78 |
res |= __builtin_lasx_xvsrai_w(_1, var); // expected-error {{argument to '__builtin_lasx_xvsrai_w' must be a constant integer}} |
| 79 |
return res; |
| 80 |
} |
| 81 |
|
| 82 |
v4i64 xvsrai_d(v4i64 _1, int var) { |
| 83 |
v4i64 res = __builtin_lasx_xvsrai_d(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}} |
| 84 |
res |= __builtin_lasx_xvsrai_d(_1, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}} |
| 85 |
res |= __builtin_lasx_xvsrai_d(_1, var); // expected-error {{argument to '__builtin_lasx_xvsrai_d' must be a constant integer}} |
| 86 |
return res; |
| 87 |
} |
| 88 |
|
| 89 |
v32i8 xvsrari_b(v32i8 _1, int var) { |
| 90 |
v32i8 res = __builtin_lasx_xvsrari_b(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}} |
| 91 |
res |= __builtin_lasx_xvsrari_b(_1, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}} |
| 92 |
res |= __builtin_lasx_xvsrari_b(_1, var); // expected-error {{argument to '__builtin_lasx_xvsrari_b' must be a constant integer}} |
| 93 |
return res; |
| 94 |
} |
| 95 |
|
| 96 |
v16i16 xvsrari_h(v16i16 _1, int var) { |
| 97 |
v16i16 res = __builtin_lasx_xvsrari_h(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 98 |
res |= __builtin_lasx_xvsrari_h(_1, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 99 |
res |= __builtin_lasx_xvsrari_h(_1, var); // expected-error {{argument to '__builtin_lasx_xvsrari_h' must be a constant integer}} |
| 100 |
return res; |
| 101 |
} |
| 102 |
|
| 103 |
v8i32 xvsrari_w(v8i32 _1, int var) { |
| 104 |
v8i32 res = __builtin_lasx_xvsrari_w(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 105 |
res |= __builtin_lasx_xvsrari_w(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 106 |
res |= __builtin_lasx_xvsrari_w(_1, var); // expected-error {{argument to '__builtin_lasx_xvsrari_w' must be a constant integer}} |
| 107 |
return res; |
| 108 |
} |
| 109 |
|
| 110 |
v4i64 xvsrari_d(v4i64 _1, int var) { |
| 111 |
v4i64 res = __builtin_lasx_xvsrari_d(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}} |
| 112 |
res |= __builtin_lasx_xvsrari_d(_1, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}} |
| 113 |
res |= __builtin_lasx_xvsrari_d(_1, var); // expected-error {{argument to '__builtin_lasx_xvsrari_d' must be a constant integer}} |
| 114 |
return res; |
| 115 |
} |
| 116 |
|
| 117 |
v32i8 xvsrli_b(v32i8 _1, int var) { |
| 118 |
v32i8 res = __builtin_lasx_xvsrli_b(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}} |
| 119 |
res |= __builtin_lasx_xvsrli_b(_1, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}} |
| 120 |
res |= __builtin_lasx_xvsrli_b(_1, var); // expected-error {{argument to '__builtin_lasx_xvsrli_b' must be a constant integer}} |
| 121 |
return res; |
| 122 |
} |
| 123 |
|
| 124 |
v16i16 xvsrli_h(v16i16 _1, int var) { |
| 125 |
v16i16 res = __builtin_lasx_xvsrli_h(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 126 |
res |= __builtin_lasx_xvsrli_h(_1, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 127 |
res |= __builtin_lasx_xvsrli_h(_1, var); // expected-error {{argument to '__builtin_lasx_xvsrli_h' must be a constant integer}} |
| 128 |
return res; |
| 129 |
} |
| 130 |
|
| 131 |
v8i32 xvsrli_w(v8i32 _1, int var) { |
| 132 |
v8i32 res = __builtin_lasx_xvsrli_w(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 133 |
res |= __builtin_lasx_xvsrli_w(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 134 |
res |= __builtin_lasx_xvsrli_w(_1, var); // expected-error {{argument to '__builtin_lasx_xvsrli_w' must be a constant integer}} |
| 135 |
return res; |
| 136 |
} |
| 137 |
|
| 138 |
v4i64 xvsrli_d(v4i64 _1, int var) { |
| 139 |
v4i64 res = __builtin_lasx_xvsrli_d(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}} |
| 140 |
res |= __builtin_lasx_xvsrli_d(_1, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}} |
| 141 |
res |= __builtin_lasx_xvsrli_d(_1, var); // expected-error {{argument to '__builtin_lasx_xvsrli_d' must be a constant integer}} |
| 142 |
return res; |
| 143 |
} |
| 144 |
|
| 145 |
v32i8 xvsrlri_b(v32i8 _1, int var) { |
| 146 |
v32i8 res = __builtin_lasx_xvsrlri_b(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}} |
| 147 |
res |= __builtin_lasx_xvsrlri_b(_1, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}} |
| 148 |
res |= __builtin_lasx_xvsrlri_b(_1, var); // expected-error {{argument to '__builtin_lasx_xvsrlri_b' must be a constant integer}} |
| 149 |
return res; |
| 150 |
} |
| 151 |
|
| 152 |
v16i16 xvsrlri_h(v16i16 _1, int var) { |
| 153 |
v16i16 res = __builtin_lasx_xvsrlri_h(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 154 |
res |= __builtin_lasx_xvsrlri_h(_1, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 155 |
res |= __builtin_lasx_xvsrlri_h(_1, var); // expected-error {{argument to '__builtin_lasx_xvsrlri_h' must be a constant integer}} |
| 156 |
return res; |
| 157 |
} |
| 158 |
|
| 159 |
v8i32 xvsrlri_w(v8i32 _1, int var) { |
| 160 |
v8i32 res = __builtin_lasx_xvsrlri_w(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 161 |
res |= __builtin_lasx_xvsrlri_w(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 162 |
res |= __builtin_lasx_xvsrlri_w(_1, var); // expected-error {{argument to '__builtin_lasx_xvsrlri_w' must be a constant integer}} |
| 163 |
return res; |
| 164 |
} |
| 165 |
|
| 166 |
v4i64 xvsrlri_d(v4i64 _1, int var) { |
| 167 |
v4i64 res = __builtin_lasx_xvsrlri_d(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}} |
| 168 |
res |= __builtin_lasx_xvsrlri_d(_1, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}} |
| 169 |
res |= __builtin_lasx_xvsrlri_d(_1, var); // expected-error {{argument to '__builtin_lasx_xvsrlri_d' must be a constant integer}} |
| 170 |
return res; |
| 171 |
} |
| 172 |
|
| 173 |
v32u8 xvbitclri_b(v32u8 _1, int var) { |
| 174 |
v32u8 res = __builtin_lasx_xvbitclri_b(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}} |
| 175 |
res |= __builtin_lasx_xvbitclri_b(_1, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}} |
| 176 |
res |= __builtin_lasx_xvbitclri_b(_1, var); // expected-error {{argument to '__builtin_lasx_xvbitclri_b' must be a constant integer}} |
| 177 |
return res; |
| 178 |
} |
| 179 |
|
| 180 |
v16u16 xvbitclri_h(v16u16 _1, int var) { |
| 181 |
v16u16 res = __builtin_lasx_xvbitclri_h(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 182 |
res |= __builtin_lasx_xvbitclri_h(_1, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 183 |
res |= __builtin_lasx_xvbitclri_h(_1, var); // expected-error {{argument to '__builtin_lasx_xvbitclri_h' must be a constant integer}} |
| 184 |
return res; |
| 185 |
} |
| 186 |
|
| 187 |
v8u32 xvbitclri_w(v8u32 _1, int var) { |
| 188 |
v8u32 res = __builtin_lasx_xvbitclri_w(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 189 |
res |= __builtin_lasx_xvbitclri_w(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 190 |
res |= __builtin_lasx_xvbitclri_w(_1, var); // expected-error {{argument to '__builtin_lasx_xvbitclri_w' must be a constant integer}} |
| 191 |
return res; |
| 192 |
} |
| 193 |
|
| 194 |
v4u64 xvbitclri_d(v4u64 _1, int var) { |
| 195 |
v4u64 res = __builtin_lasx_xvbitclri_d(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}} |
| 196 |
res |= __builtin_lasx_xvbitclri_d(_1, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}} |
| 197 |
res |= __builtin_lasx_xvbitclri_d(_1, var); // expected-error {{argument to '__builtin_lasx_xvbitclri_d' must be a constant integer}} |
| 198 |
return res; |
| 199 |
} |
| 200 |
|
| 201 |
v32u8 xvbitseti_b(v32u8 _1, int var) { |
| 202 |
v32u8 res = __builtin_lasx_xvbitseti_b(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}} |
| 203 |
res |= __builtin_lasx_xvbitseti_b(_1, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}} |
| 204 |
res |= __builtin_lasx_xvbitseti_b(_1, var); // expected-error {{argument to '__builtin_lasx_xvbitseti_b' must be a constant integer}} |
| 205 |
return res; |
| 206 |
} |
| 207 |
|
| 208 |
v16u16 xvbitseti_h(v16u16 _1, int var) { |
| 209 |
v16u16 res = __builtin_lasx_xvbitseti_h(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 210 |
res |= __builtin_lasx_xvbitseti_h(_1, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 211 |
res |= __builtin_lasx_xvbitseti_h(_1, var); // expected-error {{argument to '__builtin_lasx_xvbitseti_h' must be a constant integer}} |
| 212 |
return res; |
| 213 |
} |
| 214 |
|
| 215 |
v8u32 xvbitseti_w(v8u32 _1, int var) { |
| 216 |
v8u32 res = __builtin_lasx_xvbitseti_w(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 217 |
res |= __builtin_lasx_xvbitseti_w(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 218 |
res |= __builtin_lasx_xvbitseti_w(_1, var); // expected-error {{argument to '__builtin_lasx_xvbitseti_w' must be a constant integer}} |
| 219 |
return res; |
| 220 |
} |
| 221 |
|
| 222 |
v4u64 xvbitseti_d(v4u64 _1, int var) { |
| 223 |
v4u64 res = __builtin_lasx_xvbitseti_d(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}} |
| 224 |
res |= __builtin_lasx_xvbitseti_d(_1, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}} |
| 225 |
res |= __builtin_lasx_xvbitseti_d(_1, var); // expected-error {{argument to '__builtin_lasx_xvbitseti_d' must be a constant integer}} |
| 226 |
return res; |
| 227 |
} |
| 228 |
|
| 229 |
v32u8 xvbitrevi_b(v32u8 _1, int var) { |
| 230 |
v32u8 res = __builtin_lasx_xvbitrevi_b(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}} |
| 231 |
res |= __builtin_lasx_xvbitrevi_b(_1, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}} |
| 232 |
res |= __builtin_lasx_xvbitrevi_b(_1, var); // expected-error {{argument to '__builtin_lasx_xvbitrevi_b' must be a constant integer}} |
| 233 |
return res; |
| 234 |
} |
| 235 |
|
| 236 |
v16u16 xvbitrevi_h(v16u16 _1, int var) { |
| 237 |
v16u16 res = __builtin_lasx_xvbitrevi_h(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 238 |
res |= __builtin_lasx_xvbitrevi_h(_1, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 239 |
res |= __builtin_lasx_xvbitrevi_h(_1, var); // expected-error {{argument to '__builtin_lasx_xvbitrevi_h' must be a constant integer}} |
| 240 |
return res; |
| 241 |
} |
| 242 |
|
| 243 |
v8u32 xvbitrevi_w(v8u32 _1, int var) { |
| 244 |
v8u32 res = __builtin_lasx_xvbitrevi_w(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 245 |
res |= __builtin_lasx_xvbitrevi_w(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 246 |
res |= __builtin_lasx_xvbitrevi_w(_1, var); // expected-error {{argument to '__builtin_lasx_xvbitrevi_w' must be a constant integer}} |
| 247 |
return res; |
| 248 |
} |
| 249 |
|
| 250 |
v4u64 xvbitrevi_d(v4u64 _1, int var) { |
| 251 |
v4u64 res = __builtin_lasx_xvbitrevi_d(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}} |
| 252 |
res |= __builtin_lasx_xvbitrevi_d(_1, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}} |
| 253 |
res |= __builtin_lasx_xvbitrevi_d(_1, var); // expected-error {{argument to '__builtin_lasx_xvbitrevi_d' must be a constant integer}} |
| 254 |
return res; |
| 255 |
} |
| 256 |
|
| 257 |
v32i8 xvaddi_bu(v32i8 _1, int var) { |
| 258 |
v32i8 res = __builtin_lasx_xvaddi_bu(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 259 |
res |= __builtin_lasx_xvaddi_bu(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 260 |
res |= __builtin_lasx_xvaddi_bu(_1, var); // expected-error {{argument to '__builtin_lasx_xvaddi_bu' must be a constant integer}} |
| 261 |
return res; |
| 262 |
} |
| 263 |
|
| 264 |
v16i16 xvaddi_hu(v16i16 _1, int var) { |
| 265 |
v16i16 res = __builtin_lasx_xvaddi_hu(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 266 |
res |= __builtin_lasx_xvaddi_hu(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 267 |
res |= __builtin_lasx_xvaddi_hu(_1, var); // expected-error {{argument to '__builtin_lasx_xvaddi_hu' must be a constant integer}} |
| 268 |
return res; |
| 269 |
} |
| 270 |
|
| 271 |
v8i32 xvaddi_wu(v8i32 _1, int var) { |
| 272 |
v8i32 res = __builtin_lasx_xvaddi_wu(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 273 |
res |= __builtin_lasx_xvaddi_wu(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 274 |
res |= __builtin_lasx_xvaddi_wu(_1, var); // expected-error {{argument to '__builtin_lasx_xvaddi_wu' must be a constant integer}} |
| 275 |
return res; |
| 276 |
} |
| 277 |
|
| 278 |
v4i64 xvaddi_du(v4i64 _1, int var) { |
| 279 |
v4i64 res = __builtin_lasx_xvaddi_du(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 280 |
res |= __builtin_lasx_xvaddi_du(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 281 |
res |= __builtin_lasx_xvaddi_du(_1, var); // expected-error {{argument to '__builtin_lasx_xvaddi_du' must be a constant integer}} |
| 282 |
return res; |
| 283 |
} |
| 284 |
|
| 285 |
v32i8 xvsubi_bu(v32i8 _1, int var) { |
| 286 |
v32i8 res = __builtin_lasx_xvsubi_bu(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 287 |
res |= __builtin_lasx_xvsubi_bu(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 288 |
res |= __builtin_lasx_xvsubi_bu(_1, var); // expected-error {{argument to '__builtin_lasx_xvsubi_bu' must be a constant integer}} |
| 289 |
return res; |
| 290 |
} |
| 291 |
|
| 292 |
v16i16 xvsubi_hu(v16i16 _1, int var) { |
| 293 |
v16i16 res = __builtin_lasx_xvsubi_hu(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 294 |
res |= __builtin_lasx_xvsubi_hu(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 295 |
res |= __builtin_lasx_xvsubi_hu(_1, var); // expected-error {{argument to '__builtin_lasx_xvsubi_hu' must be a constant integer}} |
| 296 |
return res; |
| 297 |
} |
| 298 |
|
| 299 |
v8i32 xvsubi_wu(v8i32 _1, int var) { |
| 300 |
v8i32 res = __builtin_lasx_xvsubi_wu(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 301 |
res |= __builtin_lasx_xvsubi_wu(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 302 |
res |= __builtin_lasx_xvsubi_wu(_1, var); // expected-error {{argument to '__builtin_lasx_xvsubi_wu' must be a constant integer}} |
| 303 |
return res; |
| 304 |
} |
| 305 |
|
| 306 |
v4i64 xvsubi_du(v4i64 _1, int var) { |
| 307 |
v4i64 res = __builtin_lasx_xvsubi_du(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 308 |
res |= __builtin_lasx_xvsubi_du(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 309 |
res |= __builtin_lasx_xvsubi_du(_1, var); // expected-error {{argument to '__builtin_lasx_xvsubi_du' must be a constant integer}} |
| 310 |
return res; |
| 311 |
} |
| 312 |
|
| 313 |
v32i8 xvmaxi_b(v32i8 _1, int var) { |
| 314 |
v32i8 res = __builtin_lasx_xvmaxi_b(_1, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}} |
| 315 |
res |= __builtin_lasx_xvmaxi_b(_1, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}} |
| 316 |
res |= __builtin_lasx_xvmaxi_b(_1, var); // expected-error {{argument to '__builtin_lasx_xvmaxi_b' must be a constant integer}} |
| 317 |
return res; |
| 318 |
} |
| 319 |
|
| 320 |
v16i16 xvmaxi_h(v16i16 _1, int var) { |
| 321 |
v16i16 res = __builtin_lasx_xvmaxi_h(_1, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}} |
| 322 |
res |= __builtin_lasx_xvmaxi_h(_1, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}} |
| 323 |
res |= __builtin_lasx_xvmaxi_h(_1, var); // expected-error {{argument to '__builtin_lasx_xvmaxi_h' must be a constant integer}} |
| 324 |
return res; |
| 325 |
} |
| 326 |
|
| 327 |
v8i32 xvmaxi_w(v8i32 _1, int var) { |
| 328 |
v8i32 res = __builtin_lasx_xvmaxi_w(_1, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}} |
| 329 |
res |= __builtin_lasx_xvmaxi_w(_1, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}} |
| 330 |
res |= __builtin_lasx_xvmaxi_w(_1, var); // expected-error {{argument to '__builtin_lasx_xvmaxi_w' must be a constant integer}} |
| 331 |
return res; |
| 332 |
} |
| 333 |
|
| 334 |
v4i64 xvmaxi_d(v4i64 _1, int var) { |
| 335 |
v4i64 res = __builtin_lasx_xvmaxi_d(_1, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}} |
| 336 |
res |= __builtin_lasx_xvmaxi_d(_1, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}} |
| 337 |
res |= __builtin_lasx_xvmaxi_d(_1, var); // expected-error {{argument to '__builtin_lasx_xvmaxi_d' must be a constant integer}} |
| 338 |
return res; |
| 339 |
} |
| 340 |
|
| 341 |
v32u8 xvmaxi_bu(v32u8 _1, int var) { |
| 342 |
v32u8 res = __builtin_lasx_xvmaxi_bu(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 343 |
res |= __builtin_lasx_xvmaxi_bu(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 344 |
res |= __builtin_lasx_xvmaxi_bu(_1, var); // expected-error {{argument to '__builtin_lasx_xvmaxi_bu' must be a constant integer}} |
| 345 |
return res; |
| 346 |
} |
| 347 |
|
| 348 |
v16u16 xvmaxi_hu(v16u16 _1, int var) { |
| 349 |
v16u16 res = __builtin_lasx_xvmaxi_hu(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 350 |
res |= __builtin_lasx_xvmaxi_hu(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 351 |
res |= __builtin_lasx_xvmaxi_hu(_1, var); // expected-error {{argument to '__builtin_lasx_xvmaxi_hu' must be a constant integer}} |
| 352 |
return res; |
| 353 |
} |
| 354 |
|
| 355 |
v8u32 xvmaxi_wu(v8u32 _1, int var) { |
| 356 |
v8u32 res = __builtin_lasx_xvmaxi_wu(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 357 |
res |= __builtin_lasx_xvmaxi_wu(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 358 |
res |= __builtin_lasx_xvmaxi_wu(_1, var); // expected-error {{argument to '__builtin_lasx_xvmaxi_wu' must be a constant integer}} |
| 359 |
return res; |
| 360 |
} |
| 361 |
|
| 362 |
v4u64 xvmaxi_du(v4u64 _1, int var) { |
| 363 |
v4u64 res = __builtin_lasx_xvmaxi_du(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 364 |
res |= __builtin_lasx_xvmaxi_du(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 365 |
res |= __builtin_lasx_xvmaxi_du(_1, var); // expected-error {{argument to '__builtin_lasx_xvmaxi_du' must be a constant integer}} |
| 366 |
return res; |
| 367 |
} |
| 368 |
|
| 369 |
v32i8 xvmini_b(v32i8 _1, int var) { |
| 370 |
v32i8 res = __builtin_lasx_xvmini_b(_1, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}} |
| 371 |
res |= __builtin_lasx_xvmini_b(_1, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}} |
| 372 |
res |= __builtin_lasx_xvmini_b(_1, var); // expected-error {{argument to '__builtin_lasx_xvmini_b' must be a constant integer}} |
| 373 |
return res; |
| 374 |
} |
| 375 |
|
| 376 |
v16i16 xvmini_h(v16i16 _1, int var) { |
| 377 |
v16i16 res = __builtin_lasx_xvmini_h(_1, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}} |
| 378 |
res |= __builtin_lasx_xvmini_h(_1, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}} |
| 379 |
res |= __builtin_lasx_xvmini_h(_1, var); // expected-error {{argument to '__builtin_lasx_xvmini_h' must be a constant integer}}} |
| 380 |
return res; |
| 381 |
} |
| 382 |
|
| 383 |
v8i32 xvmini_w(v8i32 _1, int var) { |
| 384 |
v8i32 res = __builtin_lasx_xvmini_w(_1, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}} |
| 385 |
res |= __builtin_lasx_xvmini_w(_1, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}} |
| 386 |
res |= __builtin_lasx_xvmini_w(_1, var); // expected-error {{argument to '__builtin_lasx_xvmini_w' must be a constant integer}} |
| 387 |
return res; |
| 388 |
} |
| 389 |
|
| 390 |
v4i64 xvmini_d(v4i64 _1, int var) { |
| 391 |
v4i64 res = __builtin_lasx_xvmini_d(_1, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}} |
| 392 |
res |= __builtin_lasx_xvmini_d(_1, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}} |
| 393 |
res |= __builtin_lasx_xvmini_d(_1, var); // expected-error {{argument to '__builtin_lasx_xvmini_d' must be a constant integer}} |
| 394 |
return res; |
| 395 |
} |
| 396 |
|
| 397 |
v32u8 xvmini_bu(v32u8 _1, int var) { |
| 398 |
v32u8 res = __builtin_lasx_xvmini_bu(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 399 |
res |= __builtin_lasx_xvmini_bu(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 400 |
res |= __builtin_lasx_xvmini_bu(_1, var); // expected-error {{argument to '__builtin_lasx_xvmini_bu' must be a constant integer}} |
| 401 |
return res; |
| 402 |
} |
| 403 |
|
| 404 |
v16u16 xvmini_hu(v16u16 _1, int var) { |
| 405 |
v16u16 res = __builtin_lasx_xvmini_hu(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 406 |
res |= __builtin_lasx_xvmini_hu(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 407 |
res |= __builtin_lasx_xvmini_hu(_1, var); // expected-error {{argument to '__builtin_lasx_xvmini_hu' must be a constant integer}} |
| 408 |
return res; |
| 409 |
} |
| 410 |
|
| 411 |
v8u32 xvmini_wu(v8u32 _1, int var) { |
| 412 |
v8u32 res = __builtin_lasx_xvmini_wu(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 413 |
res |= __builtin_lasx_xvmini_wu(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 414 |
res |= __builtin_lasx_xvmini_wu(_1, var); // expected-error {{argument to '__builtin_lasx_xvmini_wu' must be a constant integer}} |
| 415 |
return res; |
| 416 |
} |
| 417 |
|
| 418 |
v4u64 xvmini_du(v4u64 _1, int var) { |
| 419 |
v4u64 res = __builtin_lasx_xvmini_du(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 420 |
res |= __builtin_lasx_xvmini_du(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 421 |
res |= __builtin_lasx_xvmini_du(_1, var); // expected-error {{argument to '__builtin_lasx_xvmini_du' must be a constant integer}} |
| 422 |
return res; |
| 423 |
} |
| 424 |
|
| 425 |
v32i8 xvseqi_b(v32i8 _1, int var) { |
| 426 |
v32i8 res = __builtin_lasx_xvseqi_b(_1, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}} |
| 427 |
res |= __builtin_lasx_xvseqi_b(_1, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}} |
| 428 |
res |= __builtin_lasx_xvseqi_b(_1, var); // expected-error {{argument to '__builtin_lasx_xvseqi_b' must be a constant integer}} |
| 429 |
return res; |
| 430 |
} |
| 431 |
|
| 432 |
v16i16 xvseqi_h(v16i16 _1, int var) { |
| 433 |
v16i16 res = __builtin_lasx_xvseqi_h(_1, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}} |
| 434 |
res |= __builtin_lasx_xvseqi_h(_1, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}} |
| 435 |
res |= __builtin_lasx_xvseqi_h(_1, var); // expected-error {{argument to '__builtin_lasx_xvseqi_h' must be a constant integer}} |
| 436 |
return res; |
| 437 |
} |
| 438 |
|
| 439 |
v8i32 xvseqi_w(v8i32 _1, int var) { |
| 440 |
v8i32 res = __builtin_lasx_xvseqi_w(_1, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}} |
| 441 |
res |= __builtin_lasx_xvseqi_w(_1, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}} |
| 442 |
res |= __builtin_lasx_xvseqi_w(_1, var); // expected-error {{argument to '__builtin_lasx_xvseqi_w' must be a constant integer}} |
| 443 |
return res; |
| 444 |
} |
| 445 |
|
| 446 |
v4i64 xvseqi_d(v4i64 _1, int var) { |
| 447 |
v4i64 res = __builtin_lasx_xvseqi_d(_1, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}} |
| 448 |
res |= __builtin_lasx_xvseqi_d(_1, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}} |
| 449 |
res |= __builtin_lasx_xvseqi_d(_1, var); // expected-error {{argument to '__builtin_lasx_xvseqi_d' must be a constant integer}} |
| 450 |
return res; |
| 451 |
} |
| 452 |
|
| 453 |
v32i8 xvslti_b(v32i8 _1, int var) { |
| 454 |
v32i8 res = __builtin_lasx_xvslti_b(_1, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}} |
| 455 |
res |= __builtin_lasx_xvslti_b(_1, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}} |
| 456 |
res |= __builtin_lasx_xvslti_b(_1, var); // expected-error {{argument to '__builtin_lasx_xvslti_b' must be a constant integer}} |
| 457 |
return res; |
| 458 |
} |
| 459 |
|
| 460 |
v16i16 xvslti_h(v16i16 _1, int var) { |
| 461 |
v16i16 res = __builtin_lasx_xvslti_h(_1, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}} |
| 462 |
res |= __builtin_lasx_xvslti_h(_1, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}} |
| 463 |
res |= __builtin_lasx_xvslti_h(_1, var); // expected-error {{argument to '__builtin_lasx_xvslti_h' must be a constant integer}} |
| 464 |
return res; |
| 465 |
} |
| 466 |
|
| 467 |
v8i32 xvslti_w(v8i32 _1, int var) { |
| 468 |
v8i32 res = __builtin_lasx_xvslti_w(_1, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}} |
| 469 |
res |= __builtin_lasx_xvslti_w(_1, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}} |
| 470 |
res |= __builtin_lasx_xvslti_w(_1, var); // expected-error {{argument to '__builtin_lasx_xvslti_w' must be a constant integer}} |
| 471 |
return res; |
| 472 |
} |
| 473 |
|
| 474 |
v4i64 xvslti_d(v4i64 _1, int var) { |
| 475 |
v4i64 res = __builtin_lasx_xvslti_d(_1, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}} |
| 476 |
res |= __builtin_lasx_xvslti_d(_1, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}} |
| 477 |
res |= __builtin_lasx_xvslti_d(_1, var); // expected-error {{argument to '__builtin_lasx_xvslti_d' must be a constant integer}} |
| 478 |
return res; |
| 479 |
} |
| 480 |
|
| 481 |
v32i8 xvslti_bu(v32u8 _1, int var) { |
| 482 |
v32i8 res = __builtin_lasx_xvslti_bu(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 483 |
res |= __builtin_lasx_xvslti_bu(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 484 |
res |= __builtin_lasx_xvslti_bu(_1, var); // expected-error {{argument to '__builtin_lasx_xvslti_bu' must be a constant integer}} |
| 485 |
return res; |
| 486 |
} |
| 487 |
|
| 488 |
v16i16 xvslti_hu(v16u16 _1, int var) { |
| 489 |
v16i16 res = __builtin_lasx_xvslti_hu(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 490 |
res |= __builtin_lasx_xvslti_hu(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 491 |
res |= __builtin_lasx_xvslti_hu(_1, var); // expected-error {{argument to '__builtin_lasx_xvslti_hu' must be a constant integer}} |
| 492 |
return res; |
| 493 |
} |
| 494 |
|
| 495 |
v8i32 xvslti_wu(v8u32 _1, int var) { |
| 496 |
v8i32 res = __builtin_lasx_xvslti_wu(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 497 |
res |= __builtin_lasx_xvslti_wu(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 498 |
res |= __builtin_lasx_xvslti_wu(_1, var); // expected-error {{argument to '__builtin_lasx_xvslti_wu' must be a constant integer}} |
| 499 |
return res; |
| 500 |
} |
| 501 |
|
| 502 |
v4i64 xvslti_du(v4u64 _1, int var) { |
| 503 |
v4i64 res = __builtin_lasx_xvslti_du(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 504 |
res |= __builtin_lasx_xvslti_du(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 505 |
res |= __builtin_lasx_xvslti_du(_1, var); // expected-error {{argument to '__builtin_lasx_xvslti_du' must be a constant integer}} |
| 506 |
return res; |
| 507 |
} |
| 508 |
|
| 509 |
v32i8 xvslei_b(v32i8 _1, int var) { |
| 510 |
v32i8 res = __builtin_lasx_xvslei_b(_1, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}} |
| 511 |
res |= __builtin_lasx_xvslei_b(_1, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}} |
| 512 |
res |= __builtin_lasx_xvslei_b(_1, var); // expected-error {{argument to '__builtin_lasx_xvslei_b' must be a constant integer}} |
| 513 |
return res; |
| 514 |
} |
| 515 |
|
| 516 |
v16i16 xvslei_h(v16i16 _1, int var) { |
| 517 |
v16i16 res = __builtin_lasx_xvslei_h(_1, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}} |
| 518 |
res |= __builtin_lasx_xvslei_h(_1, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}} |
| 519 |
res |= __builtin_lasx_xvslei_h(_1, var); // expected-error {{argument to '__builtin_lasx_xvslei_h' must be a constant integer}} |
| 520 |
return res; |
| 521 |
} |
| 522 |
|
| 523 |
v8i32 xvslei_w(v8i32 _1, int var) { |
| 524 |
v8i32 res = __builtin_lasx_xvslei_w(_1, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}} |
| 525 |
res |= __builtin_lasx_xvslei_w(_1, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}} |
| 526 |
res |= __builtin_lasx_xvslei_w(_1, var); // expected-error {{argument to '__builtin_lasx_xvslei_w' must be a constant integer}} |
| 527 |
return res; |
| 528 |
} |
| 529 |
|
| 530 |
v4i64 xvslei_d(v4i64 _1, int var) { |
| 531 |
v4i64 res = __builtin_lasx_xvslei_d(_1, -17); // expected-error {{argument value -17 is outside the valid range [-16, 15]}} |
| 532 |
res |= __builtin_lasx_xvslei_d(_1, 16); // expected-error {{argument value 16 is outside the valid range [-16, 15]}} |
| 533 |
res |= __builtin_lasx_xvslei_d(_1, var); // expected-error {{argument to '__builtin_lasx_xvslei_d' must be a constant integer}} |
| 534 |
return res; |
| 535 |
} |
| 536 |
|
| 537 |
v32i8 xvslei_bu(v32u8 _1, int var) { |
| 538 |
v32i8 res = __builtin_lasx_xvslei_bu(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 539 |
res |= __builtin_lasx_xvslei_bu(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 540 |
res |= __builtin_lasx_xvslei_bu(_1, var); // expected-error {{argument to '__builtin_lasx_xvslei_bu' must be a constant integer}} |
| 541 |
return res; |
| 542 |
} |
| 543 |
|
| 544 |
v16i16 xvslei_hu(v16u16 _1, int var) { |
| 545 |
v16i16 res = __builtin_lasx_xvslei_hu(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 546 |
res |= __builtin_lasx_xvslei_hu(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 547 |
res |= __builtin_lasx_xvslei_hu(_1, var); // expected-error {{argument to '__builtin_lasx_xvslei_hu' must be a constant integer}} |
| 548 |
return res; |
| 549 |
} |
| 550 |
|
| 551 |
v8i32 xvslei_wu(v8u32 _1, int var) { |
| 552 |
v8i32 res = __builtin_lasx_xvslei_wu(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 553 |
res |= __builtin_lasx_xvslei_wu(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 554 |
res |= __builtin_lasx_xvslei_wu(_1, var); // expected-error {{argument to '__builtin_lasx_xvslei_wu' must be a constant integer}} |
| 555 |
return res; |
| 556 |
} |
| 557 |
|
| 558 |
v4i64 xvslei_du(v4u64 _1, int var) { |
| 559 |
v4i64 res = __builtin_lasx_xvslei_du(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 560 |
res |= __builtin_lasx_xvslei_du(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 561 |
res |= __builtin_lasx_xvslei_du(_1, var); // expected-error {{argument to '__builtin_lasx_xvslei_du' must be a constant integer}} |
| 562 |
return res; |
| 563 |
} |
| 564 |
|
| 565 |
v32i8 xvsat_b(v32i8 _1, int var) { |
| 566 |
v32i8 res = __builtin_lasx_xvsat_b(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}} |
| 567 |
res |= __builtin_lasx_xvsat_b(_1, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}} |
| 568 |
res |= __builtin_lasx_xvsat_b(_1, var); // expected-error {{argument to '__builtin_lasx_xvsat_b' must be a constant integer}} |
| 569 |
return res; |
| 570 |
} |
| 571 |
|
| 572 |
v16i16 xvsat_h(v16i16 _1, int var) { |
| 573 |
v16i16 res = __builtin_lasx_xvsat_h(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 574 |
res |= __builtin_lasx_xvsat_h(_1, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 575 |
res |= __builtin_lasx_xvsat_h(_1, var); // expected-error {{argument to '__builtin_lasx_xvsat_h' must be a constant integer}} |
| 576 |
return res; |
| 577 |
} |
| 578 |
|
| 579 |
v8i32 xvsat_w(v8i32 _1, int var) { |
| 580 |
v8i32 res = __builtin_lasx_xvsat_w(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 581 |
res |= __builtin_lasx_xvsat_w(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 582 |
res |= __builtin_lasx_xvsat_w(_1, var); // expected-error {{argument to '__builtin_lasx_xvsat_w' must be a constant integer}} |
| 583 |
return res; |
| 584 |
} |
| 585 |
|
| 586 |
v4i64 xvsat_d(v4i64 _1, int var) { |
| 587 |
v4i64 res = __builtin_lasx_xvsat_d(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}} |
| 588 |
res |= __builtin_lasx_xvsat_d(_1, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}} |
| 589 |
res |= __builtin_lasx_xvsat_d(_1, var); // expected-error {{argument to '__builtin_lasx_xvsat_d' must be a constant integer}} |
| 590 |
return res; |
| 591 |
} |
| 592 |
|
| 593 |
v32u8 xvsat_bu(v32u8 _1, int var) { |
| 594 |
v32u8 res = __builtin_lasx_xvsat_bu(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}} |
| 595 |
res |= __builtin_lasx_xvsat_bu(_1, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}} |
| 596 |
res |= __builtin_lasx_xvsat_bu(_1, var); // expected-error {{argument to '__builtin_lasx_xvsat_bu' must be a constant integer}} |
| 597 |
return res; |
| 598 |
} |
| 599 |
|
| 600 |
v16u16 xvsat_hu(v16u16 _1, int var) { |
| 601 |
v16u16 res = __builtin_lasx_xvsat_hu(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 602 |
res |= __builtin_lasx_xvsat_hu(_1, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 603 |
res |= __builtin_lasx_xvsat_hu(_1, var); // expected-error {{argument to '__builtin_lasx_xvsat_hu' must be a constant integer}} |
| 604 |
return res; |
| 605 |
} |
| 606 |
|
| 607 |
v8u32 xvsat_wu(v8u32 _1, int var) { |
| 608 |
v8u32 res = __builtin_lasx_xvsat_wu(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 609 |
res |= __builtin_lasx_xvsat_wu(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 610 |
res |= __builtin_lasx_xvsat_wu(_1, var); // expected-error {{argument to '__builtin_lasx_xvsat_wu' must be a constant integer}} |
| 611 |
return res; |
| 612 |
} |
| 613 |
|
| 614 |
v4u64 xvsat_du(v4u64 _1, int var) { |
| 615 |
v4u64 res = __builtin_lasx_xvsat_du(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}} |
| 616 |
res |= __builtin_lasx_xvsat_du(_1, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}} |
| 617 |
res |= __builtin_lasx_xvsat_du(_1, var); // expected-error {{argument to '__builtin_lasx_xvsat_du' must be a constant integer}} |
| 618 |
return res; |
| 619 |
} |
| 620 |
|
| 621 |
v32i8 xvrepl128vei_b(v32i8 _1, int var) { |
| 622 |
v32i8 res = __builtin_lasx_xvrepl128vei_b(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 623 |
res |= __builtin_lasx_xvrepl128vei_b(_1, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 624 |
res |= __builtin_lasx_xvrepl128vei_b(_1, var); // expected-error {{argument to '__builtin_lasx_xvrepl128vei_b' must be a constant integer}} |
| 625 |
return res; |
| 626 |
} |
| 627 |
|
| 628 |
v16i16 xvrepl128vei_h(v16i16 _1, int var) { |
| 629 |
v16i16 res = __builtin_lasx_xvrepl128vei_h(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}} |
| 630 |
res |= __builtin_lasx_xvrepl128vei_h(_1, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}} |
| 631 |
res |= __builtin_lasx_xvrepl128vei_h(_1, var); // expected-error {{argument to '__builtin_lasx_xvrepl128vei_h' must be a constant integer}} |
| 632 |
return res; |
| 633 |
} |
| 634 |
|
| 635 |
v8i32 xvrepl128vei_w(v8i32 _1, int var) { |
| 636 |
v8i32 res = __builtin_lasx_xvrepl128vei_w(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}} |
| 637 |
res |= __builtin_lasx_xvrepl128vei_w(_1, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}} |
| 638 |
res |= __builtin_lasx_xvrepl128vei_w(_1, var); // expected-error {{argument to '__builtin_lasx_xvrepl128vei_w' must be a constant integer}} |
| 639 |
return res; |
| 640 |
} |
| 641 |
|
| 642 |
v4i64 xvrepl128vei_d(v4i64 _1, int var) { |
| 643 |
v4i64 res = __builtin_lasx_xvrepl128vei_d(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 1]}} |
| 644 |
res |= __builtin_lasx_xvrepl128vei_d(_1, 2); // expected-error {{argument value 2 is outside the valid range [0, 1]}} |
| 645 |
res |= __builtin_lasx_xvrepl128vei_d(_1, var); // expected-error {{argument to '__builtin_lasx_xvrepl128vei_d' must be a constant integer}} |
| 646 |
return res; |
| 647 |
} |
| 648 |
|
| 649 |
v32u8 xvandi_b(v32u8 _1, int var) { |
| 650 |
v32u8 res = __builtin_lasx_xvandi_b(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}} |
| 651 |
res |= __builtin_lasx_xvandi_b(_1, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}} |
| 652 |
res |= __builtin_lasx_xvandi_b(_1, var); // expected-error {{argument to '__builtin_lasx_xvandi_b' must be a constant integer}} |
| 653 |
return res; |
| 654 |
} |
| 655 |
|
| 656 |
v32u8 xvori_b(v32u8 _1, int var) { |
| 657 |
v32u8 res = __builtin_lasx_xvori_b(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}} |
| 658 |
res |= __builtin_lasx_xvori_b(_1, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}} |
| 659 |
res |= __builtin_lasx_xvori_b(_1, var); // expected-error {{argument to '__builtin_lasx_xvori_b' must be a constant integer}} |
| 660 |
return res; |
| 661 |
} |
| 662 |
|
| 663 |
v32u8 xvnori_b(v32u8 _1, int var) { |
| 664 |
v32u8 res = __builtin_lasx_xvnori_b(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}} |
| 665 |
res |= __builtin_lasx_xvnori_b(_1, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}} |
| 666 |
res |= __builtin_lasx_xvnori_b(_1, var); // expected-error {{argument to '__builtin_lasx_xvnori_b' must be a constant integer}} |
| 667 |
return res; |
| 668 |
} |
| 669 |
|
| 670 |
v32u8 xvxori_b(v32u8 _1, int var) { |
| 671 |
v32u8 res = __builtin_lasx_xvxori_b(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}} |
| 672 |
res |= __builtin_lasx_xvxori_b(_1, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}} |
| 673 |
res |= __builtin_lasx_xvxori_b(_1, var); // expected-error {{argument to '__builtin_lasx_xvxori_b' must be a constant integer}} |
| 674 |
return res; |
| 675 |
} |
| 676 |
|
| 677 |
v32u8 xvbitseli_b(v32u8 _1, v32u8 _2, int var) { |
| 678 |
v32u8 res = __builtin_lasx_xvbitseli_b(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}} |
| 679 |
res |= __builtin_lasx_xvbitseli_b(_1, _2, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}} |
| 680 |
res |= __builtin_lasx_xvbitseli_b(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvbitseli_b' must be a constant integer}} |
| 681 |
return res; |
| 682 |
} |
| 683 |
|
| 684 |
v32i8 xvshuf4i_b(v32i8 _1, int var) { |
| 685 |
v32i8 res = __builtin_lasx_xvshuf4i_b(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}} |
| 686 |
res |= __builtin_lasx_xvshuf4i_b(_1, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}} |
| 687 |
res |= __builtin_lasx_xvshuf4i_b(_1, var); // expected-error {{argument to '__builtin_lasx_xvshuf4i_b' must be a constant integer}} |
| 688 |
return res; |
| 689 |
} |
| 690 |
|
| 691 |
v16i16 xvshuf4i_h(v16i16 _1, int var) { |
| 692 |
v16i16 res = __builtin_lasx_xvshuf4i_h(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}} |
| 693 |
res |= __builtin_lasx_xvshuf4i_h(_1, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}} |
| 694 |
res |= __builtin_lasx_xvshuf4i_h(_1, var); // expected-error {{argument to '__builtin_lasx_xvshuf4i_h' must be a constant integer}} |
| 695 |
return res; |
| 696 |
} |
| 697 |
|
| 698 |
v8i32 xvshuf4i_w(v8i32 _1, int var) { |
| 699 |
v8i32 res = __builtin_lasx_xvshuf4i_w(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}} |
| 700 |
res |= __builtin_lasx_xvshuf4i_w(_1, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}} |
| 701 |
res |= __builtin_lasx_xvshuf4i_w(_1, var); // expected-error {{argument to '__builtin_lasx_xvshuf4i_w' must be a constant integer}} |
| 702 |
return res; |
| 703 |
} |
| 704 |
|
| 705 |
v4i64 xvshuf4i_d(v4i64 _1, v4i64 _2, int var) { |
| 706 |
v4i64 res = __builtin_lasx_xvshuf4i_d(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}} |
| 707 |
res |= __builtin_lasx_xvshuf4i_d(_1, _2, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}} |
| 708 |
res |= __builtin_lasx_xvshuf4i_d(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvshuf4i_d' must be a constant integer}} |
| 709 |
return res; |
| 710 |
} |
| 711 |
|
| 712 |
v8i32 xvpermi_w(v8i32 _1, v8i32 _2, int var) { |
| 713 |
v8i32 res = __builtin_lasx_xvpermi_w(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}} |
| 714 |
res |= __builtin_lasx_xvpermi_w(_1, _2, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}} |
| 715 |
res |= __builtin_lasx_xvpermi_w(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvpermi_w' must be a constant integer}} |
| 716 |
return res; |
| 717 |
} |
| 718 |
|
| 719 |
v4i64 xvpermi_d(v4i64 _1, int var) { |
| 720 |
v4i64 res = __builtin_lasx_xvpermi_d(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}} |
| 721 |
res |= __builtin_lasx_xvpermi_d(_1, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}} |
| 722 |
res |= __builtin_lasx_xvpermi_d(_1, var); // expected-error {{argument to '__builtin_lasx_xvpermi_d' must be a constant integer}} |
| 723 |
return res; |
| 724 |
} |
| 725 |
|
| 726 |
v32i8 xvpermi_q(v32i8 _1, v32i8 _2, int var) { |
| 727 |
v32i8 res = __builtin_lasx_xvpermi_q(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}} |
| 728 |
res |= __builtin_lasx_xvpermi_q(_1, _2, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}} |
| 729 |
res |= __builtin_lasx_xvpermi_q(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvpermi_q' must be a constant integer}} |
| 730 |
return res; |
| 731 |
} |
| 732 |
|
| 733 |
v16i16 xvsllwil_h_b(v32i8 _1, int var) { |
| 734 |
v16i16 res = __builtin_lasx_xvsllwil_h_b(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}} |
| 735 |
res |= __builtin_lasx_xvsllwil_h_b(_1, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}} |
| 736 |
res |= __builtin_lasx_xvsllwil_h_b(_1, var); // expected-error {{argument to '__builtin_lasx_xvsllwil_h_b' must be a constant integer}} |
| 737 |
return res; |
| 738 |
} |
| 739 |
|
| 740 |
v8i32 xvsllwil_w_h(v16i16 _1, int var) { |
| 741 |
v8i32 res = __builtin_lasx_xvsllwil_w_h(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 742 |
res |= __builtin_lasx_xvsllwil_w_h(_1, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 743 |
res |= __builtin_lasx_xvsllwil_w_h(_1, var); // expected-error {{argument to '__builtin_lasx_xvsllwil_w_h' must be a constant integer}} |
| 744 |
return res; |
| 745 |
} |
| 746 |
|
| 747 |
v4i64 xvsllwil_d_w(v8i32 _1, int var) { |
| 748 |
v4i64 res = __builtin_lasx_xvsllwil_d_w(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 749 |
res |= __builtin_lasx_xvsllwil_d_w(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 750 |
res |= __builtin_lasx_xvsllwil_d_w(_1, var); // expected-error {{argument to '__builtin_lasx_xvsllwil_d_w' must be a constant integer}} |
| 751 |
return res; |
| 752 |
} |
| 753 |
|
| 754 |
v16u16 xvsllwil_hu_bu(v32u8 _1, int var) { |
| 755 |
v16u16 res = __builtin_lasx_xvsllwil_hu_bu(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}} |
| 756 |
res |= __builtin_lasx_xvsllwil_hu_bu(_1, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}} |
| 757 |
res |= __builtin_lasx_xvsllwil_hu_bu(_1, var); // expected-error {{argument to '__builtin_lasx_xvsllwil_hu_bu' must be a constant integer}} |
| 758 |
return res; |
| 759 |
} |
| 760 |
|
| 761 |
v8u32 xvsllwil_wu_hu(v16u16 _1, int var) { |
| 762 |
v8u32 res = __builtin_lasx_xvsllwil_wu_hu(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 763 |
res |= __builtin_lasx_xvsllwil_wu_hu(_1, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 764 |
res |= __builtin_lasx_xvsllwil_wu_hu(_1, var); // expected-error {{argument to '__builtin_lasx_xvsllwil_wu_hu' must be a constant integer}} |
| 765 |
return res; |
| 766 |
} |
| 767 |
|
| 768 |
v4u64 xvsllwil_du_wu(v8u32 _1, int var) { |
| 769 |
v4u64 res = __builtin_lasx_xvsllwil_du_wu(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 770 |
res |= __builtin_lasx_xvsllwil_du_wu(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 771 |
res |= __builtin_lasx_xvsllwil_du_wu(_1, var); // expected-error {{argument to '__builtin_lasx_xvsllwil_du_wu' must be a constant integer}} |
| 772 |
return res; |
| 773 |
} |
| 774 |
|
| 775 |
v32i8 xvfrstpi_b(v32i8 _1, v32i8 _2, int var) { |
| 776 |
v32i8 res = __builtin_lasx_xvfrstpi_b(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 777 |
res |= __builtin_lasx_xvfrstpi_b(_1, _2, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 778 |
res |= __builtin_lasx_xvfrstpi_b(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvfrstpi_b' must be a constant integer}} |
| 779 |
return res; |
| 780 |
} |
| 781 |
|
| 782 |
v16i16 xvfrstpi_h(v16i16 _1, v16i16 _2, int var) { |
| 783 |
v16i16 res = __builtin_lasx_xvfrstpi_h(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 784 |
res |= __builtin_lasx_xvfrstpi_h(_1, _2, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 785 |
res |= __builtin_lasx_xvfrstpi_h(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvfrstpi_h' must be a constant integer}} |
| 786 |
return res; |
| 787 |
} |
| 788 |
|
| 789 |
v32i8 xvbsrl_v(v32i8 _1, int var) { |
| 790 |
v32i8 res = __builtin_lasx_xvbsrl_v(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 791 |
res |= __builtin_lasx_xvbsrl_v(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 792 |
res |= __builtin_lasx_xvbsrl_v(_1, var); // expected-error {{argument to '__builtin_lasx_xvbsrl_v' must be a constant integer}} |
| 793 |
return res; |
| 794 |
} |
| 795 |
|
| 796 |
v32i8 xvbsll_v(v32i8 _1, int var) { |
| 797 |
v32i8 res = __builtin_lasx_xvbsll_v(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 798 |
res |= __builtin_lasx_xvbsll_v(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 799 |
res |= __builtin_lasx_xvbsll_v(_1, var); // expected-error {{argument to '__builtin_lasx_xvbsll_v' must be a constant integer}} |
| 800 |
return res; |
| 801 |
} |
| 802 |
|
| 803 |
v32i8 xvextrins_b(v32i8 _1, v32i8 _2, int var) { |
| 804 |
v32i8 res = __builtin_lasx_xvextrins_b(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}} |
| 805 |
res |= __builtin_lasx_xvextrins_b(_1, _2, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}} |
| 806 |
res |= __builtin_lasx_xvextrins_b(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvextrins_b' must be a constant integer}} |
| 807 |
return res; |
| 808 |
} |
| 809 |
|
| 810 |
v16i16 xvextrins_h(v16i16 _1, v16i16 _2, int var) { |
| 811 |
v16i16 res = __builtin_lasx_xvextrins_h(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}} |
| 812 |
res |= __builtin_lasx_xvextrins_h(_1, _2, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}} |
| 813 |
res |= __builtin_lasx_xvextrins_h(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvextrins_h' must be a constant integer}} |
| 814 |
return res; |
| 815 |
} |
| 816 |
|
| 817 |
v8i32 xvextrins_w(v8i32 _1, v8i32 _2, int var) { |
| 818 |
v8i32 res = __builtin_lasx_xvextrins_w(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}} |
| 819 |
res |= __builtin_lasx_xvextrins_w(_1, _2, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}} |
| 820 |
res |= __builtin_lasx_xvextrins_w(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvextrins_w' must be a constant integer}} |
| 821 |
return res; |
| 822 |
} |
| 823 |
|
| 824 |
v4i64 xvextrins_d(v4i64 _1, v4i64 _2, int var) { |
| 825 |
v4i64 res = __builtin_lasx_xvextrins_d(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 255]}} |
| 826 |
res |= __builtin_lasx_xvextrins_d(_1, _2, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}} |
| 827 |
res |= __builtin_lasx_xvextrins_d(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvextrins_d' must be a constant integer}} |
| 828 |
return res; |
| 829 |
} |
| 830 |
|
| 831 |
v32i8 xvld(void *_1, int var) { |
| 832 |
v32i8 res = __builtin_lasx_xvld(_1, -2049); // expected-error {{argument value -2049 is outside the valid range [-2048, 2047]}} |
| 833 |
res |= __builtin_lasx_xvld(_1, 2048); // expected-error {{argument value 2048 is outside the valid range [-2048, 2047]}} |
| 834 |
res |= __builtin_lasx_xvld(_1, var); // expected-error {{argument to '__builtin_lasx_xvld' must be a constant integer}} |
| 835 |
return res; |
| 836 |
} |
| 837 |
|
| 838 |
void xvst(v32i8 _1, void *_2, int var) { |
| 839 |
__builtin_lasx_xvst(_1, _2, -2049); // expected-error {{argument value -2049 is outside the valid range [-2048, 2047]}} |
| 840 |
__builtin_lasx_xvst(_1, _2, 2048); // expected-error {{argument value 2048 is outside the valid range [-2048, 2047]}} |
| 841 |
__builtin_lasx_xvst(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvst' must be a constant integer}} |
| 842 |
} |
| 843 |
|
| 844 |
void xvstelm_b(v32i8 _1, void * _2, int var) { |
| 845 |
__builtin_lasx_xvstelm_b(_1, _2, -129, 1); // expected-error {{argument value -129 is outside the valid range [-128, 127]}} |
| 846 |
__builtin_lasx_xvstelm_b(_1, _2, 128, 1); // expected-error {{argument value 128 is outside the valid range [-128, 127]}} |
| 847 |
__builtin_lasx_xvstelm_b(_1, _2, var, 1); // expected-error {{argument to '__builtin_lasx_xvstelm_b' must be a constant integer}} |
| 848 |
} |
| 849 |
|
| 850 |
void xvstelm_h(v16i16 _1, void * _2, int var) { |
| 851 |
__builtin_lasx_xvstelm_h(_1, _2, -258, 1); // expected-error {{argument value -258 is outside the valid range [-256, 254]}} |
| 852 |
__builtin_lasx_xvstelm_h(_1, _2, 256, 1); // expected-error {{argument value 256 is outside the valid range [-256, 254]}} |
| 853 |
__builtin_lasx_xvstelm_h(_1, _2, var, 1); // expected-error {{argument to '__builtin_lasx_xvstelm_h' must be a constant integer}} |
| 854 |
} |
| 855 |
|
| 856 |
void xvstelm_w(v8i32 _1, void * _2, int var) { |
| 857 |
__builtin_lasx_xvstelm_w(_1, _2, -516, 1); // expected-error {{argument value -516 is outside the valid range [-512, 508]}} |
| 858 |
__builtin_lasx_xvstelm_w(_1, _2, 512, 1); // expected-error {{argument value 512 is outside the valid range [-512, 508]}} |
| 859 |
__builtin_lasx_xvstelm_w(_1, _2, var, 1); // expected-error {{argument to '__builtin_lasx_xvstelm_w' must be a constant integer}} |
| 860 |
} |
| 861 |
|
| 862 |
void xvstelm_d(v4i64 _1, void * _2, int var) { |
| 863 |
__builtin_lasx_xvstelm_d(_1, _2, -1032, 1); // expected-error {{argument value -1032 is outside the valid range [-1024, 1016]}} |
| 864 |
__builtin_lasx_xvstelm_d(_1, _2, 1024, 1); // expected-error {{argument value 1024 is outside the valid range [-1024, 1016]}} |
| 865 |
__builtin_lasx_xvstelm_d(_1, _2, var, 1); // expected-error {{argument to '__builtin_lasx_xvstelm_d' must be a constant integer}} |
| 866 |
} |
| 867 |
|
| 868 |
void xvstelm_b_idx(v32i8 _1, void * _2, int var) { |
| 869 |
__builtin_lasx_xvstelm_b(_1, _2, 1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 870 |
__builtin_lasx_xvstelm_b(_1, _2, 1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 871 |
__builtin_lasx_xvstelm_b(_1, _2, 1, var); // expected-error {{argument to '__builtin_lasx_xvstelm_b' must be a constant integer}} |
| 872 |
} |
| 873 |
|
| 874 |
void xvstelm_h_idx(v16i16 _1, void * _2, int var) { |
| 875 |
__builtin_lasx_xvstelm_h(_1, _2, 2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 876 |
__builtin_lasx_xvstelm_h(_1, _2, 2, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 877 |
__builtin_lasx_xvstelm_h(_1, _2, 2, var); // expected-error {{argument to '__builtin_lasx_xvstelm_h' must be a constant integer}} |
| 878 |
} |
| 879 |
|
| 880 |
void xvstelm_w_idx(v8i32 _1, void * _2, int var) { |
| 881 |
__builtin_lasx_xvstelm_w(_1, _2, 4, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}} |
| 882 |
__builtin_lasx_xvstelm_w(_1, _2, 4, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}} |
| 883 |
__builtin_lasx_xvstelm_w(_1, _2, 4, var); // expected-error {{argument to '__builtin_lasx_xvstelm_w' must be a constant integer}} |
| 884 |
} |
| 885 |
|
| 886 |
void xvstelm_d_idx(v4i64 _1, void * _2, int var) { |
| 887 |
__builtin_lasx_xvstelm_d(_1, _2, 8, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}} |
| 888 |
__builtin_lasx_xvstelm_d(_1, _2, 8, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}} |
| 889 |
__builtin_lasx_xvstelm_d(_1, _2, 8, var); // expected-error {{argument to '__builtin_lasx_xvstelm_d' must be a constant integer}} |
| 890 |
} |
| 891 |
|
| 892 |
v8i32 xvinsve0_w(v8i32 _1, v8i32 _2, int var) { |
| 893 |
v8i32 res = __builtin_lasx_xvinsve0_w(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}} |
| 894 |
res |= __builtin_lasx_xvinsve0_w(_1, _2, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}} |
| 895 |
res |= __builtin_lasx_xvinsve0_w(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvinsve0_w' must be a constant integer}} |
| 896 |
return res; |
| 897 |
} |
| 898 |
|
| 899 |
v4i64 xvinsve0_d(v4i64 _1, v4i64 _2, int var) { |
| 900 |
v4i64 res = __builtin_lasx_xvinsve0_d(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}} |
| 901 |
res |= __builtin_lasx_xvinsve0_d(_1, _2, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}} |
| 902 |
res |= __builtin_lasx_xvinsve0_d(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvinsve0_d' must be a constant integer}} |
| 903 |
return res; |
| 904 |
} |
| 905 |
|
| 906 |
v8i32 xvpickve_w(v8i32 _1, int var) { |
| 907 |
v8i32 res = __builtin_lasx_xvpickve_w(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}} |
| 908 |
res |= __builtin_lasx_xvpickve_w(_1, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}} |
| 909 |
res |= __builtin_lasx_xvpickve_w(_1, var); // expected-error {{argument to '__builtin_lasx_xvpickve_w' must be a constant integer}} |
| 910 |
return res; |
| 911 |
} |
| 912 |
|
| 913 |
v4i64 xvpickve_d(v4i64 _1, int var) { |
| 914 |
v4i64 res = __builtin_lasx_xvpickve_d(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}} |
| 915 |
res |= __builtin_lasx_xvpickve_d(_1, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}} |
| 916 |
res |= __builtin_lasx_xvpickve_d(_1, var); // expected-error {{argument to '__builtin_lasx_xvpickve_d' must be a constant integer}} |
| 917 |
return res; |
| 918 |
} |
| 919 |
|
| 920 |
v4i64 xvldi(int var) { |
| 921 |
v4i64 res = __builtin_lasx_xvldi(-4097); // expected-error {{argument value -4097 is outside the valid range [-4096, 4095]}} |
| 922 |
res |= __builtin_lasx_xvldi(4096); // expected-error {{argument value 4096 is outside the valid range [-4096, 4095]}} |
| 923 |
res |= __builtin_lasx_xvldi(var); // expected-error {{argument to '__builtin_lasx_xvldi' must be a constant integer}} |
| 924 |
return res; |
| 925 |
} |
| 926 |
|
| 927 |
v8i32 xvinsgr2vr_w(v8i32 _1, int var) { |
| 928 |
v8i32 res = __builtin_lasx_xvinsgr2vr_w(_1, 1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}} |
| 929 |
res |= __builtin_lasx_xvinsgr2vr_w(_1, 1, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}} |
| 930 |
res |= __builtin_lasx_xvinsgr2vr_w(_1, 1, var); // expected-error {{argument to '__builtin_lasx_xvinsgr2vr_w' must be a constant integer}} |
| 931 |
return res; |
| 932 |
} |
| 933 |
|
| 934 |
v4i64 xvinsgr2vr_d(v4i64 _1, int var) { |
| 935 |
v4i64 res = __builtin_lasx_xvinsgr2vr_d(_1, 1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}} |
| 936 |
res |= __builtin_lasx_xvinsgr2vr_d(_1, 1, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}} |
| 937 |
res |= __builtin_lasx_xvinsgr2vr_d(_1, 1, var); // expected-error {{argument to '__builtin_lasx_xvinsgr2vr_d' must be a constant integer}} |
| 938 |
return res; |
| 939 |
} |
| 940 |
|
| 941 |
v32i8 xvldrepl_b(void *_1, int var) { |
| 942 |
v32i8 res = __builtin_lasx_xvldrepl_b(_1, -2049); // expected-error {{argument value -2049 is outside the valid range [-2048, 2047]}} |
| 943 |
res |= __builtin_lasx_xvldrepl_b(_1, 2048); // expected-error {{argument value 2048 is outside the valid range [-2048, 2047]}} |
| 944 |
res |= __builtin_lasx_xvldrepl_b(_1, var); // expected-error {{argument to '__builtin_lasx_xvldrepl_b' must be a constant integer}} |
| 945 |
return res; |
| 946 |
} |
| 947 |
|
| 948 |
v16i16 xvldrepl_h(void *_1, int var) { |
| 949 |
v16i16 res = __builtin_lasx_xvldrepl_h(_1, -2050); // expected-error {{argument value -2050 is outside the valid range [-2048, 2046]}} |
| 950 |
res |= __builtin_lasx_xvldrepl_h(_1, 2048); // expected-error {{argument value 2048 is outside the valid range [-2048, 2046]}} |
| 951 |
res |= __builtin_lasx_xvldrepl_h(_1, var); // expected-error {{argument to '__builtin_lasx_xvldrepl_h' must be a constant integer}} |
| 952 |
return res; |
| 953 |
} |
| 954 |
|
| 955 |
v8i32 xvldrepl_w(void *_1, int var) { |
| 956 |
v8i32 res = __builtin_lasx_xvldrepl_w(_1, -2052); // expected-error {{argument value -2052 is outside the valid range [-2048, 2044]}} |
| 957 |
res |= __builtin_lasx_xvldrepl_w(_1, 2048); // expected-error {{argument value 2048 is outside the valid range [-2048, 2044]}} |
| 958 |
res |= __builtin_lasx_xvldrepl_w(_1, var); // expected-error {{argument to '__builtin_lasx_xvldrepl_w' must be a constant integer}} |
| 959 |
return res; |
| 960 |
} |
| 961 |
|
| 962 |
v4i64 xvldrepl_d(void *_1, int var) { |
| 963 |
v4i64 res = __builtin_lasx_xvldrepl_d(_1, -2056); // expected-error {{argument value -2056 is outside the valid range [-2048, 2040]}} |
| 964 |
res |= __builtin_lasx_xvldrepl_d(_1, 2048); // expected-error {{argument value 2048 is outside the valid range [-2048, 2040]}} |
| 965 |
res |= __builtin_lasx_xvldrepl_d(_1, var); // expected-error {{argument to '__builtin_lasx_xvldrepl_d' must be a constant integer}} |
| 966 |
return res; |
| 967 |
} |
| 968 |
|
| 969 |
int xvpickve2gr_w(v8i32 _1, int var) { |
| 970 |
int res = __builtin_lasx_xvpickve2gr_w(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}} |
| 971 |
res |= __builtin_lasx_xvpickve2gr_w(_1, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}} |
| 972 |
res |= __builtin_lasx_xvpickve2gr_w(_1, var); // expected-error {{argument to '__builtin_lasx_xvpickve2gr_w' must be a constant integer}} |
| 973 |
return res; |
| 974 |
} |
| 975 |
|
| 976 |
unsigned int xvpickve2gr_wu(v8i32 _1, int var) { |
| 977 |
unsigned int res = __builtin_lasx_xvpickve2gr_wu(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}} |
| 978 |
res |= __builtin_lasx_xvpickve2gr_wu(_1, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}} |
| 979 |
res |= __builtin_lasx_xvpickve2gr_wu(_1, var); // expected-error {{argument to '__builtin_lasx_xvpickve2gr_wu' must be a constant integer}} |
| 980 |
return res; |
| 981 |
} |
| 982 |
|
| 983 |
long xvpickve2gr_d(v4i64 _1, int var) { |
| 984 |
long res = __builtin_lasx_xvpickve2gr_d(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}} |
| 985 |
res |= __builtin_lasx_xvpickve2gr_d(_1, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}} |
| 986 |
res |= __builtin_lasx_xvpickve2gr_d(_1, var); // expected-error {{argument to '__builtin_lasx_xvpickve2gr_d' must be a constant integer}} |
| 987 |
return res; |
| 988 |
} |
| 989 |
|
| 990 |
unsigned long int xvpickve2gr_du(v4i64 _1, int var) { |
| 991 |
unsigned long int res = __builtin_lasx_xvpickve2gr_du(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}} |
| 992 |
res |= __builtin_lasx_xvpickve2gr_du(_1, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}} |
| 993 |
res |= __builtin_lasx_xvpickve2gr_du(_1, var); // expected-error {{argument to '__builtin_lasx_xvpickve2gr_du' must be a constant integer}} |
| 994 |
return res; |
| 995 |
} |
| 996 |
|
| 997 |
v32i8 xvrotri_b(v32i8 _1, int var) { |
| 998 |
v32i8 res = __builtin_lasx_xvrotri_b(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}} |
| 999 |
res |= __builtin_lasx_xvrotri_b(_1, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}} |
| 1000 |
res |= __builtin_lasx_xvrotri_b(_1, var); // expected-error {{argument to '__builtin_lasx_xvrotri_b' must be a constant integer}} |
| 1001 |
return res; |
| 1002 |
} |
| 1003 |
|
| 1004 |
v16i16 xvrotri_h(v16i16 _1, int var) { |
| 1005 |
v16i16 res = __builtin_lasx_xvrotri_h(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 1006 |
res |= __builtin_lasx_xvrotri_h(_1, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 1007 |
res |= __builtin_lasx_xvrotri_h(_1, var); // expected-error {{argument to '__builtin_lasx_xvrotri_h' must be a constant integer}} |
| 1008 |
return res; |
| 1009 |
} |
| 1010 |
|
| 1011 |
v8i32 xvrotri_w(v8i32 _1, int var) { |
| 1012 |
v8i32 res = __builtin_lasx_xvrotri_w(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 1013 |
res |= __builtin_lasx_xvrotri_w(_1, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 1014 |
res |= __builtin_lasx_xvrotri_w(_1, var); // expected-error {{argument to '__builtin_lasx_xvrotri_w' must be a constant integer}} |
| 1015 |
return res; |
| 1016 |
} |
| 1017 |
|
| 1018 |
v4i64 xvrotri_d(v4i64 _1, int var) { |
| 1019 |
v4i64 res = __builtin_lasx_xvrotri_d(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}} |
| 1020 |
res |= __builtin_lasx_xvrotri_d(_1, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}} |
| 1021 |
res |= __builtin_lasx_xvrotri_d(_1, var); // expected-error {{argument to '__builtin_lasx_xvrotri_d' must be a constant integer}} |
| 1022 |
return res; |
| 1023 |
} |
| 1024 |
|
| 1025 |
v32i8 xvsrlni_b_h(v32i8 _1, v32i8 _2, int var) { |
| 1026 |
v32i8 res = __builtin_lasx_xvsrlni_b_h(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 1027 |
res |= __builtin_lasx_xvsrlni_b_h(_1, _2, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 1028 |
res |= __builtin_lasx_xvsrlni_b_h(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvsrlni_b_h' must be a constant integer}} |
| 1029 |
return res; |
| 1030 |
} |
| 1031 |
|
| 1032 |
v16i16 xvsrlni_h_w(v16i16 _1, v16i16 _2, int var) { |
| 1033 |
v16i16 res = __builtin_lasx_xvsrlni_h_w(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 1034 |
res |= __builtin_lasx_xvsrlni_h_w(_1, _2, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 1035 |
res |= __builtin_lasx_xvsrlni_h_w(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvsrlni_h_w' must be a constant integer}} |
| 1036 |
return res; |
| 1037 |
} |
| 1038 |
|
| 1039 |
v8i32 xvsrlni_w_d(v8i32 _1, v8i32 _2, int var) { |
| 1040 |
v8i32 res = __builtin_lasx_xvsrlni_w_d(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}} |
| 1041 |
res |= __builtin_lasx_xvsrlni_w_d(_1, _2, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}} |
| 1042 |
res |= __builtin_lasx_xvsrlni_w_d(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvsrlni_w_d' must be a constant integer}} |
| 1043 |
return res; |
| 1044 |
} |
| 1045 |
|
| 1046 |
v4i64 xvsrlni_d_q(v4i64 _1, v4i64 _2, int var) { |
| 1047 |
v4i64 res = __builtin_lasx_xvsrlni_d_q(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}} |
| 1048 |
res |= __builtin_lasx_xvsrlni_d_q(_1, _2, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}} |
| 1049 |
res |= __builtin_lasx_xvsrlni_d_q(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvsrlni_d_q' must be a constant integer}} |
| 1050 |
return res; |
| 1051 |
} |
| 1052 |
|
| 1053 |
v32i8 xvsrlrni_b_h(v32i8 _1, v32i8 _2, int var) { |
| 1054 |
v32i8 res = __builtin_lasx_xvsrlrni_b_h(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 1055 |
res |= __builtin_lasx_xvsrlrni_b_h(_1, _2, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 1056 |
res |= __builtin_lasx_xvsrlrni_b_h(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvsrlrni_b_h' must be a constant integer}} |
| 1057 |
return res; |
| 1058 |
} |
| 1059 |
|
| 1060 |
v16i16 xvsrlrni_h_w(v16i16 _1, v16i16 _2, int var) { |
| 1061 |
v16i16 res = __builtin_lasx_xvsrlrni_h_w(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 1062 |
res |= __builtin_lasx_xvsrlrni_h_w(_1, _2, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 1063 |
res |= __builtin_lasx_xvsrlrni_h_w(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvsrlrni_h_w' must be a constant integer}} |
| 1064 |
return res; |
| 1065 |
} |
| 1066 |
|
| 1067 |
v8i32 xvsrlrni_w_d(v8i32 _1, v8i32 _2, int var) { |
| 1068 |
v8i32 res = __builtin_lasx_xvsrlrni_w_d(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}} |
| 1069 |
res |= __builtin_lasx_xvsrlrni_w_d(_1, _2, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}} |
| 1070 |
res |= __builtin_lasx_xvsrlrni_w_d(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvsrlrni_w_d' must be a constant integer}} |
| 1071 |
return res; |
| 1072 |
} |
| 1073 |
|
| 1074 |
v4i64 xvsrlrni_d_q(v4i64 _1, v4i64 _2, int var) { |
| 1075 |
v4i64 res = __builtin_lasx_xvsrlrni_d_q(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}} |
| 1076 |
res |= __builtin_lasx_xvsrlrni_d_q(_1, _2, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}} |
| 1077 |
res |= __builtin_lasx_xvsrlrni_d_q(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvsrlrni_d_q' must be a constant integer}} |
| 1078 |
return res; |
| 1079 |
} |
| 1080 |
|
| 1081 |
v32i8 xvssrlni_b_h(v32i8 _1, v32i8 _2, int var) { |
| 1082 |
v32i8 res = __builtin_lasx_xvssrlni_b_h(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 1083 |
res |= __builtin_lasx_xvssrlni_b_h(_1, _2, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 1084 |
res |= __builtin_lasx_xvssrlni_b_h(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrlni_b_h' must be a constant integer}} |
| 1085 |
return res; |
| 1086 |
} |
| 1087 |
|
| 1088 |
v16i16 xvssrlni_h_w(v16i16 _1, v16i16 _2, int var) { |
| 1089 |
v16i16 res = __builtin_lasx_xvssrlni_h_w(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 1090 |
res |= __builtin_lasx_xvssrlni_h_w(_1, _2, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 1091 |
res |= __builtin_lasx_xvssrlni_h_w(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrlni_h_w' must be a constant integer}} |
| 1092 |
return res; |
| 1093 |
} |
| 1094 |
|
| 1095 |
v8i32 xvssrlni_w_d(v8i32 _1, v8i32 _2, int var) { |
| 1096 |
v8i32 res = __builtin_lasx_xvssrlni_w_d(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}} |
| 1097 |
res |= __builtin_lasx_xvssrlni_w_d(_1, _2, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}} |
| 1098 |
res |= __builtin_lasx_xvssrlni_w_d(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrlni_w_d' must be a constant integer}} |
| 1099 |
return res; |
| 1100 |
} |
| 1101 |
|
| 1102 |
v4i64 xvssrlni_d_q(v4i64 _1, v4i64 _2, int var) { |
| 1103 |
v4i64 res = __builtin_lasx_xvssrlni_d_q(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}} |
| 1104 |
res |= __builtin_lasx_xvssrlni_d_q(_1, _2, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}} |
| 1105 |
res |= __builtin_lasx_xvssrlni_d_q(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrlni_d_q' must be a constant integer}} |
| 1106 |
return res; |
| 1107 |
} |
| 1108 |
|
| 1109 |
v32u8 xvssrlni_bu_h(v32u8 _1, v32i8 _2, int var) { |
| 1110 |
v32u8 res = __builtin_lasx_xvssrlni_bu_h(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 1111 |
res |= __builtin_lasx_xvssrlni_bu_h(_1, _2, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 1112 |
res |= __builtin_lasx_xvssrlni_bu_h(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrlni_bu_h' must be a constant integer}} |
| 1113 |
return res; |
| 1114 |
} |
| 1115 |
|
| 1116 |
v16u16 xvssrlni_hu_w(v16u16 _1, v16i16 _2, int var) { |
| 1117 |
v16u16 res = __builtin_lasx_xvssrlni_hu_w(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 1118 |
res |= __builtin_lasx_xvssrlni_hu_w(_1, _2, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 1119 |
res |= __builtin_lasx_xvssrlni_hu_w(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrlni_hu_w' must be a constant integer}} |
| 1120 |
return res; |
| 1121 |
} |
| 1122 |
|
| 1123 |
v8u32 xvssrlni_wu_d(v8u32 _1, v8i32 _2, int var) { |
| 1124 |
v8u32 res = __builtin_lasx_xvssrlni_wu_d(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}} |
| 1125 |
res |= __builtin_lasx_xvssrlni_wu_d(_1, _2, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}} |
| 1126 |
res |= __builtin_lasx_xvssrlni_wu_d(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrlni_wu_d' must be a constant integer}} |
| 1127 |
return res; |
| 1128 |
} |
| 1129 |
|
| 1130 |
v4u64 xvssrlni_du_q(v4u64 _1, v4i64 _2, int var) { |
| 1131 |
v4u64 res = __builtin_lasx_xvssrlni_du_q(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}} |
| 1132 |
res |= __builtin_lasx_xvssrlni_du_q(_1, _2, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}} |
| 1133 |
res |= __builtin_lasx_xvssrlni_du_q(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrlni_du_q' must be a constant integer}} |
| 1134 |
return res; |
| 1135 |
} |
| 1136 |
|
| 1137 |
v32i8 xvssrlrni_b_h(v32i8 _1, v32i8 _2, int var) { |
| 1138 |
v32i8 res = __builtin_lasx_xvssrlrni_b_h(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 1139 |
res |= __builtin_lasx_xvssrlrni_b_h(_1, _2, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 1140 |
res |= __builtin_lasx_xvssrlrni_b_h(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrlrni_b_h' must be a constant integer}} |
| 1141 |
return res; |
| 1142 |
} |
| 1143 |
|
| 1144 |
v16i16 xvssrlrni_h_w(v16i16 _1, v16i16 _2, int var) { |
| 1145 |
v16i16 res = __builtin_lasx_xvssrlrni_h_w(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 1146 |
res |= __builtin_lasx_xvssrlrni_h_w(_1, _2, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 1147 |
res |= __builtin_lasx_xvssrlrni_h_w(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrlrni_h_w' must be a constant integer}} |
| 1148 |
return res; |
| 1149 |
} |
| 1150 |
|
| 1151 |
v8i32 xvssrlrni_w_d(v8i32 _1, v8i32 _2, int var) { |
| 1152 |
v8i32 res = __builtin_lasx_xvssrlrni_w_d(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}} |
| 1153 |
res |= __builtin_lasx_xvssrlrni_w_d(_1, _2, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}} |
| 1154 |
res |= __builtin_lasx_xvssrlrni_w_d(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrlrni_w_d' must be a constant integer}} |
| 1155 |
return res; |
| 1156 |
} |
| 1157 |
|
| 1158 |
v4i64 xvssrlrni_d_q(v4i64 _1, v4i64 _2, int var) { |
| 1159 |
v4i64 res = __builtin_lasx_xvssrlrni_d_q(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}} |
| 1160 |
res |= __builtin_lasx_xvssrlrni_d_q(_1, _2, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}} |
| 1161 |
res |= __builtin_lasx_xvssrlrni_d_q(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrlrni_d_q' must be a constant integer}} |
| 1162 |
return res; |
| 1163 |
} |
| 1164 |
|
| 1165 |
v32u8 xvssrlrni_bu_h(v32u8 _1, v32i8 _2, int var) { |
| 1166 |
v32u8 res = __builtin_lasx_xvssrlrni_bu_h(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 1167 |
res |= __builtin_lasx_xvssrlrni_bu_h(_1, _2, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 1168 |
res |= __builtin_lasx_xvssrlrni_bu_h(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrlrni_bu_h' must be a constant integer}} |
| 1169 |
return res; |
| 1170 |
} |
| 1171 |
|
| 1172 |
v16u16 xvssrlrni_hu_w(v16u16 _1, v16i16 _2, int var) { |
| 1173 |
v16u16 res = __builtin_lasx_xvssrlrni_hu_w(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 1174 |
res |= __builtin_lasx_xvssrlrni_hu_w(_1, _2, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 1175 |
res |= __builtin_lasx_xvssrlrni_hu_w(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrlrni_hu_w' must be a constant integer}} |
| 1176 |
return res; |
| 1177 |
} |
| 1178 |
|
| 1179 |
v8u32 xvssrlrni_wu_d(v8u32 _1, v8i32 _2, int var) { |
| 1180 |
v8u32 res = __builtin_lasx_xvssrlrni_wu_d(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}} |
| 1181 |
res |= __builtin_lasx_xvssrlrni_wu_d(_1, _2, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}} |
| 1182 |
res |= __builtin_lasx_xvssrlrni_wu_d(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrlrni_wu_d' must be a constant integer}} |
| 1183 |
return res; |
| 1184 |
} |
| 1185 |
|
| 1186 |
v4u64 xvssrlrni_du_q(v4u64 _1, v4i64 _2, int var) { |
| 1187 |
v4u64 res = __builtin_lasx_xvssrlrni_du_q(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}} |
| 1188 |
res |= __builtin_lasx_xvssrlrni_du_q(_1, _2, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}} |
| 1189 |
res |= __builtin_lasx_xvssrlrni_du_q(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrlrni_du_q' must be a constant integer}} |
| 1190 |
return res; |
| 1191 |
} |
| 1192 |
|
| 1193 |
v32i8 xvsrani_b_h(v32i8 _1, v32i8 _2, int var) { |
| 1194 |
v32i8 res = __builtin_lasx_xvsrani_b_h(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 1195 |
res |= __builtin_lasx_xvsrani_b_h(_1, _2, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 1196 |
res |= __builtin_lasx_xvsrani_b_h(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvsrani_b_h' must be a constant integer}} |
| 1197 |
return res; |
| 1198 |
} |
| 1199 |
|
| 1200 |
v16i16 xvsrani_h_w(v16i16 _1, v16i16 _2, int var) { |
| 1201 |
v16i16 res = __builtin_lasx_xvsrani_h_w(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 1202 |
res |= __builtin_lasx_xvsrani_h_w(_1, _2, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 1203 |
res |= __builtin_lasx_xvsrani_h_w(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvsrani_h_w' must be a constant integer}} |
| 1204 |
return res; |
| 1205 |
} |
| 1206 |
|
| 1207 |
v8i32 xvsrani_w_d(v8i32 _1, v8i32 _2, int var) { |
| 1208 |
v8i32 res = __builtin_lasx_xvsrani_w_d(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}} |
| 1209 |
res |= __builtin_lasx_xvsrani_w_d(_1, _2, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}} |
| 1210 |
res |= __builtin_lasx_xvsrani_w_d(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvsrani_w_d' must be a constant integer}} |
| 1211 |
return res; |
| 1212 |
} |
| 1213 |
|
| 1214 |
v4i64 xvsrani_d_q(v4i64 _1, v4i64 _2, int var) { |
| 1215 |
v4i64 res = __builtin_lasx_xvsrani_d_q(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}} |
| 1216 |
res |= __builtin_lasx_xvsrani_d_q(_1, _2, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}} |
| 1217 |
res |= __builtin_lasx_xvsrani_d_q(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvsrani_d_q' must be a constant integer}} |
| 1218 |
return res; |
| 1219 |
} |
| 1220 |
|
| 1221 |
v32i8 xvsrarni_b_h(v32i8 _1, v32i8 _2, int var) { |
| 1222 |
v32i8 res = __builtin_lasx_xvsrarni_b_h(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 1223 |
res |= __builtin_lasx_xvsrarni_b_h(_1, _2, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 1224 |
res |= __builtin_lasx_xvsrarni_b_h(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvsrarni_b_h' must be a constant integer}} |
| 1225 |
return res; |
| 1226 |
} |
| 1227 |
|
| 1228 |
v16i16 xvsrarni_h_w(v16i16 _1, v16i16 _2, int var) { |
| 1229 |
v16i16 res = __builtin_lasx_xvsrarni_h_w(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 1230 |
res |= __builtin_lasx_xvsrarni_h_w(_1, _2, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 1231 |
res |= __builtin_lasx_xvsrarni_h_w(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvsrarni_h_w' must be a constant integer}} |
| 1232 |
return res; |
| 1233 |
} |
| 1234 |
|
| 1235 |
v8i32 xvsrarni_w_d(v8i32 _1, v8i32 _2, int var) { |
| 1236 |
v8i32 res = __builtin_lasx_xvsrarni_w_d(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}} |
| 1237 |
res |= __builtin_lasx_xvsrarni_w_d(_1, _2, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}} |
| 1238 |
res |= __builtin_lasx_xvsrarni_w_d(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvsrarni_w_d' must be a constant integer}} |
| 1239 |
return res; |
| 1240 |
} |
| 1241 |
|
| 1242 |
v4i64 xvsrarni_d_q(v4i64 _1, v4i64 _2, int var) { |
| 1243 |
v4i64 res = __builtin_lasx_xvsrarni_d_q(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}} |
| 1244 |
res |= __builtin_lasx_xvsrarni_d_q(_1, _2, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}} |
| 1245 |
res |= __builtin_lasx_xvsrarni_d_q(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvsrarni_d_q' must be a constant integer}} |
| 1246 |
return res; |
| 1247 |
} |
| 1248 |
|
| 1249 |
v32i8 xvssrani_b_h(v32i8 _1, v32i8 _2, int var) { |
| 1250 |
v32i8 res = __builtin_lasx_xvssrani_b_h(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 1251 |
res |= __builtin_lasx_xvssrani_b_h(_1, _2, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 1252 |
res |= __builtin_lasx_xvssrani_b_h(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrani_b_h' must be a constant integer}} |
| 1253 |
return res; |
| 1254 |
} |
| 1255 |
|
| 1256 |
v16i16 xvssrani_h_w(v16i16 _1, v16i16 _2, int var) { |
| 1257 |
v16i16 res = __builtin_lasx_xvssrani_h_w(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 1258 |
res |= __builtin_lasx_xvssrani_h_w(_1, _2, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 1259 |
res |= __builtin_lasx_xvssrani_h_w(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrani_h_w' must be a constant integer}} |
| 1260 |
return res; |
| 1261 |
} |
| 1262 |
|
| 1263 |
v8i32 xvssrani_w_d(v8i32 _1, v8i32 _2, int var) { |
| 1264 |
v8i32 res = __builtin_lasx_xvssrani_w_d(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}} |
| 1265 |
res |= __builtin_lasx_xvssrani_w_d(_1, _2, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}} |
| 1266 |
res |= __builtin_lasx_xvssrani_w_d(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrani_w_d' must be a constant integer}} |
| 1267 |
return res; |
| 1268 |
} |
| 1269 |
|
| 1270 |
v4i64 xvssrani_d_q(v4i64 _1, v4i64 _2, int var) { |
| 1271 |
v4i64 res = __builtin_lasx_xvssrani_d_q(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}} |
| 1272 |
res |= __builtin_lasx_xvssrani_d_q(_1, _2, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}} |
| 1273 |
res |= __builtin_lasx_xvssrani_d_q(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrani_d_q' must be a constant integer}} |
| 1274 |
return res; |
| 1275 |
} |
| 1276 |
|
| 1277 |
v32u8 xvssrani_bu_h(v32u8 _1, v32i8 _2, int var) { |
| 1278 |
v32u8 res = __builtin_lasx_xvssrani_bu_h(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 1279 |
res |= __builtin_lasx_xvssrani_bu_h(_1, _2, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 1280 |
res |= __builtin_lasx_xvssrani_bu_h(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrani_bu_h' must be a constant integer}} |
| 1281 |
return res; |
| 1282 |
} |
| 1283 |
|
| 1284 |
v16u16 xvssrani_hu_w(v16u16 _1, v16i16 _2, int var) { |
| 1285 |
v16u16 res = __builtin_lasx_xvssrani_hu_w(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 1286 |
res |= __builtin_lasx_xvssrani_hu_w(_1, _2, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 1287 |
res |= __builtin_lasx_xvssrani_hu_w(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrani_hu_w' must be a constant integer}} |
| 1288 |
return res; |
| 1289 |
} |
| 1290 |
|
| 1291 |
v8u32 xvssrani_wu_d(v8u32 _1, v8i32 _2, int var) { |
| 1292 |
v8u32 res = __builtin_lasx_xvssrani_wu_d(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}} |
| 1293 |
res |= __builtin_lasx_xvssrani_wu_d(_1, _2, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}} |
| 1294 |
res |= __builtin_lasx_xvssrani_wu_d(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrani_wu_d' must be a constant integer}} |
| 1295 |
return res; |
| 1296 |
} |
| 1297 |
|
| 1298 |
v4u64 xvssrani_du_q(v4u64 _1, v4i64 _2, int var) { |
| 1299 |
v4u64 res = __builtin_lasx_xvssrani_du_q(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}} |
| 1300 |
res |= __builtin_lasx_xvssrani_du_q(_1, _2, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}} |
| 1301 |
res |= __builtin_lasx_xvssrani_du_q(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrani_du_q' must be a constant integer}} |
| 1302 |
return res; |
| 1303 |
} |
| 1304 |
|
| 1305 |
v32i8 xvssrarni_b_h(v32i8 _1, v32i8 _2, int var) { |
| 1306 |
v32i8 res = __builtin_lasx_xvssrarni_b_h(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 1307 |
res |= __builtin_lasx_xvssrarni_b_h(_1, _2, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 1308 |
res |= __builtin_lasx_xvssrarni_b_h(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrarni_b_h' must be a constant integer}} |
| 1309 |
return res; |
| 1310 |
} |
| 1311 |
|
| 1312 |
v16i16 xvssrarni_h_w(v16i16 _1, v16i16 _2, int var) { |
| 1313 |
v16i16 res = __builtin_lasx_xvssrarni_h_w(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 1314 |
res |= __builtin_lasx_xvssrarni_h_w(_1, _2, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 1315 |
res |= __builtin_lasx_xvssrarni_h_w(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrarni_h_w' must be a constant integer}} |
| 1316 |
return res; |
| 1317 |
} |
| 1318 |
|
| 1319 |
v8i32 xvssrarni_w_d(v8i32 _1, v8i32 _2, int var) { |
| 1320 |
v8i32 res = __builtin_lasx_xvssrarni_w_d(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}} |
| 1321 |
res |= __builtin_lasx_xvssrarni_w_d(_1, _2, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}} |
| 1322 |
res |= __builtin_lasx_xvssrarni_w_d(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrarni_w_d' must be a constant integer}} |
| 1323 |
return res; |
| 1324 |
} |
| 1325 |
|
| 1326 |
v4i64 xvssrarni_d_q(v4i64 _1, v4i64 _2, int var) { |
| 1327 |
v4i64 res = __builtin_lasx_xvssrarni_d_q(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}} |
| 1328 |
res |= __builtin_lasx_xvssrarni_d_q(_1, _2, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}} |
| 1329 |
res |= __builtin_lasx_xvssrarni_d_q(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrarni_d_q' must be a constant integer}} |
| 1330 |
return res; |
| 1331 |
} |
| 1332 |
|
| 1333 |
v32u8 xvssrarni_bu_h(v32u8 _1, v32i8 _2, int var) { |
| 1334 |
v32u8 res = __builtin_lasx_xvssrarni_bu_h(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 15]}} |
| 1335 |
res |= __builtin_lasx_xvssrarni_bu_h(_1, _2, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 1336 |
res |= __builtin_lasx_xvssrarni_bu_h(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrarni_bu_h' must be a constant integer}} |
| 1337 |
return res; |
| 1338 |
} |
| 1339 |
|
| 1340 |
v16u16 xvssrarni_hu_w(v16u16 _1, v16i16 _2, int var) { |
| 1341 |
v16u16 res = __builtin_lasx_xvssrarni_hu_w(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 31]}} |
| 1342 |
res |= __builtin_lasx_xvssrarni_hu_w(_1, _2, 32); // expected-error {{argument value 32 is outside the valid range [0, 31]}} |
| 1343 |
res |= __builtin_lasx_xvssrarni_hu_w(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrarni_hu_w' must be a constant integer}} |
| 1344 |
return res; |
| 1345 |
} |
| 1346 |
|
| 1347 |
v8u32 xvssrarni_wu_d(v8u32 _1, v8i32 _2, int var) { |
| 1348 |
v8u32 res = __builtin_lasx_xvssrarni_wu_d(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 63]}} |
| 1349 |
res |= __builtin_lasx_xvssrarni_wu_d(_1, _2, 64); // expected-error {{argument value 64 is outside the valid range [0, 63]}} |
| 1350 |
res |= __builtin_lasx_xvssrarni_wu_d(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrarni_wu_d' must be a constant integer}} |
| 1351 |
return res; |
| 1352 |
} |
| 1353 |
|
| 1354 |
v4u64 xvssrarni_du_q(v4u64 _1, v4i64 _2, int var) { |
| 1355 |
v4u64 res = __builtin_lasx_xvssrarni_du_q(_1, _2, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 127]}} |
| 1356 |
res |= __builtin_lasx_xvssrarni_du_q(_1, _2, 128); // expected-error {{argument value 128 is outside the valid range [0, 127]}} |
| 1357 |
res |= __builtin_lasx_xvssrarni_du_q(_1, _2, var); // expected-error {{argument to '__builtin_lasx_xvssrarni_du_q' must be a constant integer}} |
| 1358 |
return res; |
| 1359 |
} |
| 1360 |
|
| 1361 |
v4f64 xvpickve_d_f(v4f64 _1, int var) { |
| 1362 |
v4f64 res = __builtin_lasx_xvpickve_d_f(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 3]}} |
| 1363 |
res += __builtin_lasx_xvpickve_d_f(_1, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}} |
| 1364 |
res += __builtin_lasx_xvpickve_d_f(_1, var); // expected-error {{argument to '__builtin_lasx_xvpickve_d_f' must be a constant integer}} |
| 1365 |
return res; |
| 1366 |
} |
| 1367 |
|
| 1368 |
v8f32 xvpickve_w_f(v8f32 _1, int var) { |
| 1369 |
v8f32 res = __builtin_lasx_xvpickve_w_f(_1, -1); // expected-error {{argument value 4294967295 is outside the valid range [0, 7]}} |
| 1370 |
res += __builtin_lasx_xvpickve_w_f(_1, 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}} |
| 1371 |
res += __builtin_lasx_xvpickve_w_f(_1, var); // expected-error {{argument to '__builtin_lasx_xvpickve_w_f' must be a constant integer}} |
| 1372 |
return res; |
| 1373 |
} |
| 1374 |
|
| 1375 |
v32i8 xvrepli_b(int var) { |
| 1376 |
v32i8 res = __builtin_lasx_xvrepli_b(-513); // expected-error {{argument value -513 is outside the valid range [-512, 511]}} |
| 1377 |
res |= __builtin_lasx_xvrepli_b(512); // expected-error {{argument value 512 is outside the valid range [-512, 511]}} |
| 1378 |
res |= __builtin_lasx_xvrepli_b(var); // expected-error {{argument to '__builtin_lasx_xvrepli_b' must be a constant integer}} |
| 1379 |
return res; |
| 1380 |
} |
| 1381 |
|
| 1382 |
v4i64 xvrepli_d(int var) { |
| 1383 |
v4i64 res = __builtin_lasx_xvrepli_d(-513); // expected-error {{argument value -513 is outside the valid range [-512, 511]}} |
| 1384 |
res |= __builtin_lasx_xvrepli_d(512); // expected-error {{argument value 512 is outside the valid range [-512, 511]}} |
| 1385 |
res |= __builtin_lasx_xvrepli_d(var); // expected-error {{argument to '__builtin_lasx_xvrepli_d' must be a constant integer}} |
| 1386 |
return res; |
| 1387 |
} |
| 1388 |
|
| 1389 |
v16i16 xvrepli_h(int var) { |
| 1390 |
v16i16 res = __builtin_lasx_xvrepli_h(-513); // expected-error {{argument value -513 is outside the valid range [-512, 511]}} |
| 1391 |
res |= __builtin_lasx_xvrepli_h(512); // expected-error {{argument value 512 is outside the valid range [-512, 511]}} |
| 1392 |
res |= __builtin_lasx_xvrepli_h(var); // expected-error {{argument to '__builtin_lasx_xvrepli_h' must be a constant integer}} |
| 1393 |
return res; |
| 1394 |
} |
| 1395 |
|
| 1396 |
v8i32 xvrepli_w(int var) { |
| 1397 |
v8i32 res = __builtin_lasx_xvrepli_w(-513); // expected-error {{argument value -513 is outside the valid range [-512, 511]}} |
| 1398 |
res |= __builtin_lasx_xvrepli_w(512); // expected-error {{argument value 512 is outside the valid range [-512, 511]}} |
| 1399 |
res |= __builtin_lasx_xvrepli_w(var); // expected-error {{argument to '__builtin_lasx_xvrepli_w' must be a constant integer}} |
| 1400 |
return res; |
| 1401 |
} |