aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr109977.c
blob: c0be161ef4e71c2abd454882388b534d3670e264 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR target/109977 */
/* { dg-do compile } */
/* { dg-options "-Og" } */

typedef double __attribute__((__vector_size__ (__SIZEOF_DOUBLE__))) V;
typedef double __attribute__((__vector_size__ (__SIZEOF_DOUBLE__*2))) W;
V v;
int i;
extern void bar (void *);

void
foo (void)
{
  W w = __builtin_shufflevector (v, (W) { }, 0, 0);
  bar (&w);
}