| 1 |
/* { dg-do compile { target { ! ia32 } } } */ |
| 2 |
/* { dg-options "-march=x86-64-v4 -O2" } */ |
| 3 |
/* { dg-final { scan-assembler-not "vpextrq" } } */ |
| 4 |
/* { dg-final { scan-assembler-not "vpinsrq" } } */ |
| 5 |
|
| 6 |
typedef int v16si __attribute__((vector_size(64))); |
| 7 |
typedef int v4si __attribute__((vector_size(16))); |
| 8 |
|
| 9 |
v4si f(v16si x) |
| 10 |
{ |
| 11 |
return __builtin_shufflevector(x, x, 0, 1, 2, 3); |
| 12 |
} |
| 13 |
|
| 14 |
v4si g(v16si x) |
| 15 |
{ |
| 16 |
return __builtin_shufflevector(x, x, 4, 5, 6, 7); |
| 17 |
} |
| 18 |
|
| 19 |
v4si f1(__int128 *x) |
| 20 |
{ |
| 21 |
__int128 t = *x; |
| 22 |
asm("":"+x"(t)); |
| 23 |
return (v4si)t; |
| 24 |
} |