summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr44948-1b.c
blob: 1e2d4d3c51087dd07c847e117bd8ee3e353ae8ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O -mno-avx -Wno-psabi -mtune=generic" } */

struct A { long b[8] __attribute__((aligned (32))); };

void
foo (long double x, struct A y)
{
  int i;
  if (x != 8.0L)
    __builtin_abort ();
  for (i = 0; i < 8; i++)
    if (y.b[i] != i)
      __builtin_abort ();
}