| 1 |
/* { dg-do compile } */ |
| 2 |
|
| 3 |
#include <arm_sve.h> |
| 4 |
|
| 5 |
void |
| 6 |
f1 (svbool_t pg, svint32_t s32, svuint32_t u32, svfloat32_t f32, |
| 7 |
svuint32x2_t u32x2) |
| 8 |
{ |
| 9 |
svaddv (pg); /* { dg-error {too few arguments to function 'svaddv'} } */ |
| 10 |
svaddv (pg, u32, u32); /* { dg-error {too many arguments to function 'svaddv'} } */ |
| 11 |
svaddv (0, u32); /* { dg-error {passing 'int' to argument 1 of 'svaddv', which expects 'svbool_t'} } */ |
| 12 |
svaddv (u32, u32); /* { dg-error {passing 'svuint32_t' to argument 1 of 'svaddv', which expects 'svbool_t'} } */ |
| 13 |
svaddv (pg, 0); /* { dg-error {passing 'int' to argument 2 of 'svaddv', which expects an SVE type rather than a scalar} } */ |
| 14 |
svaddv (pg, pg); /* { dg-error {'svaddv' has no form that takes 'svbool_t' arguments} } */ |
| 15 |
svaddv (pg, s32); |
| 16 |
svaddv (pg, u32); |
| 17 |
svaddv (pg, f32); |
| 18 |
svaddv (pg, u32x2); /* { dg-error {passing 'svuint32x2_t' to argument 2 of 'svaddv', which expects a single SVE vector rather than a tuple} } */ |
| 19 |
} |