| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-additional-options "-march=armv8.2-a+sve -std=c99 -Wall -Wextra" } */ |
| 3 |
|
| 4 |
#include <arm_neon_sve_bridge.h> |
| 5 |
|
| 6 |
float64x2_t |
| 7 |
f1 (int8x16_t s8, svint8_t sveS8, svint8x2_t sveS8x2, svint64_t sveS64) |
| 8 |
{ |
| 9 |
float64x2_t f64; |
| 10 |
|
| 11 |
s8 = svget_neonq (sveS8); |
| 12 |
s8 = svget_neonq (); /* { dg-error {too few arguments to function 'svget_neonq'} } */ |
| 13 |
s8 = svget_neonq (sveS8, 1); /* { dg-error {too many arguments to function 'svget_neonq'} } */ |
| 14 |
s8 = svget_neonq (s8); /* { dg-error {passing 'int8x16_t' to argument 1 of 'svget_neonq', which expects an SVE type} } */ |
| 15 |
f64 = svget_neonq (sveS8); /* { dg-error {incompatible types when assigning to type 'float64x2_t' from type '__Int8x16_t'} } */ |
| 16 |
s8 = svget_neonq (sveS8x2); /* { dg-error {passing 'svint8x2_t' to argument 1 of 'svget_neonq', which expects a single SVE vector rather than a tuple} } */ |
| 17 |
s8 = svget_neonq (sveS64); /* { dg-error {incompatible types when assigning to type 'int8x16_t' from type '__Int64x2_t} } */ |
| 18 |
|
| 19 |
return f64; |
| 20 |
} |