aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr85945.c
blob: 93b2023f25cb132ad4954c48cd375db89f7524cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR target/85945 */

typedef float V __attribute__((vector_size(16)));
union U { V v; float f[4]; };
int f;
float g[4];

void
foo (void)
{
  V d;
  union U i;
  i.v = d;
  for (f = 0; f < 4; f++)
    g[f] = i.f[f];
}