Debian Codegraph @

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

raw
1 #include <arm_sve.h>
2
3 void
4 test (int32_t sw, int i)
5 {
6 svqincb_n_s32 (sw, -1); /* { dg-error {passing -1 to argument 2 of 'svqincb_n_s32', which expects a value in the range \[1, 16\]} } */
7 svqincb_n_s32 (sw, 0); /* { dg-error {passing 0 to argument 2 of 'svqincb_n_s32', which expects a value in the range \[1, 16\]} } */
8 svqincb_n_s32 (sw, 1);
9 svqincb_n_s32 (sw, 2);
10 svqincb_n_s32 (sw, 16);
11 svqincb_n_s32 (sw, 17); /* { dg-error {passing 17 to argument 2 of 'svqincb_n_s32', which expects a value in the range \[1, 16\]} } */
12 svqincb_n_s32 (sw, i); /* { dg-error {argument 2 of 'svqincb_n_s32' must be an integer constant expression} } */
13 }