| 1 |
#include <arm_sve.h> |
| 2 |
|
| 3 |
#pragma GCC target "+sve2+sme2" |
| 4 |
|
| 5 |
void |
| 6 |
test (svbool_t pg, float f, svint8_t s8, svfloat32_t f32, |
| 7 |
svint32x2_t s32x2, svint32x3_t s32x3, svint32x4_t s32x4, |
| 8 |
svfloat32x2_t f32x2, svfloat32x3_t f32x3, svfloat32x4_t f32x4) |
| 9 |
__arm_streaming |
| 10 |
{ |
| 11 |
svcvt_bf16 (); /* { dg-error {too few arguments to function 'svcvt_bf16'} } */ |
| 12 |
svcvt_bf16 (f32x2, f32x2); /* { dg-error {too many arguments to function 'svcvt_bf16'} } */ |
| 13 |
svcvt_bf16 (0); /* { dg-error {passing 'int' to argument 1 of 'svcvt_bf16', which expects an SVE type rather than a scalar} } */ |
| 14 |
svcvt_bf16 (f); /* { dg-error {passing 'float' to argument 1 of 'svcvt_bf16', which expects an SVE type rather than a scalar} } */ |
| 15 |
svcvt_bf16 (pg); /* { dg-error {svcvt_bf16' has no form that takes 'svbool_t' arguments} } */ |
| 16 |
svcvt_bf16 (s8); /* { dg-error {svcvt_bf16' has no form that takes 'svint8_t' arguments} } */ |
| 17 |
svcvt_bf16 (f32); /* { dg-error {svcvt_bf16' has no form that takes 'svfloat32_t' arguments} } */ |
| 18 |
svcvt_bf16 (f32x2); |
| 19 |
svcvt_bf16 (f32x3); /* { dg-error {svcvt_bf16' has no form that takes 'svfloat32x3_t' arguments} } */ |
| 20 |
svcvt_bf16 (f32x4); /* { dg-error {svcvt_bf16' has no form that takes 'svfloat32x4_t' arguments} } */ |
| 21 |
svcvt_bf16 (s32x2); /* { dg-error {svcvt_bf16' has no form that takes 'svint32x2_t' arguments} } */ |
| 22 |
svcvt_s32 (f32x2); |
| 23 |
svcvt_s32 (f32x3); /* { dg-error {svcvt_s32' has no form that takes 'svfloat32x3_t' arguments} } */ |
| 24 |
svcvt_s32 (f32x4); |
| 25 |
svcvt_f32 (s32x2); |
| 26 |
svcvt_f32 (s32x3); /* { dg-error {svcvt_f32' has no form that takes 'svint32x3_t' arguments} } */ |
| 27 |
svcvt_f32 (s32x4); |
| 28 |
} |