gcc/testsuite/gcc.dg/tree-ssa/phi-opt-27.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O1 -fdump-tree-optimized" } */ |
| 3 | |
| 4 | _Bool f1(_Bool a, _Bool b) |
| 5 | { |
| 6 | if (a) |
| 7 | return b; |
| 8 | return 0; |
| 9 | } |
| 10 | |
| 11 | |
| 12 | /* There should be no if statements and be fold into just return a & b. */ |
| 13 | /* { dg-final { scan-tree-dump-not "if" "optimized" } } */ |
| 14 | /* { dg-final { scan-tree-dump-times " & " 1 "optimized" } } */ |