gcc/testsuite/gcc.dg/tree-ssa/pr67891.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O -fdump-tree-fre1" } */ |
| 3 | |
| 4 | unsigned int a, *b; |
| 5 | unsigned short c; |
| 6 | int d; |
| 7 | |
| 8 | void |
| 9 | fn1 () |
| 10 | { |
| 11 | b = &d; |
| 12 | *b = c = a; |
| 13 | *b = d; |
| 14 | } |
| 15 | |
| 16 | /* We should remove all loads but that from a. */ |
| 17 | /* { dg-final { scan-tree-dump-not "= \[dbc\];" "fre1" } } */ |