Merge from mainline
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / loadpre7.c
blob7cd6838c6ab396b73b15529e1d88b4c7941cfd50
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[];
9 register unsigned short *p;
10 p = &x[2];
11 while ((*p & 0xff00) == 0)
13 eshup8 (x);
16 /* { dg-final { scan-tree-dump-times "Eliminated: 0" 1 "pre"} } */
17 /* { dg-final { cleanup-tree-dump "pre" } } */