gcc/testsuite/gcc.target/i386/pr105927.c
raw| 1 | /* PR target/105927 */ |
| 2 | /* { dg-do compile { target ia32 } } */ |
| 3 | /* { dg-options "-O1 -fno-tree-dce -mtune=k6-3 -msse2" } */ |
| 4 | |
| 5 | typedef _Float16 __attribute__((__vector_size__(4))) U; |
| 6 | typedef _Float16 __attribute__((__vector_size__(2))) V; |
| 7 | typedef short __attribute__((__vector_size__(4))) W; |
| 8 | V v; |
| 9 | U u; |
| 10 | |
| 11 | extern void bar(W i); |
| 12 | |
| 13 | void |
| 14 | foo(void) |
| 15 | { |
| 16 | U x = __builtin_shufflevector(v, u, 2, 0); |
| 17 | bar(x >= 0); |
| 18 | } |