1 /* { dg-do compile } */
2 /* { dg-options "-mavx512f -O2" } */
3 /* { dg-final { scan-assembler-times "vpmovqw\[ \\t\]+\[^\{\n\]*(?:\n|\[ \\t\]+#)" 1 } } */
4 /* { dg-final { scan-assembler-times "vpmovqw\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
5 /* { dg-final { scan-assembler-times "vpmovqw\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
6 /* { dg-final { scan-assembler-times "vpmovqw\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
17 res
= _mm512_cvtepi64_epi16 (s
);
18 res
= _mm512_mask_cvtepi64_epi16 (res
, m
, s
);
19 res
= _mm512_maskz_cvtepi64_epi16 (m
, s
);
20 _mm512_mask_cvtepi64_storeu_epi16 ((void *) &res
, m
, s
);