Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/ssa-ifcombine-ccmp-9.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 short to int in the
6 inner bb which should be able to move too. */
7
8 int t (int a, short b, int c)
9 {
10 if (a > 0)
11 {
12 if (c == b)
13 return 0;
14 }
15 return 1;
16 }
17 /* { dg-final { scan-tree-dump "\&" "optimized" } } */