]>
Commit | Line | Data |
---|---|---|
4bdcdd8f JJ |
1 | /* PR rtl-optimization/101008 */ |
2 | /* { dg-do compile } */ | |
3 | /* { dg-options "-O2 -g" } */ | |
4 | ||
5 | typedef unsigned __attribute__((__vector_size__(32))) U; | |
6 | typedef unsigned __attribute__((__vector_size__(16))) V; | |
7 | ||
8 | int c, r; | |
9 | ||
10 | V v; | |
11 | ||
12 | void | |
13 | foo(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 | } |