| 1 |
// REQUIRES: systemz-registered-target |
| 2 |
// RUN: %clang_cc1 -target-cpu z13 -triple s390x-linux-gnu \ |
| 3 |
// RUN: -fzvector -flax-vector-conversions=none \ |
| 4 |
// RUN: -Wall -Wno-unused -Werror -fsyntax-only -verify %s |
| 5 |
|
| 6 |
#include <vecintrin.h> |
| 7 |
|
| 8 |
volatile vector signed char vsc; |
| 9 |
volatile vector signed short vss; |
| 10 |
volatile vector signed int vsi; |
| 11 |
volatile vector signed long long vsl; |
| 12 |
volatile vector signed __int128 vslll; |
| 13 |
volatile vector unsigned char vuc; |
| 14 |
volatile vector unsigned short vus; |
| 15 |
volatile vector unsigned int vui; |
| 16 |
volatile vector unsigned long long vul; |
| 17 |
volatile vector unsigned __int128 vulll; |
| 18 |
volatile vector bool char vbc; |
| 19 |
volatile vector bool short vbs; |
| 20 |
volatile vector bool int vbi; |
| 21 |
volatile vector bool long long vbl; |
| 22 |
volatile vector double vd; |
| 23 |
|
| 24 |
volatile signed char sc; |
| 25 |
volatile signed short ss; |
| 26 |
volatile signed int si; |
| 27 |
volatile signed long long sl; |
| 28 |
volatile unsigned char uc; |
| 29 |
volatile unsigned short us; |
| 30 |
volatile unsigned int ui; |
| 31 |
volatile unsigned long long ul; |
| 32 |
volatile double d; |
| 33 |
|
| 34 |
const void * volatile cptr; |
| 35 |
const signed char * volatile cptrsc; |
| 36 |
const signed short * volatile cptrss; |
| 37 |
const signed int * volatile cptrsi; |
| 38 |
const signed long long * volatile cptrsl; |
| 39 |
const signed __int128 * volatile cptrslll; |
| 40 |
const unsigned char * volatile cptruc; |
| 41 |
const unsigned short * volatile cptrus; |
| 42 |
const unsigned int * volatile cptrui; |
| 43 |
const unsigned long long * volatile cptrul; |
| 44 |
const unsigned __int128 * volatile cptrulll; |
| 45 |
const float * volatile cptrf; |
| 46 |
const double * volatile cptrd; |
| 47 |
|
| 48 |
void * volatile ptr; |
| 49 |
signed char * volatile ptrsc; |
| 50 |
signed short * volatile ptrss; |
| 51 |
signed int * volatile ptrsi; |
| 52 |
signed long long * volatile ptrsl; |
| 53 |
unsigned char * volatile ptruc; |
| 54 |
unsigned short * volatile ptrus; |
| 55 |
unsigned int * volatile ptrui; |
| 56 |
unsigned long long * volatile ptrul; |
| 57 |
float * volatile ptrf; |
| 58 |
double * volatile ptrd; |
| 59 |
|
| 60 |
volatile unsigned int len; |
| 61 |
volatile int idx; |
| 62 |
int cc; |
| 63 |
|
| 64 |
void test_core(void) { |
| 65 |
len = __lcbb(cptr, idx); // expected-error {{no matching function}} |
| 66 |
// [email protected]:* {{must be a constant power of 2 from 64 to 4096}} |
| 67 |
len = __lcbb(cptr, 200); // expected-error {{no matching function}} |
| 68 |
// [email protected]:* {{must be a constant power of 2 from 64 to 4096}} |
| 69 |
len = __lcbb(cptr, 32); // expected-error {{no matching function}} |
| 70 |
// [email protected]:* {{must be a constant power of 2 from 64 to 4096}} |
| 71 |
len = __lcbb(cptr, 8192); // expected-error {{no matching function}} |
| 72 |
// [email protected]:* {{must be a constant power of 2 from 64 to 4096}} |
| 73 |
|
| 74 |
vsl = vec_permi(vsl, vsl, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vpdi' must be a constant integer}} |
| 75 |
// [email protected]:* 3 {{candidate function not viable}} |
| 76 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 77 |
vsl = vec_permi(vsl, vsl, -1); // expected-error {{no matching function}} |
| 78 |
// [email protected]:* 3 {{candidate function not viable}} |
| 79 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 80 |
vsl = vec_permi(vsl, vsl, 4); // expected-error {{no matching function}} |
| 81 |
// [email protected]:* 3 {{candidate function not viable}} |
| 82 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 83 |
vul = vec_permi(vul, vul, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vpdi' must be a constant integer}} |
| 84 |
// [email protected]:* 2 {{candidate function not viable}} |
| 85 |
// [email protected]:* 2 {{must be a constant integer from 0 to 3}} |
| 86 |
vul = vec_permi(vul, vul, -1); // expected-error {{no matching function}} |
| 87 |
// [email protected]:* 2 {{candidate function not viable}} |
| 88 |
// [email protected]:* 2 {{must be a constant integer from 0 to 3}} |
| 89 |
vul = vec_permi(vul, vul, 4); // expected-error {{no matching function}} |
| 90 |
// [email protected]:* 2 {{candidate function not viable}} |
| 91 |
// [email protected]:* 2 {{must be a constant integer from 0 to 3}} |
| 92 |
vbl = vec_permi(vbl, vbl, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vpdi' must be a constant integer}} |
| 93 |
// [email protected]:* 2 {{candidate function not viable}} |
| 94 |
// [email protected]:* 2 {{must be a constant integer from 0 to 3}} |
| 95 |
vbl = vec_permi(vbl, vbl, -1); // expected-error {{no matching function}} |
| 96 |
// [email protected]:* 2 {{candidate function not viable}} |
| 97 |
// [email protected]:* 2 {{must be a constant integer from 0 to 3}} |
| 98 |
vbl = vec_permi(vbl, vbl, 4); // expected-error {{no matching function}} |
| 99 |
// [email protected]:* 2 {{candidate function not viable}} |
| 100 |
// [email protected]:* 2 {{must be a constant integer from 0 to 3}} |
| 101 |
vd = vec_permi(vd, vd, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vpdi' must be a constant integer}} |
| 102 |
// [email protected]:* 3 {{candidate function not viable}} |
| 103 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 104 |
vd = vec_permi(vd, vd, -1); // expected-error {{no matching function}} |
| 105 |
// [email protected]:* 3 {{candidate function not viable}} |
| 106 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 107 |
vd = vec_permi(vd, vd, 4); // expected-error {{no matching function}} |
| 108 |
// [email protected]:* 3 {{candidate function not viable}} |
| 109 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 110 |
|
| 111 |
vsi = vec_gather_element(vsi, vui, cptrsi, idx); // expected-error {{no matching function}} |
| 112 |
// [email protected]:* 6 {{candidate function not viable}} |
| 113 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 114 |
vsi = vec_gather_element(vsi, vui, cptrsi, -1); // expected-error {{no matching function}} |
| 115 |
// [email protected]:* 6 {{candidate function not viable}} |
| 116 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 117 |
vsi = vec_gather_element(vsi, vui, cptrsi, 4); // expected-error {{no matching function}} |
| 118 |
// [email protected]:* 6 {{candidate function not viable}} |
| 119 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 120 |
vui = vec_gather_element(vui, vui, cptrui, idx); // expected-error {{no matching function}} |
| 121 |
// [email protected]:* 5 {{candidate function not viable}} |
| 122 |
// [email protected]:* 2 {{must be a constant integer from 0 to 3}} |
| 123 |
vui = vec_gather_element(vui, vui, cptrui, -1); // expected-error {{no matching function}} |
| 124 |
// [email protected]:* 5 {{candidate function not viable}} |
| 125 |
// [email protected]:* 2 {{must be a constant integer from 0 to 3}} |
| 126 |
vui = vec_gather_element(vui, vui, cptrui, 4); // expected-error {{no matching function}} |
| 127 |
// [email protected]:* 5 {{candidate function not viable}} |
| 128 |
// [email protected]:* 2 {{must be a constant integer from 0 to 3}} |
| 129 |
vbi = vec_gather_element(vbi, vui, cptrui, idx); // expected-error {{no matching function}} |
| 130 |
// [email protected]:* 5 {{candidate function not viable}} |
| 131 |
// [email protected]:* 2 {{must be a constant integer from 0 to 3}} |
| 132 |
vbi = vec_gather_element(vbi, vui, cptrui, -1); // expected-error {{no matching function}} |
| 133 |
// [email protected]:* 5 {{candidate function not viable}} |
| 134 |
// [email protected]:* 2 {{must be a constant integer from 0 to 3}} |
| 135 |
vbi = vec_gather_element(vbi, vui, cptrui, 4); // expected-error {{no matching function}} |
| 136 |
// [email protected]:* 5 {{candidate function not viable}} |
| 137 |
// [email protected]:* 2 {{must be a constant integer from 0 to 3}} |
| 138 |
vsl = vec_gather_element(vsl, vul, cptrsl, idx); // expected-error {{no matching function}} |
| 139 |
// [email protected]:* 6 {{candidate function not viable}} |
| 140 |
// [email protected]:* 1 {{must be a constant integer from 0 to 1}} |
| 141 |
vsl = vec_gather_element(vsl, vul, cptrsl, -1); // expected-error {{no matching function}} |
| 142 |
// [email protected]:* 6 {{candidate function not viable}} |
| 143 |
// [email protected]:* 1 {{must be a constant integer from 0 to 1}} |
| 144 |
vsl = vec_gather_element(vsl, vul, cptrsl, 2); // expected-error {{no matching function}} |
| 145 |
// [email protected]:* 6 {{candidate function not viable}} |
| 146 |
// [email protected]:* 1 {{must be a constant integer from 0 to 1}} |
| 147 |
vul = vec_gather_element(vul, vul, cptrul, idx); // expected-error {{no matching function}} |
| 148 |
// [email protected]:* 5 {{candidate function not viable}} |
| 149 |
// [email protected]:* 2 {{must be a constant integer from 0 to 1}} |
| 150 |
vul = vec_gather_element(vul, vul, cptrul, -1); // expected-error {{no matching function}} |
| 151 |
// [email protected]:* 5 {{candidate function not viable}} |
| 152 |
// [email protected]:* 2 {{must be a constant integer from 0 to 1}} |
| 153 |
vul = vec_gather_element(vul, vul, cptrul, 2); // expected-error {{no matching function}} |
| 154 |
// [email protected]:* 5 {{candidate function not viable}} |
| 155 |
// [email protected]:* 2 {{must be a constant integer from 0 to 1}} |
| 156 |
vbl = vec_gather_element(vbl, vul, cptrul, idx); // expected-error {{no matching function}} |
| 157 |
// [email protected]:* 5 {{candidate function not viable}} |
| 158 |
// [email protected]:* 2 {{must be a constant integer from 0 to 1}} |
| 159 |
vbl = vec_gather_element(vbl, vul, cptrul, -1); // expected-error {{no matching function}} |
| 160 |
// [email protected]:* 5 {{candidate function not viable}} |
| 161 |
// [email protected]:* 2 {{must be a constant integer from 0 to 1}} |
| 162 |
vbl = vec_gather_element(vbl, vul, cptrul, 2); // expected-error {{no matching function}} |
| 163 |
// [email protected]:* 5 {{candidate function not viable}} |
| 164 |
// [email protected]:* 2 {{must be a constant integer from 0 to 1}} |
| 165 |
vd = vec_gather_element(vd, vul, cptrd, idx); // expected-error {{no matching function}} |
| 166 |
// [email protected]:* 6 {{candidate function not viable}} |
| 167 |
// [email protected]:* 1 {{must be a constant integer from 0 to 1}} |
| 168 |
vd = vec_gather_element(vd, vul, cptrd, -1); // expected-error {{no matching function}} |
| 169 |
// [email protected]:* 6 {{candidate function not viable}} |
| 170 |
// [email protected]:* 1 {{must be a constant integer from 0 to 1}} |
| 171 |
vd = vec_gather_element(vd, vul, cptrd, 2); // expected-error {{no matching function}} |
| 172 |
// [email protected]:* 6 {{candidate function not viable}} |
| 173 |
// [email protected]:* 1 {{must be a constant integer from 0 to 1}} |
| 174 |
|
| 175 |
vec_scatter_element(vsi, vui, ptrsi, idx); // expected-error {{no matching function}} |
| 176 |
// [email protected]:* 6 {{candidate function not viable}} |
| 177 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 178 |
vec_scatter_element(vsi, vui, ptrsi, -1); // expected-error {{no matching function}} |
| 179 |
// [email protected]:* 6 {{candidate function not viable}} |
| 180 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 181 |
vec_scatter_element(vsi, vui, ptrsi, 4); // expected-error {{no matching function}} |
| 182 |
// [email protected]:* 6 {{candidate function not viable}} |
| 183 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 184 |
vec_scatter_element(vui, vui, ptrui, idx); // expected-error {{no matching function}} |
| 185 |
// [email protected]:* 5 {{candidate function not viable}} |
| 186 |
// [email protected]:* 2 {{must be a constant integer from 0 to 3}} |
| 187 |
vec_scatter_element(vui, vui, ptrui, -1); // expected-error {{no matching function}} |
| 188 |
// [email protected]:* 5 {{candidate function not viable}} |
| 189 |
// [email protected]:* 2 {{must be a constant integer from 0 to 3}} |
| 190 |
vec_scatter_element(vui, vui, ptrui, 4); // expected-error {{no matching function}} |
| 191 |
// [email protected]:* 5 {{candidate function not viable}} |
| 192 |
// [email protected]:* 2 {{must be a constant integer from 0 to 3}} |
| 193 |
vec_scatter_element(vbi, vui, ptrui, idx); // expected-error {{no matching function}} |
| 194 |
// [email protected]:* 5 {{candidate function not viable}} |
| 195 |
// [email protected]:* 2 {{must be a constant integer from 0 to 3}} |
| 196 |
vec_scatter_element(vbi, vui, ptrui, -1); // expected-error {{no matching function}} |
| 197 |
// [email protected]:* 5 {{candidate function not viable}} |
| 198 |
// [email protected]:* 2 {{must be a constant integer from 0 to 3}} |
| 199 |
vec_scatter_element(vbi, vui, ptrui, 4); // expected-error {{no matching function}} |
| 200 |
// [email protected]:* 5 {{candidate function not viable}} |
| 201 |
// [email protected]:* 2 {{must be a constant integer from 0 to 3}} |
| 202 |
vec_scatter_element(vsl, vul, ptrsl, idx); // expected-error {{no matching function}} |
| 203 |
// [email protected]:* 6 {{candidate function not viable}} |
| 204 |
// [email protected]:* 1 {{must be a constant integer from 0 to 1}} |
| 205 |
vec_scatter_element(vsl, vul, ptrsl, -1); // expected-error {{no matching function}} |
| 206 |
// [email protected]:* 6 {{candidate function not viable}} |
| 207 |
// [email protected]:* 1 {{must be a constant integer from 0 to 1}} |
| 208 |
vec_scatter_element(vsl, vul, ptrsl, 2); // expected-error {{no matching function}} |
| 209 |
// [email protected]:* 6 {{candidate function not viable}} |
| 210 |
// [email protected]:* 1 {{must be a constant integer from 0 to 1}} |
| 211 |
vec_scatter_element(vul, vul, ptrul, idx); // expected-error {{no matching function}} |
| 212 |
// [email protected]:* 5 {{candidate function not viable}} |
| 213 |
// [email protected]:* 2 {{must be a constant integer from 0 to 1}} |
| 214 |
vec_scatter_element(vul, vul, ptrul, -1); // expected-error {{no matching function}} |
| 215 |
// [email protected]:* 5 {{candidate function not viable}} |
| 216 |
// [email protected]:* 2 {{must be a constant integer from 0 to 1}} |
| 217 |
vec_scatter_element(vul, vul, ptrul, 2); // expected-error {{no matching function}} |
| 218 |
// [email protected]:* 5 {{candidate function not viable}} |
| 219 |
// [email protected]:* 2 {{must be a constant integer from 0 to 1}} |
| 220 |
vec_scatter_element(vbl, vul, ptrul, idx); // expected-error {{no matching function}} |
| 221 |
// [email protected]:* 5 {{candidate function not viable}} |
| 222 |
// [email protected]:* 2 {{must be a constant integer from 0 to 1}} |
| 223 |
vec_scatter_element(vbl, vul, ptrul, -1); // expected-error {{no matching function}} |
| 224 |
// [email protected]:* 5 {{candidate function not viable}} |
| 225 |
// [email protected]:* 2 {{must be a constant integer from 0 to 1}} |
| 226 |
vec_scatter_element(vbl, vul, ptrul, 2); // expected-error {{no matching function}} |
| 227 |
// [email protected]:* 5 {{candidate function not viable}} |
| 228 |
// [email protected]:* 2 {{must be a constant integer from 0 to 1}} |
| 229 |
vec_scatter_element(vd, vul, ptrd, idx); // expected-error {{no matching function}} |
| 230 |
// [email protected]:* 6 {{candidate function not viable}} |
| 231 |
// [email protected]:* 1 {{must be a constant integer from 0 to 1}} |
| 232 |
vec_scatter_element(vd, vul, ptrd, -1); // expected-error {{no matching function}} |
| 233 |
// [email protected]:* 6 {{candidate function not viable}} |
| 234 |
// [email protected]:* 1 {{must be a constant integer from 0 to 1}} |
| 235 |
vec_scatter_element(vd, vul, ptrd, 2); // expected-error {{no matching function}} |
| 236 |
// [email protected]:* 6 {{candidate function not viable}} |
| 237 |
// [email protected]:* 1 {{must be a constant integer from 0 to 1}} |
| 238 |
|
| 239 |
vsc = vec_load_bndry(cptrsc, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vlbb' must be a constant integer}} |
| 240 |
// [email protected]:* 11 {{must be a constant power of 2 from 64 to 4096}} |
| 241 |
vsc = vec_load_bndry(cptrsc, 200); // expected-error {{no matching function}} expected-error {{argument value -1 is outside the valid range [0, 15]}} |
| 242 |
// [email protected]:* 11 {{must be a constant power of 2 from 64 to 4096}} |
| 243 |
vsc = vec_load_bndry(cptrsc, 32); // expected-error {{no matching function}} expected-error {{argument value -1 is outside the valid range [0, 15]}} |
| 244 |
// [email protected]:* 11 {{must be a constant power of 2 from 64 to 4096}} |
| 245 |
vsc = vec_load_bndry(cptrsc, 8192); // expected-error {{no matching function}} expected-error {{argument value -1 is outside the valid range [0, 15]}} |
| 246 |
// [email protected]:* 11 {{must be a constant power of 2 from 64 to 4096}} |
| 247 |
vuc = vec_load_bndry(cptruc, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vlbb' must be a constant integer}} |
| 248 |
// [email protected]:* 11 {{must be a constant power of 2 from 64 to 4096}} |
| 249 |
vss = vec_load_bndry(cptrss, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vlbb' must be a constant integer}} |
| 250 |
// [email protected]:* 11 {{must be a constant power of 2 from 64 to 4096}} |
| 251 |
vus = vec_load_bndry(cptrus, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vlbb' must be a constant integer}} |
| 252 |
// [email protected]:* 11 {{must be a constant power of 2 from 64 to 4096}} |
| 253 |
vsi = vec_load_bndry(cptrsi, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vlbb' must be a constant integer}} |
| 254 |
// [email protected]:* 11 {{must be a constant power of 2 from 64 to 4096}} |
| 255 |
vui = vec_load_bndry(cptrui, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vlbb' must be a constant integer}} |
| 256 |
// [email protected]:* 11 {{must be a constant power of 2 from 64 to 4096}} |
| 257 |
vsl = vec_load_bndry(cptrsl, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vlbb' must be a constant integer}} |
| 258 |
// [email protected]:* 11 {{must be a constant power of 2 from 64 to 4096}} |
| 259 |
vul = vec_load_bndry(cptrul, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vlbb' must be a constant integer}} |
| 260 |
// [email protected]:* 11 {{must be a constant power of 2 from 64 to 4096}} |
| 261 |
vslll = vec_load_bndry(cptrslll, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vlbb' must be a constant integer}} |
| 262 |
// [email protected]:* 11 {{must be a constant power of 2 from 64 to 4096}} |
| 263 |
vulll = vec_load_bndry(cptrulll, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vlbb' must be a constant integer}} |
| 264 |
// [email protected]:* 11 {{must be a constant power of 2 from 64 to 4096}} |
| 265 |
|
| 266 |
vuc = vec_genmask(idx); // expected-error {{no matching function}} |
| 267 |
// [email protected]:* {{must be a constant integer}} |
| 268 |
|
| 269 |
vuc = vec_genmasks_8(0, idx); // expected-error {{no matching function}} |
| 270 |
// [email protected]:* {{must be a constant integer}} |
| 271 |
vuc = vec_genmasks_8(idx, 0); // expected-error {{no matching function}} |
| 272 |
// [email protected]:* {{must be a constant integer}} |
| 273 |
vuc = vec_genmasks_8(idx, idx); // expected-error {{no matching function}} |
| 274 |
// [email protected]:* {{must be a constant integer}} |
| 275 |
vus = vec_genmasks_16(0, idx); // expected-error {{no matching function}} |
| 276 |
// [email protected]:* {{must be a constant integer}} |
| 277 |
vus = vec_genmasks_16(idx, 0); // expected-error {{no matching function}} |
| 278 |
// [email protected]:* {{must be a constant integer}} |
| 279 |
vus = vec_genmasks_16(idx, idx); // expected-error {{no matching function}} |
| 280 |
// [email protected]:* {{must be a constant integer}} |
| 281 |
vui = vec_genmasks_32(0, idx); // expected-error {{no matching function}} |
| 282 |
// [email protected]:* {{must be a constant integer}} |
| 283 |
vui = vec_genmasks_32(idx, 0); // expected-error {{no matching function}} |
| 284 |
// [email protected]:* {{must be a constant integer}} |
| 285 |
vui = vec_genmasks_32(idx, idx); // expected-error {{no matching function}} |
| 286 |
// [email protected]:* {{must be a constant integer}} |
| 287 |
vul = vec_genmasks_64(0, idx); // expected-error {{no matching function}} |
| 288 |
// [email protected]:* {{must be a constant integer}} |
| 289 |
vul = vec_genmasks_64(idx, 0); // expected-error {{no matching function}} |
| 290 |
// [email protected]:* {{must be a constant integer}} |
| 291 |
vul = vec_genmasks_64(idx, idx); // expected-error {{no matching function}} |
| 292 |
// [email protected]:* {{must be a constant integer}} |
| 293 |
|
| 294 |
vsc = vec_splat(vsc, idx); // expected-error {{no matching function}} |
| 295 |
// [email protected]:* 12 {{candidate function not viable}} |
| 296 |
// [email protected]:* 1 {{must be a constant integer from 0 to 15}} |
| 297 |
vsc = vec_splat(vsc, -1); // expected-error {{no matching function}} |
| 298 |
// [email protected]:* 12 {{candidate function not viable}} |
| 299 |
// [email protected]:* 1 {{must be a constant integer from 0 to 15}} |
| 300 |
vsc = vec_splat(vsc, 16); // expected-error {{no matching function}} |
| 301 |
// [email protected]:* 12 {{candidate function not viable}} |
| 302 |
// [email protected]:* 1 {{must be a constant integer from 0 to 15}} |
| 303 |
vuc = vec_splat(vuc, idx); // expected-error {{no matching function}} |
| 304 |
// [email protected]:* 11 {{candidate function not viable}} |
| 305 |
// [email protected]:* 2 {{must be a constant integer from 0 to 15}} |
| 306 |
vuc = vec_splat(vuc, -1); // expected-error {{no matching function}} |
| 307 |
// [email protected]:* 11 {{candidate function not viable}} |
| 308 |
// [email protected]:* 2 {{must be a constant integer from 0 to 15}} |
| 309 |
vuc = vec_splat(vuc, 16); // expected-error {{no matching function}} |
| 310 |
// [email protected]:* 11 {{candidate function not viable}} |
| 311 |
// [email protected]:* 2 {{must be a constant integer from 0 to 15}} |
| 312 |
vbc = vec_splat(vbc, idx); // expected-error {{no matching function}} |
| 313 |
// [email protected]:* 11 {{candidate function not viable}} |
| 314 |
// [email protected]:* 2 {{must be a constant integer from 0 to 15}} |
| 315 |
vbc = vec_splat(vbc, -1); // expected-error {{no matching function}} |
| 316 |
// [email protected]:* 11 {{candidate function not viable}} |
| 317 |
// [email protected]:* 2 {{must be a constant integer from 0 to 15}} |
| 318 |
vbc = vec_splat(vbc, 16); // expected-error {{no matching function}} |
| 319 |
// [email protected]:* 11 {{candidate function not viable}} |
| 320 |
// [email protected]:* 2 {{must be a constant integer from 0 to 15}} |
| 321 |
vss = vec_splat(vss, idx); // expected-error {{no matching function}} |
| 322 |
// [email protected]:* 12 {{candidate function not viable}} |
| 323 |
// [email protected]:* 1 {{must be a constant integer from 0 to 7}} |
| 324 |
vss = vec_splat(vss, -1); // expected-error {{no matching function}} |
| 325 |
// [email protected]:* 12 {{candidate function not viable}} |
| 326 |
// [email protected]:* 1 {{must be a constant integer from 0 to 7}} |
| 327 |
vss = vec_splat(vss, 8); // expected-error {{no matching function}} |
| 328 |
// [email protected]:* 12 {{candidate function not viable}} |
| 329 |
// [email protected]:* 1 {{must be a constant integer from 0 to 7}} |
| 330 |
vus = vec_splat(vus, idx); // expected-error {{no matching function}} |
| 331 |
// [email protected]:* 11 {{candidate function not viable}} |
| 332 |
// [email protected]:* 2 {{must be a constant integer from 0 to 7}} |
| 333 |
vus = vec_splat(vus, -1); // expected-error {{no matching function}} |
| 334 |
// [email protected]:* 11 {{candidate function not viable}} |
| 335 |
// [email protected]:* 2 {{must be a constant integer from 0 to 7}} |
| 336 |
vus = vec_splat(vus, 8); // expected-error {{no matching function}} |
| 337 |
// [email protected]:* 11 {{candidate function not viable}} |
| 338 |
// [email protected]:* 2 {{must be a constant integer from 0 to 7}} |
| 339 |
vbs = vec_splat(vbs, idx); // expected-error {{no matching function}} |
| 340 |
// [email protected]:* 11 {{candidate function not viable}} |
| 341 |
// [email protected]:* 2 {{must be a constant integer from 0 to 7}} |
| 342 |
vbs = vec_splat(vbs, -1); // expected-error {{no matching function}} |
| 343 |
// [email protected]:* 11 {{candidate function not viable}} |
| 344 |
// [email protected]:* 2 {{must be a constant integer from 0 to 7}} |
| 345 |
vbs = vec_splat(vbs, 8); // expected-error {{no matching function}} |
| 346 |
// [email protected]:* 11 {{candidate function not viable}} |
| 347 |
// [email protected]:* 2 {{must be a constant integer from 0 to 7}} |
| 348 |
vsi = vec_splat(vsi, idx); // expected-error {{no matching function}} |
| 349 |
// [email protected]:* 12 {{candidate function not viable}} |
| 350 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 351 |
vsi = vec_splat(vsi, -1); // expected-error {{no matching function}} |
| 352 |
// [email protected]:* 12 {{candidate function not viable}} |
| 353 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 354 |
vsi = vec_splat(vsi, 4); // expected-error {{no matching function}} |
| 355 |
// [email protected]:* 12 {{candidate function not viable}} |
| 356 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 357 |
vui = vec_splat(vui, idx); // expected-error {{no matching function}} |
| 358 |
// [email protected]:* 11 {{candidate function not viable}} |
| 359 |
// [email protected]:* 2 {{must be a constant integer from 0 to 3}} |
| 360 |
vui = vec_splat(vui, -1); // expected-error {{no matching function}} |
| 361 |
// [email protected]:* 11 {{candidate function not viable}} |
| 362 |
// [email protected]:* 2 {{must be a constant integer from 0 to 3}} |
| 363 |
vui = vec_splat(vui, 4); // expected-error {{no matching function}} |
| 364 |
// [email protected]:* 11 {{candidate function not viable}} |
| 365 |
// [email protected]:* 2 {{must be a constant integer from 0 to 3}} |
| 366 |
vbi = vec_splat(vbi, idx); // expected-error {{no matching function}} |
| 367 |
// [email protected]:* 11 {{candidate function not viable}} |
| 368 |
// [email protected]:* 2 {{must be a constant integer from 0 to 3}} |
| 369 |
vbi = vec_splat(vbi, -1); // expected-error {{no matching function}} |
| 370 |
// [email protected]:* 11 {{candidate function not viable}} |
| 371 |
// [email protected]:* 2 {{must be a constant integer from 0 to 3}} |
| 372 |
vbi = vec_splat(vbi, 4); // expected-error {{no matching function}} |
| 373 |
// [email protected]:* 11 {{candidate function not viable}} |
| 374 |
// [email protected]:* 2 {{must be a constant integer from 0 to 3}} |
| 375 |
vsl = vec_splat(vsl, idx); // expected-error {{no matching function}} |
| 376 |
// [email protected]:* 12 {{candidate function not viable}} |
| 377 |
// [email protected]:* 1 {{must be a constant integer from 0 to 1}} |
| 378 |
vsl = vec_splat(vsl, -1); // expected-error {{no matching function}} |
| 379 |
// [email protected]:* 12 {{candidate function not viable}} |
| 380 |
// [email protected]:* 1 {{must be a constant integer from 0 to 1}} |
| 381 |
vsl = vec_splat(vsl, 2); // expected-error {{no matching function}} |
| 382 |
// [email protected]:* 12 {{candidate function not viable}} |
| 383 |
// [email protected]:* 1 {{must be a constant integer from 0 to 1}} |
| 384 |
vul = vec_splat(vul, idx); // expected-error {{no matching function}} |
| 385 |
// [email protected]:* 11 {{candidate function not viable}} |
| 386 |
// [email protected]:* 2 {{must be a constant integer from 0 to 1}} |
| 387 |
vul = vec_splat(vul, -1); // expected-error {{no matching function}} |
| 388 |
// [email protected]:* 11 {{candidate function not viable}} |
| 389 |
// [email protected]:* 2 {{must be a constant integer from 0 to 1}} |
| 390 |
vul = vec_splat(vul, 2); // expected-error {{no matching function}} |
| 391 |
// [email protected]:* 11 {{candidate function not viable}} |
| 392 |
// [email protected]:* 2 {{must be a constant integer from 0 to 1}} |
| 393 |
vbl = vec_splat(vbl, idx); // expected-error {{no matching function}} |
| 394 |
// [email protected]:* 11 {{candidate function not viable}} |
| 395 |
// [email protected]:* 2 {{must be a constant integer from 0 to 1}} |
| 396 |
vbl = vec_splat(vbl, -1); // expected-error {{no matching function}} |
| 397 |
// [email protected]:* 11 {{candidate function not viable}} |
| 398 |
// [email protected]:* 2 {{must be a constant integer from 0 to 1}} |
| 399 |
vbl = vec_splat(vbl, 2); // expected-error {{no matching function}} |
| 400 |
// [email protected]:* 11 {{candidate function not viable}} |
| 401 |
// [email protected]:* 2 {{must be a constant integer from 0 to 1}} |
| 402 |
vd = vec_splat(vd, idx); // expected-error {{no matching function}} |
| 403 |
// [email protected]:* 12 {{candidate function not viable}} |
| 404 |
// [email protected]:* 1 {{must be a constant integer from 0 to 1}} |
| 405 |
vd = vec_splat(vd, -1); // expected-error {{no matching function}} |
| 406 |
// [email protected]:* 12 {{candidate function not viable}} |
| 407 |
// [email protected]:* 1 {{must be a constant integer from 0 to 1}} |
| 408 |
vd = vec_splat(vd, 2); // expected-error {{no matching function}} |
| 409 |
// [email protected]:* 12 {{candidate function not viable}} |
| 410 |
// [email protected]:* 1 {{must be a constant integer from 0 to 1}} |
| 411 |
|
| 412 |
vsc = vec_splat_s8(idx); // expected-error {{no matching function}} |
| 413 |
// [email protected]:* {{must be a constant integer}} |
| 414 |
vuc = vec_splat_u8(idx); // expected-error {{no matching function}} |
| 415 |
// [email protected]:* {{must be a constant integer}} |
| 416 |
vss = vec_splat_s16(idx); // expected-error {{no matching function}} |
| 417 |
// [email protected]:* {{must be a constant integer}} |
| 418 |
vus = vec_splat_u16(idx); // expected-error {{no matching function}} |
| 419 |
// [email protected]:* {{must be a constant integer}} |
| 420 |
vsi = vec_splat_s32(idx); // expected-error {{no matching function}} |
| 421 |
// [email protected]:* {{must be a constant integer}} |
| 422 |
vui = vec_splat_u32(idx); // expected-error {{no matching function}} |
| 423 |
// [email protected]:* {{must be a constant integer}} |
| 424 |
vsl = vec_splat_s64(idx); // expected-error {{no matching function}} |
| 425 |
// [email protected]:* {{must be a constant integer}} |
| 426 |
vul = vec_splat_u64(idx); // expected-error {{no matching function}} |
| 427 |
// [email protected]:* {{must be a constant integer}} |
| 428 |
} |
| 429 |
|
| 430 |
void test_integer(void) { |
| 431 |
vsc = vec_rl_mask(vsc, vuc, idx); // expected-error {{no matching function}} \ |
| 432 |
// expected-error {{argument to '__builtin_s390_verimb' must be a constant integer}} \ |
| 433 |
// expected-error {{argument to '__builtin_s390_verimh' must be a constant integer}} \ |
| 434 |
// expected-error {{argument to '__builtin_s390_verimf' must be a constant integer}} \ |
| 435 |
// expected-error {{argument to '__builtin_s390_verimg' must be a constant integer}} |
| 436 |
// [email protected]:* 7 {{candidate function not viable}} |
| 437 |
// [email protected]:* 1 {{must be a constant integer}} |
| 438 |
vuc = vec_rl_mask(vuc, vuc, idx); // expected-error {{no matching function}} \ |
| 439 |
// expected-error {{argument to '__builtin_s390_verimb' must be a constant integer}} \ |
| 440 |
// expected-error {{argument to '__builtin_s390_verimh' must be a constant integer}} \ |
| 441 |
// expected-error {{argument to '__builtin_s390_verimf' must be a constant integer}} \ |
| 442 |
// expected-error {{argument to '__builtin_s390_verimg' must be a constant integer}} |
| 443 |
// [email protected]:* 7 {{candidate function not viable}} |
| 444 |
// [email protected]:* 1 {{must be a constant integer}} |
| 445 |
vss = vec_rl_mask(vss, vus, idx); // expected-error {{no matching function}} \ |
| 446 |
// expected-error {{argument to '__builtin_s390_verimb' must be a constant integer}} \ |
| 447 |
// expected-error {{argument to '__builtin_s390_verimh' must be a constant integer}} \ |
| 448 |
// expected-error {{argument to '__builtin_s390_verimf' must be a constant integer}} \ |
| 449 |
// expected-error {{argument to '__builtin_s390_verimg' must be a constant integer}} |
| 450 |
// [email protected]:* 7 {{candidate function not viable}} |
| 451 |
// [email protected]:* 1 {{must be a constant integer}} |
| 452 |
vus = vec_rl_mask(vus, vus, idx); // expected-error {{no matching function}} \ |
| 453 |
// expected-error {{argument to '__builtin_s390_verimb' must be a constant integer}} \ |
| 454 |
// expected-error {{argument to '__builtin_s390_verimh' must be a constant integer}} \ |
| 455 |
// expected-error {{argument to '__builtin_s390_verimf' must be a constant integer}} \ |
| 456 |
// expected-error {{argument to '__builtin_s390_verimg' must be a constant integer}} |
| 457 |
// [email protected]:* 7 {{candidate function not viable}} |
| 458 |
// [email protected]:* 1 {{must be a constant integer}} |
| 459 |
vsi = vec_rl_mask(vsi, vui, idx); // expected-error {{no matching function}} \ |
| 460 |
// expected-error {{argument to '__builtin_s390_verimb' must be a constant integer}} \ |
| 461 |
// expected-error {{argument to '__builtin_s390_verimh' must be a constant integer}} \ |
| 462 |
// expected-error {{argument to '__builtin_s390_verimf' must be a constant integer}} \ |
| 463 |
// expected-error {{argument to '__builtin_s390_verimg' must be a constant integer}} |
| 464 |
// [email protected]:* 7 {{candidate function not viable}} |
| 465 |
// [email protected]:* 1 {{must be a constant integer}} |
| 466 |
vui = vec_rl_mask(vui, vui, idx); // expected-error {{no matching function}} \ |
| 467 |
// expected-error {{argument to '__builtin_s390_verimb' must be a constant integer}} \ |
| 468 |
// expected-error {{argument to '__builtin_s390_verimh' must be a constant integer}} \ |
| 469 |
// expected-error {{argument to '__builtin_s390_verimf' must be a constant integer}} \ |
| 470 |
// expected-error {{argument to '__builtin_s390_verimg' must be a constant integer}} |
| 471 |
// [email protected]:* 7 {{candidate function not viable}} |
| 472 |
// [email protected]:* 1 {{must be a constant integer}} |
| 473 |
vsl = vec_rl_mask(vsl, vul, idx); // expected-error {{no matching function}} \ |
| 474 |
// expected-error {{argument to '__builtin_s390_verimb' must be a constant integer}} \ |
| 475 |
// expected-error {{argument to '__builtin_s390_verimh' must be a constant integer}} \ |
| 476 |
// expected-error {{argument to '__builtin_s390_verimf' must be a constant integer}} \ |
| 477 |
// expected-error {{argument to '__builtin_s390_verimg' must be a constant integer}} |
| 478 |
// [email protected]:* 7 {{candidate function not viable}} |
| 479 |
// [email protected]:* 1 {{must be a constant integer}} |
| 480 |
vul = vec_rl_mask(vul, vul, idx); // expected-error {{no matching function}} \ |
| 481 |
// expected-error {{argument to '__builtin_s390_verimb' must be a constant integer}} \ |
| 482 |
// expected-error {{argument to '__builtin_s390_verimh' must be a constant integer}} \ |
| 483 |
// expected-error {{argument to '__builtin_s390_verimf' must be a constant integer}} \ |
| 484 |
// expected-error {{argument to '__builtin_s390_verimg' must be a constant integer}} |
| 485 |
// [email protected]:* 7 {{candidate function not viable}} |
| 486 |
// [email protected]:* 1 {{must be a constant integer}} |
| 487 |
|
| 488 |
vsc = vec_sld(vsc, vsc, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vsldb' must be a constant integer}} |
| 489 |
// [email protected]:* 14 {{candidate function not viable}} |
| 490 |
// [email protected]:* 1 {{must be a constant integer from 0 to 15}} |
| 491 |
vsc = vec_sld(vsc, vsc, -1); // expected-error {{no matching function}} expected-error {{argument value -1 is outside the valid range [0, 15]}} |
| 492 |
// [email protected]:* 14 {{candidate function not viable}} |
| 493 |
// [email protected]:* 1 {{must be a constant integer from 0 to 15}} |
| 494 |
vsc = vec_sld(vsc, vsc, 16); // expected-error {{no matching function}} expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 495 |
// [email protected]:* 14 {{candidate function not viable}} |
| 496 |
// [email protected]:* 1 {{must be a constant integer from 0 to 15}} |
| 497 |
vuc = vec_sld(vuc, vuc, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vsldb' must be a constant integer}} |
| 498 |
// [email protected]:* 13 {{candidate function not viable}} |
| 499 |
// [email protected]:* 2 {{must be a constant integer from 0 to 15}} |
| 500 |
vuc = vec_sld(vuc, vuc, -1); // expected-error {{no matching function}} expected-error {{argument value -1 is outside the valid range [0, 15]}} |
| 501 |
// [email protected]:* 13 {{candidate function not viable}} |
| 502 |
// [email protected]:* 2 {{must be a constant integer from 0 to 15}} |
| 503 |
vuc = vec_sld(vuc, vuc, 16); // expected-error {{no matching function}} expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 504 |
// [email protected]:* 13 {{candidate function not viable}} |
| 505 |
// [email protected]:* 2 {{must be a constant integer from 0 to 15}} |
| 506 |
vss = vec_sld(vss, vss, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vsldb' must be a constant integer}} |
| 507 |
// [email protected]:* 14 {{candidate function not viable}} |
| 508 |
// [email protected]:* 1 {{must be a constant integer from 0 to 15}} |
| 509 |
vus = vec_sld(vus, vus, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vsldb' must be a constant integer}} |
| 510 |
// [email protected]:* 13 {{candidate function not viable}} |
| 511 |
// [email protected]:* 2 {{must be a constant integer from 0 to 15}} |
| 512 |
vsi = vec_sld(vsi, vsi, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vsldb' must be a constant integer}} |
| 513 |
// [email protected]:* 14 {{candidate function not viable}} |
| 514 |
// [email protected]:* 1 {{must be a constant integer from 0 to 15}} |
| 515 |
vui = vec_sld(vui, vui, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vsldb' must be a constant integer}} |
| 516 |
// [email protected]:* 13 {{candidate function not viable}} |
| 517 |
// [email protected]:* 2 {{must be a constant integer from 0 to 15}} |
| 518 |
vsl = vec_sld(vsl, vsl, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vsldb' must be a constant integer}} |
| 519 |
// [email protected]:* 14 {{candidate function not viable}} |
| 520 |
// [email protected]:* 1 {{must be a constant integer from 0 to 15}} |
| 521 |
vul = vec_sld(vul, vul, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vsldb' must be a constant integer}} |
| 522 |
// [email protected]:* 13 {{candidate function not viable}} |
| 523 |
// [email protected]:* 2 {{must be a constant integer from 0 to 15}} |
| 524 |
vslll = vec_sld(vslll, vslll, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vsldb' must be a constant integer}} |
| 525 |
// [email protected]:* 14 {{candidate function not viable}} |
| 526 |
// [email protected]:* 1 {{must be a constant integer from 0 to 15}} |
| 527 |
vulll = vec_sld(vulll, vulll, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vsldb' must be a constant integer}} |
| 528 |
// [email protected]:* 14 {{candidate function not viable}} |
| 529 |
// [email protected]:* 1 {{must be a constant integer from 0 to 15}} |
| 530 |
vd = vec_sld(vd, vd, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vsldb' must be a constant integer}} |
| 531 |
// [email protected]:* 14 {{candidate function not viable}} |
| 532 |
// [email protected]:* 1 {{must be a constant integer from 0 to 15}} |
| 533 |
|
| 534 |
vsc = vec_sldw(vsc, vsc, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vsldb' must be a constant integer}} |
| 535 |
// [email protected]:* 10 {{candidate function not viable}} |
| 536 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 537 |
vsc = vec_sldw(vsc, vsc, -1); // expected-error {{no matching function}} expected-error {{argument value -4 is outside the valid range [0, 15]}} |
| 538 |
// [email protected]:* 10 {{candidate function not viable}} |
| 539 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 540 |
vsc = vec_sldw(vsc, vsc, 4); // expected-error {{no matching function}} expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 541 |
// [email protected]:* 10 {{candidate function not viable}} |
| 542 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 543 |
vuc = vec_sldw(vuc, vuc, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vsldb' must be a constant integer}} |
| 544 |
// [email protected]:* 10 {{candidate function not viable}} |
| 545 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 546 |
vuc = vec_sldw(vuc, vuc, -1); // expected-error {{no matching function}} expected-error {{argument value -4 is outside the valid range [0, 15]}} |
| 547 |
// [email protected]:* 10 {{candidate function not viable}} |
| 548 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 549 |
vuc = vec_sldw(vuc, vuc, 4); // expected-error {{no matching function}} expected-error {{argument value 16 is outside the valid range [0, 15]}} |
| 550 |
// [email protected]:* 10 {{candidate function not viable}} |
| 551 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 552 |
vss = vec_sldw(vss, vss, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vsldb' must be a constant integer}} |
| 553 |
// [email protected]:* 10 {{candidate function not viable}} |
| 554 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 555 |
vus = vec_sldw(vus, vus, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vsldb' must be a constant integer}} |
| 556 |
// [email protected]:* 10 {{candidate function not viable}} |
| 557 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 558 |
vsi = vec_sldw(vsi, vsi, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vsldb' must be a constant integer}} |
| 559 |
// [email protected]:* 10 {{candidate function not viable}} |
| 560 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 561 |
vui = vec_sldw(vui, vui, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vsldb' must be a constant integer}} |
| 562 |
// [email protected]:* 10 {{candidate function not viable}} |
| 563 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 564 |
vsl = vec_sldw(vsl, vsl, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vsldb' must be a constant integer}} |
| 565 |
// [email protected]:* 10 {{candidate function not viable}} |
| 566 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 567 |
vul = vec_sldw(vul, vul, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vsldb' must be a constant integer}} |
| 568 |
// [email protected]:* 10 {{candidate function not viable}} |
| 569 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 570 |
vslll = vec_sldw(vslll, vslll, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vsldb' must be a constant integer}} |
| 571 |
// [email protected]:* 10 {{candidate function not viable}} |
| 572 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 573 |
vulll = vec_sldw(vulll, vulll, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vsldb' must be a constant integer}} |
| 574 |
// [email protected]:* 10 {{candidate function not viable}} |
| 575 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 576 |
vd = vec_sldw(vd, vd, idx); // expected-error {{no matching function}} expected-error {{argument to '__builtin_s390_vsldb' must be a constant integer}} |
| 577 |
// [email protected]:* 10 {{candidate function not viable}} |
| 578 |
// [email protected]:* 1 {{must be a constant integer from 0 to 3}} |
| 579 |
} |
| 580 |
|
| 581 |
void test_float(void) { |
| 582 |
vd = vec_ctd(vsl, idx); // expected-error {{no matching function}} |
| 583 |
// [email protected]:* 1 {{candidate function not viable}} |
| 584 |
// [email protected]:* 1 {{must be a constant integer from 0 to 31}} |
| 585 |
vd = vec_ctd(vsl, -1); // expected-error {{no matching function}} |
| 586 |
// [email protected]:* 1 {{candidate function not viable}} |
| 587 |
// [email protected]:* 1 {{must be a constant integer from 0 to 31}} |
| 588 |
vd = vec_ctd(vsl, 32); // expected-error {{no matching function}} |
| 589 |
// [email protected]:* 1 {{candidate function not viable}} |
| 590 |
// [email protected]:* 1 {{must be a constant integer from 0 to 31}} |
| 591 |
vd = vec_ctd(vul, idx); // expected-error {{no matching function}} |
| 592 |
// [email protected]:* 1 {{candidate function not viable}} |
| 593 |
// [email protected]:* 1 {{must be a constant integer from 0 to 31}} |
| 594 |
vd = vec_ctd(vul, -1); // expected-error {{no matching function}} |
| 595 |
// [email protected]:* 1 {{candidate function not viable}} |
| 596 |
// [email protected]:* 1 {{must be a constant integer from 0 to 31}} |
| 597 |
vd = vec_ctd(vul, 32); // expected-error {{no matching function}} |
| 598 |
// [email protected]:* 1 {{candidate function not viable}} |
| 599 |
// [email protected]:* 1 {{must be a constant integer from 0 to 31}} |
| 600 |
|
| 601 |
vsl = vec_ctsl(vd, idx); // expected-error {{no matching function}} |
| 602 |
// [email protected]:* 1 {{must be a constant integer from 0 to 31}} |
| 603 |
vsl = vec_ctsl(vd, -1); // expected-error {{no matching function}} |
| 604 |
// [email protected]:* 1 {{must be a constant integer from 0 to 31}} |
| 605 |
vsl = vec_ctsl(vd, 32); // expected-error {{no matching function}} |
| 606 |
// [email protected]:* 1 {{must be a constant integer from 0 to 31}} |
| 607 |
vul = vec_ctul(vd, idx); // expected-error {{no matching function}} |
| 608 |
// [email protected]:* 1 {{must be a constant integer from 0 to 31}} |
| 609 |
vul = vec_ctul(vd, -1); // expected-error {{no matching function}} |
| 610 |
// [email protected]:* 1 {{must be a constant integer from 0 to 31}} |
| 611 |
vul = vec_ctul(vd, 32); // expected-error {{no matching function}} |
| 612 |
// [email protected]:* 1 {{must be a constant integer from 0 to 31}} |
| 613 |
|
| 614 |
vbl = vec_fp_test_data_class(vd, idx, &cc); // expected-error {{must be a constant integer}} |
| 615 |
vbl = vec_fp_test_data_class(vd, -1, &cc); // expected-error-re {{argument value {{.*}} is outside the valid range}} |
| 616 |
vbl = vec_fp_test_data_class(vd, 4096, &cc); // expected-error-re {{argument value {{.*}} is outside the valid range}} |
| 617 |
} |