1/* { dg-do compile } */
2/* { dg-options "-mavx512dq -mavx512vl -O2" } */
3/* { dg-final { scan-assembler-times "vpmovm2d\[ \\t\]+\[^\{\n\]*%k\[1-7\]\[^\n\]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
4/* { dg-final { scan-assembler-times "vpmovm2d\[ \\t\]+\[^\{\n\]*%k\[1-7\]\[^\n\]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
5/* { dg-final { scan-assembler-times "vpmovm2d\[ \\t\]+\[^\{\n\]*%k\[1-7\]\[^\n\]*%zmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
6
7#include <immintrin.h>
8
9volatile __m512i x512;
10volatile __m256i x256;
11volatile __m128i x128;
12volatile __mmask16 m16;
13volatile __mmask8 m8;
14
15void extern
16avx512dq_test (void)
17{
18  x128 = _mm_movm_epi32 (m8);
19  x256 = _mm256_movm_epi32 (m8);
20  x512 = _mm512_movm_epi32 (m16);
21}
22