aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr69399.c
blob: 24fa48c7d7401b40f430390644be29df530963c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do run { target int128 } } */

static unsigned __attribute__((noinline, noclone))
foo (unsigned long long u)
{
  unsigned __int128 v = u | 0xffffff81U;
  v >>= 64;
  return v;
}

int
main ()
{
  unsigned x = foo (27);
  if (x != 0)
    __builtin_abort ();
  return 0;
}