summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr42347.c
blob: e98b869848056d4cb7035bf44b0c6c91bd7b1a0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR bootstrap/42347 */

long
foo (long x, long y)
{
  x = x & y;
  switch (y)
    {
    case 63L: x >>= 0; break;
    case 4032L: x >>= 6; break;
    case 258048L: x >>= 12; break;
    case 16515072L: x >>= 18; break;
    default: __builtin_unreachable ();
    }
  return x;
}