aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr101294.c
blob: ca59b35f4be2aa9ef35a23c81510b5d9ac5691f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR middle-end/101294 */
/* { dg-do compile } */
/* { dg-options "-O0" } */
/* { dg-additional-options "-mavx" { target avx } } */

typedef __attribute__((__vector_size__ (sizeof (unsigned long long)))) unsigned long long U;
typedef __attribute__((__vector_size__ (4 * sizeof (unsigned long long)))) unsigned long long V;

extern U x;

void
foo (void)
{
  x = __builtin_shufflevector ((U){}, (V){}, 3);
}