summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr78644-1.c
blob: d6aafeb7c632a5ded1eae5578e277922a2dce7c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do compile { target int128 } } */
/* { dg-options "-Og -fipa-cp -w -Wno-psabi" } */

typedef unsigned __int128 u128;
typedef unsigned __int128 V __attribute__ ((vector_size (64)));

V x4;

static V
bar (u128 x2, u128 x3)
{
  while (x4[0]--)
    x2 /= x3 >>= 1;
  return x2 + x3 + x4;
}

void
foo (void)
{
  bar (0, 0);
}