Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-ifcombine-6.c
blob90abc8debc9ee6d5ac2f73e597e6a52baba175f7
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-ifcombine" } */
4 void bar (void);
6 void
7 foo1 (unsigned int a)
9 if (a & 1)
10 goto heaven;
11 if (a & 4)
12 goto heaven;
13 return;
15 heaven:
16 bar ();
19 void
20 foo2 (unsigned int a)
22 if (a & 1)
23 if (a & 4)
24 goto heaven;
25 return;
27 heaven:
28 bar ();
32 /* The special treatment of a & 1 != 0 in fold caused the pattern not
33 to be recognized due to extra conversions inserted. */
35 /* { dg-final { scan-tree-dump "optimizing bits or bits test" "ifcombine" } } */
36 /* { dg-final { scan-tree-dump "optimizing double bit test" "ifcombine" } } */
37 /* { dg-final { cleanup-tree-dump "ifcombine" } } */