aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tree-ssa/vrp52.c
blob: 52ceea6bef59232cfc3dfdb1a83a68d77b9d6bfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-vrp1 -fno-tree-ccp" } */

int
foo (unsigned int i, unsigned int j)
{
  i &= 15;
  j &= 15;
  i += 1024;
  j += 2048;
  i |= j;
  return i >= 1024 + 2048;
}

/* { dg-final { scan-tree-dump-times "return 1;" 1 "vrp1" } } */
/* { dg-final { cleanup-tree-dump "vrp1" } } */