gcc/testsuite/gcc.target/i386/pr105993.c
raw| 1 | /* PR target/105993 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O -mxop" } */ |
| 4 | |
| 5 | typedef unsigned short __attribute__((__vector_size__ (16))) V; |
| 6 | V x, y, z; |
| 7 | |
| 8 | char c; |
| 9 | short s; |
| 10 | |
| 11 | V |
| 12 | foo (void) |
| 13 | { |
| 14 | V u = __builtin_shufflevector (z, y, 2, 1, 0, 8, 4, 1, 7, 2); |
| 15 | V v = ~(__builtin_bswap16 (s) & (u ^ c)); |
| 16 | |
| 17 | return v; |
| 18 | } |