gcc/testsuite/gcc.target/i386/pr122104.c
raw| 1 | /* PR tree-optimization/122104 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2 -fdump-tree-widening_mul-alias" } */ |
| 4 | /* { dg-final { scan-tree-dump "\\.MUL_OVERFLOW" "widening_mul" } } */ |
| 5 | /* { dg-final { scan-tree-dump-not "# RANGE \\\[irange\\\] unsigned int \\\[1, " "widening_mul" } } */ |
| 6 | |
| 7 | int |
| 8 | foo (int x) |
| 9 | { |
| 10 | int r = (unsigned) x * 35; |
| 11 | return x && ((unsigned) r / x) != 35U; |
| 12 | } |