1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-cddce1" } */
3 
4 int
fn1(int x)5 fn1 (int x)
6 {
7   return ~x | x;
8 }
9 
10 int
fn2(int x)11 fn2 (int x)
12 {
13   return x | ~x;
14 }
15 
16 unsigned int
fn3(unsigned int x)17 fn3 (unsigned int x)
18 {
19   return ~x | x;
20 }
21 
22 unsigned int
fn4(unsigned int x)23 fn4 (unsigned int x)
24 {
25   return x | ~x;
26 }
27 
28 int
fn5(int x)29 fn5 (int x)
30 {
31   return ~x | (unsigned) x;
32 }
33 
34 int
fn6(int x)35 fn6 (int x)
36 {
37   return (unsigned) ~x | x;
38 }
39 
40 int
fn7(int x)41 fn7 (int x)
42 {
43   return ~(unsigned) x | x;
44 }
45 
46 /* { dg-final { scan-tree-dump-not "~" "cddce1" } } */
47 /* { dg-final { scan-tree-dump-not " \\| " "cddce1" } } */
48