S/390 Add zvector testcases.
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / zvector / vec-overloading-3.c
blob761e5b6d36733cb9fe5d80ca7f4144e1045759d8
1 /* Check for error messages supposed to be issued during overloading. */
3 /* { dg-do compile { target { s390*-*-* } } } */
4 /* { dg-options "-march=z13 -mzarch -mzvector" } */
6 __vector int v4si;
7 __vector unsigned uv4si;
9 int *intptr;
10 unsigned long long ull;
11 const unsigned int *ucintptr;
13 void
14 foo ()
16 /* A backend check makes sure the forth operand is a literal. */
17 __builtin_s390_vec_gather_element (uv4si, uv4si, ucintptr, 256); /* { dg-error "constant argument 4 for builtin.*is out of range for target type" } */
18 __builtin_s390_vec_gather_element (uv4si, uv4si, ucintptr, 5); /* { dg-error "constant argument 4 for builtin.*is out of range" } */