Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -mavx2 -fno-tree-vrp -Wno-aggressive-loop-optimizations -fdump-tree-vect-details" } */
3 /* { dg-final { scan-tree-dump "Avoid compile time hog on vect_peel_nonlinear_iv_init for nonlinear induction vec_step_op_mul when iteration count is too big" "vect" } } */
4
5 int r;
6 int r_0;
7
8 void f1 (void)
9 {
10 int n = 0;
11 while (-- n)
12 {
13 r_0 += r;
14 r *= 3;
15 }
16 }