| 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, int i) |
| 7 |
{ |
| 8 |
svqincp (s32); /* { dg-error {too few arguments to function 'svqincp'} } */ |
| 9 |
svqincp (s32, pg, pg); /* { dg-error {too many arguments to function 'svqincp'} } */ |
| 10 |
svqincp (i, pg); /* { dg-error {passing 'int' to argument 1 of 'svqincp', which expects an SVE type rather than a scalar} } */ |
| 11 |
svqincp (pg, pg); /* { dg-error {'svqincp' has no form that takes 'svbool_t' arguments} } */ |
| 12 |
svqincp (s8, pg); /* { dg-error {'svqincp' has no form that takes 'svint8_t' arguments} } */ |
| 13 |
svqincp (u8, pg); /* { dg-error {'svqincp' has no form that takes 'svuint8_t' arguments} } */ |
| 14 |
svqincp (s16, pg); |
| 15 |
svqincp (u16, pg); |
| 16 |
svqincp (s32, pg); |
| 17 |
svqincp (u32, pg); |
| 18 |
svqincp (s64, pg); |
| 19 |
svqincp (u64, pg); |
| 20 |
svqincp (u64, 0); /* { dg-error {passing 'int' to argument 2 of 'svqincp', which expects 'svbool_t'} } */ |
| 21 |
svqincp (u64, u64); /* { dg-error {passing 'svuint64_t' to argument 2 of 'svqincp', which expects 'svbool_t'} } */ |
| 22 |
} |