| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-std=c99" } */ |
| 3 |
|
| 4 |
#include <arm_sve.h> |
| 5 |
|
| 6 |
#pragma GCC target "+sve2+sme2" |
| 7 |
|
| 8 |
struct s { signed char x; }; |
| 9 |
|
| 10 |
svuint8_t |
| 11 |
f1 (svbool_t pg, svcount_t pn, svboolx2_t pgx2, |
| 12 |
signed char *s8_ptr, void *void_ptr, struct s *s_ptr, |
| 13 |
float *f32_ptr, _Complex float *cf32_ptr, |
| 14 |
svint8_t s8, svint8x2_t s8x2, svint8x3_t s8x3, |
| 15 |
svfloat32x4_t f32x4, struct s s) __arm_streaming |
| 16 |
{ |
| 17 |
svst1 (pn, s8_ptr); /* { dg-error {too few arguments to function 'svst1'} } */ |
| 18 |
svst1 (pn, s8_ptr, s8x2, 0); /* { dg-error {too many arguments to function 'svst1'} } */ |
| 19 |
svst1 (0, s8_ptr, s8x2); /* { dg-error {passing 'int' to argument 1 of 'svst1', which expects an 'svbool_t' or 'svcount_t'} } */ |
| 20 |
svst1 (pn, void_ptr, 0x2); /* { dg-error {passing 'int' to argument 3 of 'svst1', which expects an SVE type rather than a scalar} } */ |
| 21 |
svst1 (pn, void_ptr, pgx2); /* { dg-error {'svst1' has no form that takes 'svboolx2_t' arguments} } */ |
| 22 |
svst1 (pn, 0, s8); /* { dg-error {operations on single vectors must be predicated by 'svbool_t' rather than 'svcount_t'} } */ |
| 23 |
svst1 (pn, 0, s8x2); |
| 24 |
svst1 (pg, 0, s8x2); /* { dg-error {operations on multiple vectors must be predicated by 'svcount_t' rather than 'svbool_t'} } */ |
| 25 |
svst1 (pn, 0, s8x3); /* { dg-error {'svst1' has no form that takes 'svint8x3_t' arguments} } */ |
| 26 |
svst1 (pn, (int32_t *) 0, s8x2); /* { dg-error "passing argument 2 of 'svst1_s8_x2' from incompatible pointer type" } */ |
| 27 |
svst1 (pn, void_ptr, s8x2); |
| 28 |
svst1 (pn, s_ptr, s8x2); /* { dg-error "passing argument 2 of 'svst1_s8_x2' from incompatible pointer type" } */ |
| 29 |
svst1 (pn, f32_ptr, s8x2); /* { dg-error "passing argument 2 of 'svst1_s8_x2' from incompatible pointer type" } */ |
| 30 |
svst1 (pn, f32_ptr, f32x4); |
| 31 |
svst1 (pn, cf32_ptr, f32x4); /* { dg-error "passing argument 2 of 'svst1_f32_x4' from incompatible pointer type" } */ |
| 32 |
svst1 (pn, s, s8x2); /* { dg-error {passing 'struct s' to argument 2 of 'svst1', which expects a scalar pointer} } */ |
| 33 |
} |