gcc/testsuite/gcc.dg/tree-ssa/phi-opt-45.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fdump-tree-phiopt1" } */ |
| 3 | |
| 4 | #include <stdint.h> |
| 5 | |
| 6 | int8_t f1 (int8_t x) |
| 7 | { |
| 8 | return x != 0 ? x - (int8_t)1 : 0; |
| 9 | } |
| 10 | |
| 11 | int16_t f2 (int16_t x) |
| 12 | { |
| 13 | return x != 0 ? x - (int16_t)1 : 0; |
| 14 | } |
| 15 | |
| 16 | int32_t f3 (int32_t x) |
| 17 | { |
| 18 | return x != 0 ? x - (int32_t)1 : 0; |
| 19 | } |
| 20 | |
| 21 | int64_t f4 (int64_t x) |
| 22 | { |
| 23 | return x != 0 ? x - (int64_t)1 : 0; |
| 24 | } |
| 25 | |
| 26 | /* { dg-final { scan-tree-dump-not "goto" "phiopt1" } } */ |