1 /* { dg-do compile { target { ! { { logical_op_short_circuit && { ! avr-*-* } } || { m68k*-*-* mmix*-*-* bfin*-*-* v850*-*-* moxie*-*-* cris*-*-* m32c*-*-* fr30*-*-* mcore*-*-* powerpc*-*-* xtensa*-*-* arc*-*-* mips*-*-* } } } } } */
2 
3 /* { dg-options "-O2 -g -fdump-tree-optimized" } */
4 /* { dg-additional-options "-mbranch-cost=2" { target branch_cost } } */
5 
t(int a,int b)6 int t (int a, int b)
7 {
8   if (a > 0)
9     goto L1;
10   else
11     goto L2;
12 L1:
13   if (b > 0)
14     goto L2;
15   return 5;
16 L2:
17   return 6;
18 }
19 /* { dg-final { scan-tree-dump "\|" "optimized" } } */
20