aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tree-ssa/forwprop-14.c
blob: 7432e0d540598a73b6840e5f0c66e1ee7be793b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-optimized" } */

unsigned int
foo (unsigned int eax)
{
  eax |= 4;
  eax &= 247;
  eax |= 16;
  eax &= 223;
  eax |= 64;
  eax &= 127;
  return eax;
}

/* { dg-final { scan-tree-dump-times " & " 1 "optimized" } } */
/* { dg-final { scan-tree-dump-times " \\\| " 1 "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */