Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/ssa-ifcombine-ccmp-7.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -g -fdump-tree-optimized --param logical-op-non-short-circuit=1" } */
3
4 /* PR tree-optimization/85605 */
5 /* Like ssa-ifcombine-ccmp-1.c but with conversion from unsigned to signed in the
6 inner bb which should be able to move too. */
7
8 int t (int a, unsigned b)
9 {
10 if (a > 0)
11 {
12 signed t = b;
13 if (t > 0)
14 return 0;
15 }
16 return 1;
17 }
18 /* { dg-final { scan-tree-dump "\&" "optimized" } } */