re PR tree-optimization/33291 (a+=2; a+=2 not simplified to a+=4; with -O3 ...
[gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / 20050215-1.c
1 /* PR middle-end/19857 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
4
5 int i;
6 int foo (void)
7 {
8 return i & ~(unsigned int) 3;
9 }
10
11 /* Make sure the optimizers don't introduce overflow where one
12 did not exist in the original. */
13 /* { dg-final { scan-tree-dump-times "-0+4" 0 "optimized"} } */
14 /* { dg-final { cleanup-tree-dump "optimized" } } */