summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr36991.c
blob: d090ba105c74881c70057d9327fde93c44bd07bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR tree-optimization/36991 */
/* { dg-do compile } */
/* { dg-options "-O2" } */

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

void
foo (float x, float y, U *z)
{
  z->v[1][0] = z->v[0][1] = (V) { x, y, 0, 0 };
}