Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr111820-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -mavx2 -fno-tree-vrp -fdump-tree-vect-details -Wno-aggressive-loop-optimizations" } */
3 /* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" } } */
4
5 int r;
6 int r_0;
7
8 void f (void)
9 {
10 int n = 0;
11 while (-- n)
12 {
13 r_0 += r ;
14 r *= 2;
15 }
16 }