Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/unary_uint_1.c

raw
1 /* { dg-do compile } */
2
3 #include <arm_sve.h>
4
5 void
6 f1 (svbool_t pg, svint8_t s8, svuint8_t u8,
7 svint16_t s16, svuint16_t u16, svfloat16_t f16)
8 {
9 svexpa (); /* { dg-error {too few arguments to function 'svexpa'} } */
10 svexpa (u16, u16); /* { dg-error {too many arguments to function 'svexpa'} } */
11 svexpa (1); /* { dg-error {passing 'int' to argument 1 of 'svexpa', which expects an SVE type rather than a scalar} } */
12 svexpa (pg); /* { dg-error {passing 'svbool_t' to argument 1 of 'svexpa', which expects a vector of unsigned integers} } */
13 svexpa (s8); /* { dg-error {passing 'svint8_t' to argument 1 of 'svexpa', which expects a vector of unsigned integers} } */
14 svexpa (s16); /* { dg-error {passing 'svint16_t' to argument 1 of 'svexpa', which expects a vector of unsigned integers} } */
15 svexpa (f16); /* { dg-error {passing 'svfloat16_t' to argument 1 of 'svexpa', which expects a vector of unsigned integers} } */
16
17 svexpa (u8); /* { dg-error {'svexpa' has no form that takes 'svuint8_t' arguments} } */
18 svexpa (u16);
19 }