Debian Codegraph @

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

raw
1 #include <arm_sve.h>
2
3 void
4 test (svbool_t pg, svint32_t s32, svint64_t s64, int i)
5 {
6 svclasta (pg, 1); /* { dg-error {too few arguments to function 'svclasta'} } */
7 svclasta (pg, 1, s32, 1); /* { dg-error {too many arguments to function 'svclasta'} } */
8 svclasta (1, 1, s32); /* { dg-error {passing 'int' to argument 1 of 'svclasta', which expects 'svbool_t'} } */
9 svclasta (pg, 1, 1); /* { dg-error {passing 'int' to argument 3 of 'svclasta', which expects an SVE type rather than a scalar} } */
10 svclasta (pg, 1, pg); /* { dg-error {'svclasta' has no form that takes 'svbool_t' arguments} } */
11 svclasta (pg, i, s32);
12 svclasta (pg, s32, 1); /* { dg-error {passing 'int' to argument 3 of 'svclasta', which expects an SVE type rather than a scalar} } */
13 svclasta (pg, s32, s64); /* { dg-error {passing 'svint64_t' to argument 3 of 'svclasta', but argument 2 had type 'svint32_t'} } */
14 svclasta (pg, pg, pg); /* { dg-error {'svclasta' has no form that takes 'svbool_t' arguments} } */
15 }