view gcc/testsuite/gcc.dg/pr85257.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 84e7813d76e9
children
line wrap: on
line source

/* PR tree-optimization/85257 */
/* { dg-do run { target int128 } } */
/* { dg-options "-O2 -fno-tree-ccp" } */

typedef __int128 V __attribute__ ((__vector_size__ (16 * sizeof (__int128))));

__int128 __attribute__ ((noipa))
foo (void)
{
  V v = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 };
  return v[5];
}

int
main ()
{
  if (foo () != 6)
    __builtin_abort ();
  return 0;
}