1 /* { dg-do compile } */
2 /* { dg-options "-mavx512f -O2" } */
3 /* { dg-final { scan-assembler-times "vpmovsdb\[ \\t\]+\[^\n\]*" 4 } } */
4 /* { dg-final { scan-assembler-times "vpmovsdb\[ \\t\]+\[^\n\]*%xmm\[0-9\]\[^\{\]" 1 } } */
5 /* { dg-final { scan-assembler-times "vpmovsdb\[ \\t\]+\[^\n\]*%xmm\[0-9\]\{%k\[1-7\]\}\[^\{\]" 1 } } */
6 /* { dg-final { scan-assembler-times "vpmovsdb\[ \\t\]+\[^\n\]*%xmm\[0-9\]\{%k\[1-7\]\}\{z\}" 1 } } */
17 res
= _mm512_cvtsepi32_epi8 (s
);
18 res
= _mm512_mask_cvtsepi32_epi8 (res
, m
, s
);
19 res
= _mm512_maskz_cvtsepi32_epi8 (m
, s
);
20 _mm512_mask_cvtsepi32_storeu_epi8 ((void *) &res
, m
, s
);