1/* { dg-do compile } */ 2/* { dg-options "-O2 -mavx512f" } */ 3/* { dg-final { scan-assembler-times "vcvtps2ph\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */ 4/* { dg-final { scan-assembler-times "vcvtps2ph\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */ 5/* { dg-final { scan-assembler-times "vcvtps2ph\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */ 6 7#include <immintrin.h> 8 9volatile __m512 x; 10volatile __m256i y; 11 12void extern 13avx512f_test (void) 14{ 15 y = _mm512_cvtps_ph (x, 0); 16 y = _mm512_maskz_cvtps_ph (4, x, 0); 17 y = _mm512_mask_cvtps_ph (y, 2, x, 0); 18} 19