re PR tree-optimization/33291 (a+=2; a+=2 not simplified to a+=4; with -O3 ...
[gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / loop-21.c
1 /* PR tree-optimization/30322 */
2
3 /* { dg-do compile } */
4 /* { dg-options "-O2 -fdump-tree-final_cleanup" } */
5
6 extern void op( int, int);
7 void foo(int f0, int f1, int e0, int e1)
8 {
9 int i0, i1;
10
11 for (i1 = f1; i1 <= e1; ++i1)
12 for (i0 = f0; i0 <= e0; ++i0)
13 op(i0, i1);
14 }
15
16 /* { dg-final { scan-tree-dump-times "~" 0 "final_cleanup" } } */
17 /* { dg-final { cleanup-tree-dump "final_cleanup" } } */