summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/vrp52.c
blob: 231d081565cb5d47f51755300f7665b07312b5c4 (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" } */

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" } } */