| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-flax-vector-conversions" } */ |
| 3 |
|
| 4 |
#include <arm_sve.h> |
| 5 |
|
| 6 |
void |
| 7 |
f1 (svbool_t pg, svint32_t s32, svuint32_t u32, svfloat32_t f32, |
| 8 |
svint64_t s64, svuint64_t u64) |
| 9 |
{ |
| 10 |
svclz_m (u32, pg); /* { dg-error {too few arguments to function 'svclz_m'} } */ |
| 11 |
svclz_m (u32, pg, s32, s32); /* { dg-error {too many arguments to function 'svclz_m'} } */ |
| 12 |
svclz_m (0, pg, f32); /* { dg-error {passing 'int' to argument 1 of 'svclz_m', which expects an SVE type rather than a scalar} } */ |
| 13 |
svclz_m (u32, u32, f32); /* { dg-error {passing 'svuint32_t' to argument 2 of 'svclz_m', which expects 'svbool_t'} } */ |
| 14 |
svclz_m (u32, 0, f32); /* { dg-error {passing 'int' to argument 2 of 'svclz_m', which expects 'svbool_t'} } */ |
| 15 |
svclz_m (u32, pg, s32); |
| 16 |
svclz_m (u32, pg, u32); |
| 17 |
svclz_m (u32, pg, f32); /* { dg-error {'svclz_m' has no form that takes 'svfloat32_t' arguments} } */ |
| 18 |
svclz_m (u32, pg, pg); /* { dg-error {'svclz_m' has no form that takes 'svbool_t' arguments} } */ |
| 19 |
|
| 20 |
svclz_m (pg, pg, s32); /* { dg-error {passing 'svbool_t' to argument 1 of 'svclz_m', which expects a vector of unsigned integers} } */ |
| 21 |
svclz_m (s32, pg, s32); /* { dg-error {passing 'svint32_t' to argument 1 of 'svclz_m', which expects a vector of unsigned integers} } */ |
| 22 |
svclz_m (f32, pg, s32); /* { dg-error {passing 'svfloat32_t' to argument 1 of 'svclz_m', which expects a vector of unsigned integers} } */ |
| 23 |
svclz_m (s64, pg, s32); /* { dg-error {passing 'svint64_t' to argument 1 of 'svclz_m', which expects a vector of unsigned integers} } */ |
| 24 |
svclz_m (u64, pg, s32); /* { dg-error {arguments 1 and 3 of 'svclz_m' must have the same element size, but the values passed here have type 'svuint64_t' and 'svint32_t' respectively} } */ |
| 25 |
} |