1 /* { dg-do compile { target { ! ia32 } } } */
2 /* { dg-options "-O2 -mavx512vl -mavx512bw" } */
4 typedef char v16qi
__attribute__((vector_size (16)));
5 typedef short v8hi
__attribute__((vector_size (16)));
10 register v16qi c
__asm ("xmm16") = a
;
11 asm volatile ("" : "+v" (c
));
15 asm volatile ("" : "+v" (c
));
19 /* { dg-final { scan-assembler "vpinsrb\[^\n\r]*xmm16" } } */
24 register v8hi c
__asm ("xmm16") = a
;
25 asm volatile ("" : "+v" (c
));
27 ((short *) &d
)[3] = b
;
29 asm volatile ("" : "+v" (c
));
33 /* { dg-final { scan-assembler "vpinsrw\[^\n\r]*xmm16" } } */