Debian Codegraph @

gcc/testsuite/gcc.dg/pr101008.c

raw
1 /* PR rtl-optimization/101008 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -g" } */
4 /* { dg-require-effective-target int32 } */
5
6 typedef unsigned __attribute__((__vector_size__(32))) U;
7 typedef unsigned __attribute__((__vector_size__(16))) V;
8
9 int c, r;
10
11 V v;
12
13 void
14 foo(void)
15 {
16 U u = __builtin_shufflevector (v, (V)(v != c) | (V)(c == v),
17 4, 3, 5, 5, 1, 2, 3, 0);
18 r = ((union { U a; int b; }) u).b;
19 }