view gcc/testsuite/gcc.dg/pr78644-2.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

/* { dg-do compile { target int128 } } */
/* { dg-options "-Og -finline-functions-called-once -w -Wno-psabi" } */

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

U
bar4 (U u0, U u1)
{
  if (u1[0])
    u1 <<= 1;
  return u0 + u1;
}

V
foo (U u, V v)
{
  v |= (unsigned)bar4(u, (U){})[0];
  return v;
}