blob: 4b2605e2a1c795127b83541d6d74baedb67b940b [file] [log] [blame]
/* { 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)
{
if (a > 0)
goto L1;
else
goto L2;
L1:
if (b > 0)
goto L2;
return 5;
L2:
return 6;
}
/* { dg-final { scan-tree-dump "\|" "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */