aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr98959.c
blob: e03f1ca2d4fa123c951c5f97d79cfc413fb6333f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR target/98959 */
/* { dg-require-effective-target int128 } */
/* { dg-require-effective-target lp64 } */  /* for -mcmodel= */
/* { dg-options "-fno-schedule-insns -O2 -mcmodel=small" } */

/* Verify we do not ICE on the following.  */

typedef __attribute__ ((altivec (vector__))) unsigned __int128 v1ti_t;

v1ti_t foo (v1ti_t v);

void
bug ()
{
  v1ti_t dv = { ((31415926539) << 6) };
  dv = foo (dv);
  if (dv[0] != 0)
    __builtin_abort ();
}