PR tree-optimization/33562
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / forwprop-15.c
blob637facd5268197e2f81ae62b064aa59680b35cef
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-forwprop1" } */
4 _Bool
5 foo (_Bool a, _Bool b, _Bool c)
7 _Bool r1 = a == 0 & b != 0;
8 _Bool r2 = b != 0 & c == 0;
9 return (r1 == 0 & r2 == 0);
12 /* { dg-final { scan-tree-dump-times " == " 0 "forwprop1" } } */
13 /* { dg-final { scan-tree-dump-times " != " 0 "forwprop1" } } */