(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
i386/
avx512fp16-9a.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -mavx512fp16" } */
       3  
       4  #include <immintrin.h>
       5  
       6  __m128h
       7  __attribute__ ((noinline, noclone))
       8  set1_128 (_Float16 x)
       9  {
      10    return _mm_set1_ph (x);
      11  }
      12  
      13  __m256h
      14  __attribute__ ((noinline, noclone))
      15  set1_256 (_Float16 x)
      16  {
      17    return _mm256_set1_ph (x);
      18  }
      19  
      20  __m512h
      21  __attribute__ ((noinline, noclone))
      22  set1_512 (_Float16 x)
      23  {
      24    return _mm512_set1_ph (x);
      25  }
      26  
      27  /* { dg-final { scan-assembler-times "vpbroadcastw\[ \t]\+\[^\n\r]*\[xyz\]mm0" 3 } } */