1 /* { dg-do compile } */
2 /* { dg-require-ifunc "" } */
3 /* { dg-options "-O3" } */
4 /* { dg-final { scan-assembler "vpshufb" } } */
5 /* { dg-final { scan-assembler "punpcklbw" } } */
7 __attribute__((target_clones("arch=core-avx2","arch=slm","default")))
9 foo(char *in
, char *out
, int size
)
12 for(i
= 0; i
< size
; i
++)
15 out
[2 * i
+ 1] = in
[i
];