PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-ifcombine-3.c
blobc51fdf3a9c4f583cf8f4fbe85af7d90ed947e13a
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-optimized-details-blocks" } */
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" } } */
23 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */