Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2
3 #include <arm_sve.h>
4
5 void
6 f1 (svbool_t pg, svuint8_t u8)
7 {
8 svcnt_x (pg); /* { dg-error {too few arguments to function 'svcnt_x'} } */
9 svcnt_x (pg, u8, u8); /* { dg-error {too many arguments to function 'svcnt_x'} } */
10 svcnt_x (u8, u8); /* { dg-error {passing 'svuint8_t' to argument 1 of 'svcnt_x', which expects 'svbool_t'} } */
11 svcnt_x (pg, pg); /* { dg-error {'svcnt_x' has no form that takes 'svbool_t' arguments} } */
12 svcnt_x (pg, 1); /* { dg-error {passing 'int' to argument 2 of 'svcnt_x', which expects an SVE type rather than a scalar} } */
13 svcnt_x (pg, u8);
14 }