re PR tree-optimization/33291 (a+=2; a+=2 not simplified to a+=4; with -O3 ...
[gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / loadpre7.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-pre-stats" } */
3 /* We can't eliminate the *p load here in any sane way, as eshup8 may
4 change it. */
5 void
6 enormlz (x)
7 unsigned short x[];
8 {
9 register unsigned short *p;
10 p = &x[2];
11 while ((*p & 0xff00) == 0)
12 {
13 eshup8 (x);
14 }
15 }
16 /* { dg-final { scan-tree-dump-times "Eliminated: 0" 1 "pre"} } */
17 /* { dg-final { cleanup-tree-dump "pre" } } */