Debian Codegraph @

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

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