aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr105049.c
blob: b0518c6a181b018a344edd25aff9f67f0eb9f3f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O -fno-tree-forwprop" } */

typedef short __attribute__((__vector_size__ (sizeof(short)))) V;
typedef short __attribute__((__vector_size__ (2*sizeof(short)))) U;
char c;

U
foo (void)
{
  return __builtin_shufflevector ((V){}, (V){}, 0, 0) & c;
}