Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-march=armv9-a -Ofast -fdump-tree-vect-details" } */
3
4 void
5 foo (char *restrict a, int *restrict b, int *restrict c, int n, int stride)
6 {
7 if (stride <= 1)
8 return;
9
10 for (int i = 0; i < 9; i++)
11 {
12 int res = c[i];
13 int t = b[i*stride];
14 if (a[i] != 0)
15 res = t;
16 c[i] = res;
17 }
18 }
19
20 /* { dg-final { scan-tree-dump-not "LOOP VECTORIZED" "vect" } } */