| 1 |
/* { dg-do compile } */ |
| 2 |
|
| 3 |
#include <arm_sve.h> |
| 4 |
|
| 5 |
void |
| 6 |
f1 (svint32_t s32) |
| 7 |
{ |
| 8 |
svpmov (s32); /* { dg-error {ACLE function 'svpmov_s32' requires ISA extension 'sve2p1'} } */ |
| 9 |
} |
| 10 |
|
| 11 |
#pragma GCC target "+sve2p1" |
| 12 |
|
| 13 |
void |
| 14 |
f2 (svbool_t pg, svint8_t s8, svint32_t s32, svuint32_t u32, svfloat32_t f32, |
| 15 |
svuint32x2_t u32x2) |
| 16 |
{ |
| 17 |
svpmov (); /* { dg-error {too few arguments to function 'svpmov'} } */ |
| 18 |
svpmov (s8, s8); /* { dg-error {too many arguments to function 'svpmov'} } */ |
| 19 |
|
| 20 |
svpmov (0); /* { dg-error {passing 'int' to argument 1 of 'svpmov', which expects an SVE type rather than a scalar type} } */ |
| 21 |
svpmov (pg); /* { dg-error {'svpmov' has no form that takes 'svbool_t' arguments} } */ |
| 22 |
svpmov (s32); |
| 23 |
svpmov (u32); |
| 24 |
svpmov (f32); /* { dg-error {'svpmov' has no form that takes 'svfloat32_t' arguments} } */ |
| 25 |
svpmov (u32x2); /* { dg-error {passing 'svuint32x2_t' to argument 1 of 'svpmov', which expects a single SVE vector rather than a tuple} } */ |
| 26 |
} |