aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr110731.c
blob: 7da905d3163f757451b548da3173e86c5f599582 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR tree-optimization/110731 */
/* { dg-do run { target int128 } } */
/* { dg-options "-O2" } */

__int128
foo (void)
{
  struct S { __int128 f : 119; } s = { ((__int128) -18014398509481984) << 64 };
  return s.f / 2;
}

int
main ()
{
  if (foo () != (((__int128) -9007199254740992) << 64))
    __builtin_abort ();
}