1 /* PR tree-optimization/88676 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-phiopt1" } */
4 /* { dg-final { scan-tree-dump-not " = PHI <" "phiopt1" { target le } } } */
5
6 struct foo1 {
7 int i:1;
8 };
9 struct foo2 {
10 unsigned i:1;
11 };
12
test1(struct foo1 * x)13 int test1 (struct foo1 *x)
14 {
15 if (x->i == 0)
16 return 1;
17 else if (x->i == 1)
18 return 1;
19 return 0;
20 }
21
test2(struct foo2 * x)22 int test2 (struct foo2 *x)
23 {
24 if (x->i == 0)
25 return 1;
26 else if (x->i == -1)
27 return 1;
28 return 0;
29 }
30
31