1 /* { dg-do compile { target { ! ia32 } } } */
2 /* { dg-options "-O2 -mavx512vl -mavx512dq" } */
4 typedef int v4si
__attribute__((vector_size (16)));
5 typedef long long v2di
__attribute__((vector_size (16)));
10 register v4si c
__asm ("xmm16") = a
;
11 asm volatile ("" : "+v" (c
));
15 asm volatile ("" : "+v" (c
));
19 /* { dg-final { scan-assembler "vpinsrd\[^\n\r]*xmm16" } } */
22 f2 (v2di a
, long long b
)
24 register v2di c
__asm ("xmm16") = a
;
25 asm volatile ("" : "+v" (c
));
27 ((long long *) &d
)[1] = b
;
29 asm volatile ("" : "+v" (c
));
33 /* { dg-final { scan-assembler "vpinsrq\[^\n\r]*xmm16" } } */