gcc/testsuite/gcc.dg/pr109977.c
raw| 1 | /* PR target/109977 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-Og" } */ |
| 4 | |
| 5 | typedef double __attribute__((__vector_size__ (__SIZEOF_DOUBLE__))) V; |
| 6 | typedef double __attribute__((__vector_size__ (__SIZEOF_DOUBLE__*2))) W; |
| 7 | V v; |
| 8 | int i; |
| 9 | extern void bar (void *); |
| 10 | |
| 11 | void |
| 12 | foo (void) |
| 13 | { |
| 14 | W w = __builtin_shufflevector (v, (W) { }, 0, 0); |
| 15 | bar (&w); |
| 16 | } |