gcc/testsuite/gcc.dg/tree-ssa/pr89430-8-mem-ref-size.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -ftree-cselim -fdump-tree-cselim-details" } */ |
| 3 | |
| 4 | int *t; |
| 5 | |
| 6 | int f1 (int tt) |
| 7 | { |
| 8 | int *t1 = t; |
| 9 | *t1 = -5; |
| 10 | if (*t1 < tt) |
| 11 | *((unsigned *) t1) = 5; |
| 12 | return *t1; |
| 13 | } |
| 14 | |
| 15 | /* { dg-final { scan-tree-dump "Conditional store replacement" "cselim" } } */ |