https://gcc.gnu.org/bugzilla/show_bug.cgi?id=129022

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
While it tests OK on both x86_64 and aarch64 it ICEs

typedef long double V __attribute__((vector_size(32)));
typedef unsigned short U __attribute__((vector_size(32)));

U foo (void)
{
  return (U)(V){ 1.0L, 1.0L };
}

on x86_64 and

short A[64];
int C[64];

__attribute__((noipa)) unsigned long long
f (void)
{
  unsigned long long acc = 0;
  for (int i = 0; i < 11; i++)
    {
      short x = A[i] + 1;
      int c = x ? x + 1 : 0;
      C[i] = c;
      acc += (unsigned long long)c * 3 + i;
    }
  return acc;
}

int main ()
{
  unsigned long long r = f ();
  if (r != 11 * 6 + 11 * 10 / 2)
    __builtin_abort ();
  return 0;
}

Reply via email to