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

/* { dg-options "-O2 -g -fdump-tree-optimized" } */
/* { dg-additional-options "-mbranch-cost=2" { target mips*-*-* avr-*-* s390*-*-* i?86-*-* x86_64-*-* } } */

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