| 1 |
/* { dg-do compile } */ |
| 2 |
|
| 3 |
#pragma GCC target "+sve2+sme2" |
| 4 |
|
| 5 |
#include <arm_sve.h> |
| 6 |
|
| 7 |
void |
| 8 |
f1 (svbool_t pg, svfloat16x2_t f16x2, svint16x2_t s16x2, svuint16x2_t u16x2, |
| 9 |
svfloat32x2_t f32x2, svint32x2_t s32x2, svuint32x2_t u32x2, |
| 10 |
svint32x3_t s32x3, svint32x4_t s32x4, |
| 11 |
svint16_t s16, svuint16_t u16, svfloat16_t f16, svint32_t s32, |
| 12 |
svuint32_t u32, svfloat32_t f32) |
| 13 |
__arm_streaming |
| 14 |
{ |
| 15 |
svadd (s16x2); /* { dg-error {too few arguments to function 'svadd'} } */ |
| 16 |
svadd (s16x2, s16x2, s16x2); /* { dg-error {too many arguments to function 'svadd'} } */ |
| 17 |
svadd (pg, s16x2); /* { dg-error {passing 'svint16x2_t' to argument 2 of 'svadd', which expects a single SVE vector rather than a tuple} } */ |
| 18 |
svadd (1, s16x2); /* { dg-error {passing 'int' to argument 1 of 'svadd', which expects an SVE type rather than a scalar} } */ |
| 19 |
svadd (s16, s16); /* { dg-error {'svadd' has no form that takes 'svint16_t' arguments} } */ |
| 20 |
svadd (s16x2, s16x2); /* { dg-error {passing 'svint16x2_t' to argument 2 of 'svadd', which expects a single SVE vector rather than a tuple} } */ |
| 21 |
svadd (s16x2, u16x2); /* { dg-error {passing 'svuint16x2_t' to argument 2 of 'svadd', which expects a single SVE vector rather than a tuple} } */ |
| 22 |
svadd (s16x2, s16); |
| 23 |
svadd (s16x2, u16); /* { dg-error {passing 'svuint16_t' to argument 2 of 'svadd', but argument 1 was a tuple of 'svint16_t'} } */ |
| 24 |
svadd (s16x2, f16); /* { dg-error {passing 'svfloat16_t' to argument 2 of 'svadd', but argument 1 was a tuple of 'svint16_t'} } */ |
| 25 |
svadd (s32x2, s16); /* { dg-error {passing 'svint16_t' to argument 2 of 'svadd', but argument 1 was a tuple of 'svint32_t'} } */ |
| 26 |
svadd (s32x2, u16); /* { dg-error {passing 'svuint16_t' to argument 2 of 'svadd', but argument 1 was a tuple of 'svint32_t'} } */ |
| 27 |
svadd (s32x2, s32); |
| 28 |
svadd (s32x3, s32); /* { dg-error {'svadd' has no form that takes 'svint32x3_t' arguments} } */ |
| 29 |
svadd (s32x4, s32x2); /* { dg-error {passing 'svint32x2_t' to argument 2 of 'svadd', which expects a single SVE vector rather than a tuple} } */ |
| 30 |
svadd (f32x2, f32); /* { dg-error {'svadd' has no form that takes 'svfloat32x2_t' arguments} } */ |
| 31 |
|
| 32 |
svadd (s16x2, pg); /* { dg-error {passing 'svbool_t' to argument 2 of 'svadd', but argument 1 was a tuple of 'svint16_t'} } */ |
| 33 |
svadd (s16x2, 0); /* { dg-error {passing 'int' to argument 2 of 'svadd', which expects an SVE type rather than a scalar type} } */ |
| 34 |
} |