1  /* Check for error messages supposed to be issued during overloading.  */
       2  
       3  /* { dg-do compile { target { s390*-*-* } } } */
       4  /* { dg-options "-march=z13 -mzarch -mzvector" } */
       5  
       6  __vector int v4si;
       7  __vector unsigned uv4si;
       8  
       9  int *intptr;
      10  unsigned long long ull;
      11  const unsigned int *ucintptr;
      12  
      13  void
      14  foo ()
      15  {
      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" } */
      19  }