gcc/testsuite/gcc.dg/tree-ssa/pr85726-2.c
raw| 1 | /* PR tree-optimization/85726 */ |
| 2 | /* { dg-do compile { target int32 } } */ |
| 3 | /* { dg-options "-O2 -fdump-tree-optimized" } */ |
| 4 | /* { dg-final { scan-tree-dump " / 3145728;" "optimized" } } */ |
| 5 | /* { dg-final { scan-tree-dump "y = 0;" "optimized" } } */ |
| 6 | |
| 7 | int x, y; |
| 8 | |
| 9 | void |
| 10 | foo (int n) |
| 11 | { |
| 12 | int c = 3 << 20; |
| 13 | x = n / c; |
| 14 | y = x / c; |
| 15 | } |