| 1 |
/* { dg-do compile } */ |
| 2 |
|
| 3 |
#include <arm_sve.h> |
| 4 |
|
| 5 |
svuint8_t |
| 6 |
f1 (svbool_t pg, svuint8_t u8, svint16_t s16) |
| 7 |
{ |
| 8 |
svzip1 (pg); /* { dg-error {too few arguments to function 'svzip1'} } */ |
| 9 |
svzip1 (pg, u8, u8); /* { dg-error {too many arguments to function 'svzip1'} } */ |
| 10 |
svzip1 (pg, u8); /* { dg-error {passing 'svuint8_t' to argument 2 of 'svzip1', but argument 1 had type 'svbool_t'} } */ |
| 11 |
svzip1 (u8, pg); /* { dg-error {passing 'svbool_t' to argument 2 of 'svzip1', but argument 1 had type 'svuint8_t'} } */ |
| 12 |
svzip1 (u8, s16); /* { dg-error {passing 'svint16_t' to argument 2 of 'svzip1', but argument 1 had type 'svuint8_t'} } */ |
| 13 |
svzip1 (u8, 0); /* { dg-error {passing 'int' to argument 2 of 'svzip1', which expects an SVE type rather than a scalar} } */ |
| 14 |
} |