aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/forwprop-34.c
blob: 9aadce6a6a32e7bf224e01878c3898c1515c48a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-cddce1" } */

unsigned int
foo (unsigned int eax)
{
  unsigned int edx = eax & 1;
  edx ^= 1;
  eax &= -2;
  eax |= edx;
  return eax;
}

/* { dg-final { scan-tree-dump-times " = " 1 "cddce1" } } */
/* { dg-final { scan-tree-dump " = eax_\[0-9\]+\\(D\\) \\^ 1;" "cddce1" } } */