| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-additional-options "-march=armv8.6-a+sve+i8mm" } */ |
| 3 |
|
| 4 |
#include <arm_sve.h> |
| 5 |
|
| 6 |
svuint32_t |
| 7 |
f1 (svint32_t s32, svuint8_t u8, svint8_t s8, svuint32_t u32) |
| 8 |
{ |
| 9 |
svusmmla_s32 (s32); /* { dg-error {too few arguments to function 'svusmmla_s32'} } */ |
| 10 |
svusmmla_s32 (s32, u8, s8, u32); /* { dg-error {too many arguments to function 'svusmmla_s32'} } */ |
| 11 |
svusmmla_s32 (s32, u32, s8); /* { dg-error {incompatible type for argument 2 of 'svusmmla_s32'} } */ |
| 12 |
svusmmla_s32 (s32, s8, s8); /* { dg-error {incompatible type for argument 2 of 'svusmmla_s32'} } */ |
| 13 |
svusmmla_s32 (s32, u8, u8); /* { dg-error {incompatible type for argument 3 of 'svusmmla_s32'} } */ |
| 14 |
svusmmla_s32 (s32, u8, s32); /* { dg-error {incompatible type for argument 3 of 'svusmmla_s32'} } */ |
| 15 |
svusmmla_s32 (s32, u8, 0); /* { dg-error {incompatible type for argument 3 of 'svusmmla_s32'} } */ |
| 16 |
svusmmla_s32 (s32, u8, s8); |
| 17 |
return svusmmla_s32 (s32, u8, s8); /* { dg-error {incompatible types when returning type 'svint32_t' but 'svuint32_t' was expected} } */ |
| 18 |
} |
| 19 |
|
| 20 |
void |
| 21 |
f2 (svbool_t pg, svint8_t s8, svuint8_t u8, svuint32_t u32, |
| 22 |
svint32_t s32, svfloat32_t f32) |
| 23 |
{ |
| 24 |
svusmmla (s32, u8); /* { dg-error {too few arguments to function 'svusmmla'} } */ |
| 25 |
svusmmla (s32, u8, s8, u8); /* { dg-error {too many arguments to function 'svusmmla'} } */ |
| 26 |
svusmmla (0, u8, s8); /* { dg-error {passing 'int' to argument 1 of 'svusmmla', which expects an SVE type rather than a scalar} } */ |
| 27 |
svusmmla (pg, u8, s8); /* { dg-error {'svusmmla' has no form that takes 'svbool_t' arguments} } */ |
| 28 |
svusmmla (u8, u8, s8); /* { dg-error {'svusmmla' has no form that takes 'svuint8_t' arguments} } */ |
| 29 |
svusmmla (f32, u8, s8); /* { dg-error {'svusmmla' has no form that takes 'svfloat32_t' arguments} } */ |
| 30 |
svusmmla (s32, u8, s8); |
| 31 |
svusmmla (s32, 0, s8); /* { dg-error {passing 'int' to argument 2 of 'svusmmla', which expects an SVE type rather than a scalar} } */ |
| 32 |
svusmmla (s32, u8, u8); /* { dg-error {passing 'svuint8_t' to argument 3 of 'svusmmla', which expects a vector of signed integers} } */ |
| 33 |
svusmmla (s32, s8, s8); /* { dg-error {passing 'svint8_t' to argument 2 of 'svusmmla', which expects a vector of unsigned integers} } */ |
| 34 |
svusmmla (s32, u8, 0); /* { dg-error {passing 'int' to argument 3 of 'svusmmla', which expects an SVE type rather than a scalar} } */ |
| 35 |
svusmmla (s32, u8, s8); |
| 36 |
svusmmla (s32, u32, u32); /* { dg-error {passing 'svuint32_t' instead of the expected 'svuint8_t' to argument 2 of 'svusmmla', after passing 'svint32_t' to argument 1} } */ |
| 37 |
} |