1/* { dg-do compile } */ 2/* { dg-options "-mavx512vl -mavx512cd -O2" } */ 3/* { dg-final { scan-assembler-times "vpbroadcastmb2q\[ \\t\]+\[^\{\n\]*k\[1-7\]\[^\n\]*%xmm\[0-7\]+(?:\n|\[ \\t\]+#)" 1 } } */ 4/* { dg-final { scan-assembler-times "vpbroadcastmb2q\[ \\t\]+\[^\{\n\]*k\[1-7\]\[^\n\]*%ymm\[0-7\]+(?:\n|\[ \\t\]+#)" 1 } } */ 5 6#include <immintrin.h> 7 8volatile __m128i x128; 9volatile __m256i x256; 10volatile __mmask8 m8; 11 12void extern 13avx512vl_test (void) 14{ 15 x128 = _mm_broadcastmb_epi64 (m8); 16 x256 = _mm256_broadcastmb_epi64 (m8); 17} 18