gcc/testsuite/gcc.dg/tree-ssa/minmax-22.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fdump-tree-phiopt2" } */ |
| 3 | |
| 4 | int f(int num) |
| 5 | { |
| 6 | if (num < 3) __builtin_unreachable(); |
| 7 | return num != 3 ? num : 4; |
| 8 | } |
| 9 | |
| 10 | /* In phiopt2 with the range information, this should be turned into |
| 11 | a MAX_EXPR. */ |
| 12 | /* { dg-final { scan-tree-dump-times "MAX_EXPR" 1 "phiopt2" } } */ |