Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/ternary_qq_opt_n_2.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, svuint32_t u32,
7 svfloat32_t f32)
8 {
9 svdot (u32, u8); /* { dg-error {too few arguments to function 'svdot'} } */
10 svdot (u32, u8, u8, u8); /* { dg-error {too many arguments to function 'svdot'} } */
11 svdot (0, u8, u8); /* { dg-error {passing 'int' to argument 1 of 'svdot', which expects an SVE type rather than a scalar} } */
12 svdot (pg, u8, u8); /* { dg-error {'svdot' has no form that takes 'svbool_t' and 'svuint8_t' arguments} }*/
13 svdot (u8, u8, u8); /* { dg-error {'svdot' has no form that takes 'svuint8_t' and 'svuint8_t' arguments} } */
14 svdot (f32, u8, u8); /* { dg-error {'svdot' has no form that takes 'svfloat32_t' and 'svuint8_t' arguments} } */
15 svdot (u32, u8, u8);
16 svdot (u32, 0, u8); /* { dg-error {passing 'int' to argument 2 of 'svdot', which expects an SVE type rather than a scalar} } */
17 svdot (u32, s8, u8); /* { dg-error {passing 'svuint8_t' to argument 3 of 'svdot', but argument 2 had type 'svint8_t'} } */
18 svdot (u32, u8, 0);
19 svdot (u32, u8, s8); /* { dg-error {passing 'svint8_t' to argument 3 of 'svdot', but argument 2 had type 'svuint8_t'} } */
20 svdot (u32, u32, u32); /* { dg-error {'svdot' has no form that takes 'svuint32_t' and 'svuint32_t' arguments} } */
21 }