PR tree-optimization/33562
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-ifcombine-3.c
blobff543c17acbcb4c4ec14763e76285b3fcf14aebf
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-optimized" } */
4 /* Testcase extracted from PR15353. */
6 int foo (int x, int a)
8 /* if ((x > a) || (x == a)) */
9 if (x > a)
10 goto doit;
11 if (x == a)
12 goto doit;
14 /* else */
15 return 0;
17 /* then - returing 1 causes phiopt to trigger */
18 doit:
19 return 2;
22 /* { dg-final { scan-tree-dump ">=" "optimized" } } */