summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr71636-2.c
blob: 9e9297d4a7c904801d909f79b8aaabf03baaabf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-forwprop-details" } */

unsigned f(unsigned x, unsigned b)
{
  unsigned t1 = 1U << b;
  unsigned t2 = t1 - 1;
  unsigned t3 = x & t2;
  return t3;
}

/* { dg-final { scan-tree-dump "_\[0-9\] = ~_\[0-9\]" "forwprop1" } } */