Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/sve_iters_low_1.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)
6 {
7 for (int i = 0; i < 9; i++)
8 {
9 int res = c[i];
10 int t = b[i];
11 if (a[i] != 0)
12 res = t;
13 c[i] = res;
14 }
15 }
16
17 /* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" } } */