summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/ssa-ifcombine-ccmp-1.c
blob: efc8a7133c9e8004f449012bc014d3cfa24c4b50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile { target { ! "m68k*-*-* mmix*-*-* mep*-*-* bfin*-*-* v850*-*-* picochip*-*-* moxie*-*-* cris*-*-* m32c*-*-* fr30*-*-* mcore*-*-* powerpc*-*-* xtensa*-*-* arc*-*-*"} } } */

/* { dg-options "-O2 -g -fdump-tree-optimized" } */
/* { dg-additional-options "-mbranch-cost=2" { target avr-*-* } } */

int t (int a, int b)
{
  if (a > 0)
    if (b > 0)
      return 0;
  return 1;
}
/* { dg-final { scan-tree-dump "\&" "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */