re PR tree-optimization/33291 (a+=2; a+=2 not simplified to a+=4; with -O3 ...
[gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / 20040216-1.c
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-dse1-details" } */
3
4 foo(int *z, int *y, int xx)
5 {
6 *z = 1;
7 if (xx)
8 xx = 20;
9 else
10 xx = 30;
11 *z = 2;
12 *z = 3;
13 return xx;
14 }
15
16 /* We should convert two COND_EXPRs into straightline code. */
17 /* { dg-final { scan-tree-dump-times "Deleted dead store" 2 "dse1"} } */
18 /* { dg-final { cleanup-tree-dump "dse1" } } */