Debian Codegraph @

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

raw
1 #include <arm_sve.h>
2
3 void
4 test (enum svpattern pat, svbool_t pg, svint8_t s8, svuint8_t u8,
5 svint16_t s16, svuint16_t u16, svint32_t s32, svuint32_t u32,
6 svint64_t s64, svuint64_t u64, int16_t sh, uint16_t uh,
7 int32_t sw, uint32_t uw, int64_t sd, uint64_t ud,
8 float f, int i)
9 {
10 svqincb_pat (sw, pat); /* { dg-error {too few arguments to function 'svqincb_pat'} } */
11 svqincb_pat (sw, pat, 1, 1); /* { dg-error {too many arguments to function 'svqincb_pat'} } */
12
13 svqincb_pat (pg, SV_ALL, 1); /* { dg-error {'svqincb_pat' has no form that takes 'svbool_t' arguments} } */
14 svqincb_pat (s8, SV_ALL, 1); /* { dg-error {'svqincb_pat' has no form that takes 'svint8_t' arguments} } */
15 svqincb_pat (u8, SV_ALL, 1); /* { dg-error {'svqincb_pat' has no form that takes 'svuint8_t' arguments} } */
16 svqincb_pat (s16, SV_ALL, 1); /* { dg-error {'svqincb_pat' has no form that takes 'svint16_t' arguments} } */
17 svqincb_pat (u16, SV_ALL, 1); /* { dg-error {'svqincb_pat' has no form that takes 'svuint16_t' arguments} } */
18 svqincb_pat (s32, SV_ALL, 1); /* { dg-error {'svqincb_pat' has no form that takes 'svint32_t' arguments} } */
19 svqincb_pat (u32, SV_ALL, 1); /* { dg-error {'svqincb_pat' has no form that takes 'svuint32_t' arguments} } */
20 svqincb_pat (s64, SV_ALL, 1); /* { dg-error {'svqincb_pat' has no form that takes 'svint64_t' arguments} } */
21 svqincb_pat (u64, SV_ALL, 1); /* { dg-error {'svqincb_pat' has no form that takes 'svuint64_t' arguments} } */
22 svqincb_pat (sh, SV_ALL, 1);
23 svqincb_pat (sw, SV_ALL, 1);
24 svqincb_pat (sd, SV_ALL, 1);
25 svqincb_pat (uh, SV_ALL, 1);
26 svqincb_pat (uw, SV_ALL, 1);
27 svqincb_pat (ud, SV_ALL, 1);
28 svqincb_pat (f, SV_ALL, 1); /* { dg-error {passing 'float' to argument 1 of 'svqincb_pat', which expects a 32-bit or 64-bit integer type} } */
29
30 svqincb_pat (sw, pat, 1); /* { dg-error {argument 2 of 'svqincb_pat' must be an integer constant expression} } */
31 svqincb_pat (sw, i, 1); /* { dg-error {argument 2 of 'svqincb_pat' must be an integer constant expression} } */
32 svqincb_pat (sw, (enum svpattern) -1, 1); /* { dg-error {passing 4294967295 to argument 2 of 'svqincb_pat', which expects a valid 'enum svpattern' value} } */
33 svqincb_pat (sw, (enum svpattern) 0, 1);
34 svqincb_pat (sw, (enum svpattern) 13, 1);
35 svqincb_pat (sw, (enum svpattern) 14, 1); /* { dg-error {passing 14 to argument 2 of 'svqincb_pat', which expects a valid 'enum svpattern' value} } */
36 svqincb_pat (sw, (enum svpattern) 28, 1); /* { dg-error {passing 28 to argument 2 of 'svqincb_pat', which expects a valid 'enum svpattern' value} } */
37 svqincb_pat (sw, (enum svpattern) 29, 1);
38 svqincb_pat (sw, (enum svpattern) 31, 1);
39 svqincb_pat (sw, (enum svpattern) 32, 1); /* { dg-error {passing 32 to argument 2 of 'svqincb_pat', which expects a valid 'enum svpattern' value} } */
40
41 svqincb_pat (sw, SV_POW2, -1); /* { dg-error {passing -1 to argument 3 of 'svqincb_pat', which expects a value in the range \[1, 16\]} } */
42 svqincb_pat (sw, SV_POW2, 0); /* { dg-error {passing 0 to argument 3 of 'svqincb_pat', which expects a value in the range \[1, 16\]} } */
43 svqincb_pat (sw, SV_POW2, 1);
44 svqincb_pat (sw, SV_POW2, 2);
45 svqincb_pat (sw, SV_POW2, 16);
46 svqincb_pat (sw, SV_POW2, 17); /* { dg-error {passing 17 to argument 3 of 'svqincb_pat', which expects a value in the range \[1, 16\]} } */
47 }