(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
i386/
avx512fp16vl-vcvttph2w-1a.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-mavx512fp16 -mavx512vl -O2" } */
       3  /* { dg-final { scan-assembler-times "vcvttph2w\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
       4  /* { dg-final { scan-assembler-times "vcvttph2w\[ \\t\]+%ymm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+\{%k\[0-9\]\}(?:\n|\[ \\t\]+#)" 1 } } */
       5  /* { dg-final { scan-assembler-times "vcvttph2w\[ \\t\]+%ymm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+\{%k\[0-9\]\}\{z\}\[^\n\r]*(?:\n|\[ \\t\]+#)" 1 } } */
       6  /* { dg-final { scan-assembler-times "vcvttph2w\[ \\t\]+%xmm\[0-9\]+\[^\n\r]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
       7  /* { dg-final { scan-assembler-times "vcvttph2w\[ \\t\]+%xmm\[0-9\]+\[^\n\r]*%xmm\[0-9\]+\{%k\[0-9\]\}(?:\n|\[ \\t\]+#)" 1 } } */
       8  /* { dg-final { scan-assembler-times "vcvttph2w\[ \\t\]+%xmm\[0-9\]+\[^\n\r]*%xmm\[0-9\]+\{%k\[0-9\]\}\{z\}\[^\n\r]*(?:\n|\[ \\t\]+#)" 1 } } */
       9  
      10  #include <immintrin.h>
      11  
      12  volatile __m256i res1;
      13  volatile __m128i res2;
      14  volatile __m256h x3;
      15  volatile __m128h x4;
      16  volatile __mmask16 m16;
      17  volatile __mmask8 m8;
      18  
      19  void extern
      20  avx512f_test (void)
      21  {
      22    res1 = _mm256_cvttph_epi16 (x3);
      23    res1 = _mm256_mask_cvttph_epi16 (res1, m16, x3);
      24    res1 = _mm256_maskz_cvttph_epi16 (m16, x3);
      25  
      26    res2 = _mm_cvttph_epi16 (x4);
      27    res2 = _mm_mask_cvttph_epi16 (res2, m8, x4);
      28    res2 = _mm_maskz_cvttph_epi16 (m8, x4);
      29  }