Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/tree-ssa/phi-opt-2.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 /* { dg-do compile } */ | 1 /* { dg-do compile } */ |
2 /* { dg-options "-O1 -fdump-tree-optimized" } */ | 2 /* { dg-options "-O1 -fdump-tree-optimized --param logical-op-non-short-circuit=0" } */ |
3 /* { dg-additional-options "-mbranch-cost=1" { target branch_cost } } */ | |
4 | 3 |
5 _Bool f1(_Bool a, _Bool b) | 4 _Bool f1(_Bool a, _Bool b) |
6 { | 5 { |
7 if (a) | 6 if (a) |
8 { | 7 { |
19 should have been changed to straight line code with the | 18 should have been changed to straight line code with the |
20 value of b (except that we don't fold ! (b != 0) into b | 19 value of b (except that we don't fold ! (b != 0) into b |
21 which can be fixed in a different patch). | 20 which can be fixed in a different patch). |
22 Test this only when known to be !LOGICAL_OP_NON_SHORT_CIRCUIT, | 21 Test this only when known to be !LOGICAL_OP_NON_SHORT_CIRCUIT, |
23 otherwise ifcombine may convert this into return a & b;. */ | 22 otherwise ifcombine may convert this into return a & b;. */ |
24 /* { dg-final { scan-tree-dump-times "if" 1 "optimized" { target { i?86-*-* x86_64-*-* mips*-*-* s390*-*-* avr*-*-* } } } } */ | 23 /* { dg-final { scan-tree-dump-times "if" 1 "optimized" } } */ |