PR tree-optimization/84740
[official-gcc.git] / gcc / testsuite / gcc.dg / binop-notxor2.c
blob4a8d5869224f8b8d27fcc8f93020237cc2fa58d6
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 int
5 foo (_Bool a, _Bool b)
7 return (a ^ (a == 0)) | ((b == 0) ^ b);
10 /* { dg-final { scan-tree-dump-times "return 1" 1 "optimized" } } */