aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr99079.c
blob: 78bb21866506e70a60406c8e0ddedd17d43e3073 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR tree-optimization/99079 */

__attribute__((noipa)) unsigned long long
foo (int x)
{
  unsigned long long s = 1 << x;
  return 4897637220ULL % s;
}

int
main ()
{
  if (__SIZEOF_INT__ * __CHAR_BIT__ != 32)
    return 0;
  if (foo (31) != 4897637220ULL)
    __builtin_abort ();
  return 0;
}