libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / bool-checks-1.c
blob370a23aad3ed3d09c2ef50b6050ab24f02a7b32c
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-optimized-raw" } */
3 /* PR tree-optimization/95923 */
5 _Bool f(_Bool a, _Bool b)
7 if (!a && !b)
8 return 0;
9 if (!a && b)
10 return 0;
11 if (a && !b)
12 return 0;
13 return 1;
16 /* { dg-final { scan-tree-dump-times "bit_and_expr," 1 "optimized"} } */
17 /* { dg-final { scan-tree-dump-not "bit_not_expr," "optimized"} } */
18 /* { dg-final { scan-tree-dump-not "bit_ior_expr," "optimized"} } */
19 /* { dg-final { scan-tree-dump-not "bit_xor_expr," "optimized"} } */
20 /* { dg-final { scan-tree-dump-not "eq_expr," "optimized"} } */
21 /* { dg-final { scan-tree-dump-not "ne_expr," "optimized"} } */
22 /* { dg-final { scan-tree-dump-not "gimple_cond" "optimized"} } */