PR testsuite/52641
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / forwprop-24.c
blob74207cf1a812ea09cb4ffd53dbfe8e1146079f9f
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-cddce1" } */
4 void bar (void);
5 unsigned short
6 foo (unsigned char x, unsigned short y)
8 unsigned char t = (unsigned char)((x & 1) ^ ((unsigned char)y & 1));
9 if (t == 1)
10 bar ();
11 return y;
14 /* We should have combined this to require only one bitwise and
15 as in (x ^ (char) y) & 1. */
17 /* { dg-final { scan-tree-dump-times " & " 1 "cddce1" } } */
18 /* { dg-final { cleanup-tree-dump "cddce1" } } */