gcc/testsuite/gcc.dg/pr105049.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O -fno-tree-forwprop" } */ |
| 3 | |
| 4 | typedef short __attribute__((__vector_size__ (sizeof(short)))) V; |
| 5 | typedef short __attribute__((__vector_size__ (2*sizeof(short)))) U; |
| 6 | char c; |
| 7 | |
| 8 | U |
| 9 | foo (void) |
| 10 | { |
| 11 | return __builtin_shufflevector ((V){}, (V){}, 0, 0) & c; |
| 12 | } |