]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/pr101008.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr101008.c
CommitLineData
4bdcdd8f
JJ
1/* PR rtl-optimization/101008 */
2/* { dg-do compile } */
3/* { dg-options "-O2 -g" } */
4
5typedef unsigned __attribute__((__vector_size__(32))) U;
6typedef unsigned __attribute__((__vector_size__(16))) V;
7
8int c, r;
9
10V v;
11
12void
13foo(void)
14{
15 U u = __builtin_shufflevector (v, (V)(v != c) | (V)(c == v),
16 4, 3, 5, 5, 1, 2, 3, 0);
17 r = ((union { U a; int b; }) u).b;
18}