| 1 |
/* { dg-do compile } */ |
| 2 |
|
| 3 |
#include <arm_sve.h> |
| 4 |
|
| 5 |
#pragma GCC target ("arch=armv8.2-a+sve2") |
| 6 |
|
| 7 |
void |
| 8 |
f1 (svbool_t pg, svint8_t s8, svuint8_t u8, |
| 9 |
svint16_t s16, svuint16_t u16, |
| 10 |
svint32_t s32, svuint32_t u32, |
| 11 |
svint64_t s64, svuint64_t u64, |
| 12 |
svfloat16_t f16, svfloat32_t f32) |
| 13 |
{ |
| 14 |
svaddwb (u16); /* { dg-error {too few arguments to function 'svaddwb'} } */ |
| 15 |
svaddwb (u16, u8, u8); /* { dg-error {too many arguments to function 'svaddwb'} } */ |
| 16 |
svaddwb (pg, pg); /* { dg-error {'svaddwb' has no form that takes 'svbool_t' arguments} } */ |
| 17 |
svaddwb (u8, u8); /* { dg-error {'svaddwb' has no form that takes 'svuint8_t' arguments} } */ |
| 18 |
svaddwb (s8, s8); /* { dg-error {'svaddwb' has no form that takes 'svint8_t' arguments} } */ |
| 19 |
svaddwb (u16, u16); /* { dg-error {passing 'svuint16_t' instead of the expected 'svuint8_t' to argument 2 of 'svaddwb', after passing 'svuint16_t' to argument 1} } */ |
| 20 |
svaddwb (u16, s16); /* { dg-error {passing 'svint16_t' instead of the expected 'svuint8_t' to argument 2 of 'svaddwb', after passing 'svuint16_t' to argument 1} } */ |
| 21 |
svaddwb (u16, u8); |
| 22 |
svaddwb (u16, s8); /* { dg-error {arguments 1 and 2 of 'svaddwb' must have the same signedness, but the values passed here have type 'svuint16_t' and 'svint8_t' respectively} } */ |
| 23 |
svaddwb (u16, pg); /* { dg-error {passing 'svbool_t' instead of the expected 'svuint8_t' to argument 2 of 'svaddwb', after passing 'svuint16_t' to argument 1} } */ |
| 24 |
svaddwb (s16, u16); /* { dg-error {passing 'svuint16_t' instead of the expected 'svint8_t' to argument 2 of 'svaddwb', after passing 'svint16_t' to argument 1} } */ |
| 25 |
svaddwb (s16, s16); /* { dg-error {passing 'svint16_t' instead of the expected 'svint8_t' to argument 2 of 'svaddwb', after passing 'svint16_t' to argument 1} } */ |
| 26 |
svaddwb (s16, u8); /* { dg-error {arguments 1 and 2 of 'svaddwb' must have the same signedness, but the values passed here have type 'svint16_t' and 'svuint8_t' respectively} } */ |
| 27 |
svaddwb (s16, s8); |
| 28 |
svaddwb (f32, f16); /* { dg-error {'svaddwb' has no form that takes 'svfloat32_t' arguments} } */ |
| 29 |
svaddwb (f16, f32); /* { dg-error {'svaddwb' has no form that takes 'svfloat16_t' arguments} } */ |
| 30 |
svaddwb (0, u32); /* { dg-error {passing 'int' to argument 1 of 'svaddwb', which expects an SVE type rather than a scalar} } */ |
| 31 |
svaddwb (0, u64); /* { dg-error {passing 'int' to argument 1 of 'svaddwb', which expects an SVE type rather than a scalar} } */ |
| 32 |
svaddwb (u8, 0); /* { dg-error {'svaddwb' has no form that takes 'svuint8_t' arguments} } */ |
| 33 |
svaddwb (u16, 0); |
| 34 |
svaddwb (u32, 0); |
| 35 |
svaddwb (u64, 0); |
| 36 |
svaddwb (pg, 0); /* { dg-error {'svaddwb' has no form that takes 'svbool_t' arguments} } */ |
| 37 |
svaddwb (f32, 0); /* { dg-error {'svaddwb' has no form that takes 'svfloat32_t' arguments} } */ |
| 38 |
} |