| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-std=c99" } */ |
| 3 |
|
| 4 |
#include <arm_sve.h> |
| 5 |
|
| 6 |
#pragma GCC target ("+sve2p1") |
| 7 |
|
| 8 |
struct s { signed char x; }; |
| 9 |
|
| 10 |
svuint32_t |
| 11 |
f1 (svbool_t pg, signed char *s8_ptr, short *s16_ptr, |
| 12 |
int32_t *s32_ptr, float *f32_ptr, void *void_ptr, struct s *s_ptr, |
| 13 |
_Complex float *cf32_ptr, |
| 14 |
svint8_t s8, svint16_t s16, svuint16_t u16, |
| 15 |
svint32_t s32, svuint32_t u32, svfloat32_t f32, |
| 16 |
svint64_t s64, svuint64_t u64, svfloat64_t f64, struct s s) |
| 17 |
{ |
| 18 |
svst1q_scatter (pg, u64); /* { dg-error {too few arguments to function 'svst1q_scatter'} } */ |
| 19 |
svst1q_scatter (pg, u64, s8, 0); /* { dg-error {too many arguments to function 'svst1q_scatter'} } */ |
| 20 |
svst1q_scatter (0, u64, s8); /* { dg-error {passing 'int' to argument 1 of 'svst1q_scatter', which expects 'svbool_t'} } */ |
| 21 |
svst1q_scatter (pg, 0, s32); /* { dg-error {passing 'int' to argument 2 of 'svst1q_scatter', which expects an SVE type rather than a scalar type} } */ |
| 22 |
svst1q_scatter (pg, void_ptr, s32); /* { dg-error {passing 'void \*' to argument 2 of 'svst1q_scatter', which expects an SVE type rather than a scalar type} } */ |
| 23 |
svst1q_scatter (pg, u32, s8); /* { dg-error {passing 'svuint32_t' to argument 2 of 'svst1q_scatter', which expects 'svuint64_t'} } */ |
| 24 |
svst1q_scatter (pg, s32, s16); /* { dg-error {passing 'svint32_t' to argument 2 of 'svst1q_scatter', which expects 'svuint64_t'} } */ |
| 25 |
svst1q_scatter (pg, u64, s32); |
| 26 |
svst1q_scatter (pg, s64, s64); /* { dg-error {passing 'svint64_t' to argument 2 of 'svst1q_scatter', which expects 'svuint64_t'} } */ |
| 27 |
svst1q_scatter (pg, f64, u64); /* { dg-error {passing 'svfloat64_t' to argument 2 of 'svst1q_scatter', which expects 'svuint64_t'} } */ |
| 28 |
|
| 29 |
svst1q_scatter (pg, u64, 0); /* { dg-error {passing 'int' to argument 3 of 'svst1q_scatter', which expects an SVE type rather than a scalar type} } */ |
| 30 |
svst1q_scatter (pg, u64, pg); /* { dg-error {'svst1q_scatter' has no form that takes 'svbool_t' arguments} } */ |
| 31 |
svst1q_scatter (pg, u64, s); /* { dg-error {passing 'struct s' to argument 3 of 'svst1q_scatter', which expects an SVE type} } */ |
| 32 |
} |