1  #include <arm_sve.h>
       2  
       3  void
       4  test (svbool_t pg, svint8_t s8, svuint8_t u8,
       5        svint16_t s16, svuint16_t u16, svint32_t s32, svuint32_t u32,
       6        svint64_t s64, svuint64_t u64, int16_t sh, uint16_t uh,
       7        int32_t sw, uint32_t uw, int64_t sd, uint64_t ud,
       8        float f, int i)
       9  {
      10    svqincb (sw); /* { dg-error {too few arguments to function 'svqincb'} } */
      11    svqincb (sw, 1, 1); /* { dg-error {too many arguments to function 'svqincb'} } */
      12  
      13    svqincb (pg, 1); /* { dg-error {'svqincb' has no form that takes 'svbool_t' arguments} } */
      14    svqincb (s8, 1); /* { dg-error {'svqincb' has no form that takes 'svint8_t' arguments} } */
      15    svqincb (u8, 1); /* { dg-error {'svqincb' has no form that takes 'svuint8_t' arguments} } */
      16    svqincb (s16, 1); /* { dg-error {'svqincb' has no form that takes 'svint16_t' arguments} } */
      17    svqincb (u16, 1); /* { dg-error {'svqincb' has no form that takes 'svuint16_t' arguments} } */
      18    svqincb (s32, 1); /* { dg-error {'svqincb' has no form that takes 'svint32_t' arguments} } */
      19    svqincb (u32, 1); /* { dg-error {'svqincb' has no form that takes 'svuint32_t' arguments} } */
      20    svqincb (s64, 1); /* { dg-error {'svqincb' has no form that takes 'svint64_t' arguments} } */
      21    svqincb (u64, 1); /* { dg-error {'svqincb' has no form that takes 'svuint64_t' arguments} } */
      22    svqincb (sh, 1);
      23    svqincb (sw, 1);
      24    svqincb (sd, 1);
      25    svqincb (uh, 1);
      26    svqincb (uw, 1);
      27    svqincb (ud, 1);
      28    svqincb (f, 1); /* { dg-error {passing 'float' to argument 1 of 'svqincb', which expects a 32-bit or 64-bit integer type} } */
      29    svqincb (ud, i); /* { dg-error {argument 2 of 'svqincb' must be an integer constant expression} } */
      30  
      31    svqincb (sw, -1); /* { dg-error {passing -1 to argument 2 of 'svqincb', which expects a value in the range \[1, 16\]} } */
      32    svqincb (sw, 0); /* { dg-error {passing 0 to argument 2 of 'svqincb', which expects a value in the range \[1, 16\]} } */
      33    svqincb (sw, 1);
      34    svqincb (sw, 2);
      35    svqincb (sw, 16);
      36    svqincb (sw, 17); /* { dg-error {passing 17 to argument 2 of 'svqincb', which expects a value in the range \[1, 16\]} } */
      37  }