Remove outermost loop parameter.
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-ifcombine-2.c
blobdab30addd59e7828b3229eed74ed339fd3649844
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-optimized" } */
4 /* Testcase for PR31657. */
6 int foo (int x, int a, int b)
8 /* if ((x & a) || (x & b)) */
9 if (x & a)
10 goto doit;
11 if (x & b)
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 { cleanup-tree-dump "optimized" } } */