gcc/testsuite/gcc.dg/tree-ssa/loadpre7.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-Wno-old-style-definition -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 | |
| 6 | void eshup8 (unsigned short *); |
| 7 | |
| 8 | void |
| 9 | enormlz (x) |
| 10 | unsigned short x[]; |
| 11 | { |
| 12 | register unsigned short *p; |
| 13 | p = &x[2]; |
| 14 | while ((*p & 0xff00) == 0) |
| 15 | { |
| 16 | eshup8 (x); |
| 17 | } |
| 18 | } |
| 19 | /* { dg-final { scan-tree-dump-not "Eliminated:" "pre"} } */ |