Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/peel_ind_3_run.c

raw
1 /* { dg-do run { target aarch64_sve_hw } } */
2 /* { dg-options "-O3 -mtune=thunderx -fno-vect-cost-model" } */
3 /* { dg-options "-O3 -mtune=thunderx -msve-vector-bits=256 -fno-vect-cost-model" { target aarch64_sve256_hw } } */
4
5 #include "peel_ind_3.c"
6
7 int __attribute__ ((optimize (1)))
8 main (void)
9 {
10 for (int start = 0; start < MAX_START; ++start)
11 {
12 foo (start);
13 for (int i = 0; i < N; ++i)
14 {
15 if (x[start][i] != (i < start || i >= start + COUNT ? 0 : i))
16 __builtin_abort ();
17 asm volatile ("" ::: "memory");
18 }
19 }
20 return 0;
21 }