1 /* { dg-do compile { target { ! ia32 } } } */
2 /* { dg-options "-O2 -mavx512vl -mavx512dq" } */
9 register __m128i a
__asm ("xmm16");
12 asm volatile ("" : "+v" (a
));
13 c
= _mm256_broadcastsi128_si256 (a
);
14 register __m256i b
__asm ("xmm16");
16 asm volatile ("" : "+v" (b
));
19 /* { dg-final { scan-assembler "vinserti64x2\[^\n\r]*(xmm16\[^\n\r]*ymm16\[^\n\r]*ymm16|ymm16\[^\n\r]*ymm16\[^\n\r]*xmm16)" } } */
24 register __m256i a
__asm ("xmm16");
25 a
= _mm256_broadcastsi128_si256 (*x
);
26 asm volatile ("" : "+v" (a
));
29 /* { dg-final { scan-assembler "vbroadcasti64x2\[^\n\r]*ymm16" } } */
34 register __m256 a
__asm ("xmm16");
35 a
= _mm256_broadcast_ps (x
);
36 asm volatile ("" : "+v" (a
));
39 /* { dg-final { scan-assembler "vbroadcastf32x4\[^\n\r]*ymm16" } } */
44 register __m256d a
__asm ("xmm16");
45 a
= _mm256_broadcast_pd (x
);
46 asm volatile ("" : "+v" (a
));
49 /* { dg-final { scan-assembler "vbroadcastf64x2\[^\n\r]*ymm16" } } */