1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-cddce1" } */
3 
4 void bar (void);
5 unsigned short
foo(unsigned char x,unsigned short y)6 foo (unsigned char x, unsigned short y)
7 {
8   unsigned char t = (unsigned char)((x & 1) ^ ((unsigned char)y & 1));
9   if (t == 1)
10     bar ();
11   return y;
12 }
13 
14 /* We should have combined this to require only one bitwise and
15    as in (x ^ (char) y) & 1.  */
16 
17 /* { dg-final { scan-tree-dump-times " & " 1 "cddce1" } } */
18