PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-ifcombine-13.c
blob5f3147a8c004fe679dbd76e9483a820e50fa0646
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-optimized-details-blocks" } */
3 /* { dg-additional-options "-mbranch-cost=2" { target branch_cost } } */
5 _Bool f1(_Bool a, _Bool b)
7 if (a)
9 if (b)
10 return 1;
11 else
12 return 0;
14 return 0;
18 /* For LOGICAL_OP_NON_SHORT_CIRCUIT, this should be optimized
19 into return a & b;, with no ifs. */
20 /* { dg-final { scan-tree-dump-not "if" "optimized" { target { i?86-*-* x86_64-*-* s390*-*-* avr*-*-* } } } } */
21 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */