1 /* { dg-do compile} */
2 /* { dg-options "-O2 -mavx512fp16 -mavx512vl" } */
3
4 #include <immintrin.h>
5
6 __m256h
7 __attribute__ ((noinline, noclone))
8 test_mm256_set1_pch (_Float16 _Complex A)
9 {
10 return _mm256_set1_pch(A);
11 }
12
13 __m128h
14 __attribute__ ((noinline, noclone))
15 test_mm_set1_pch (_Float16 _Complex A)
16 {
17 return _mm_set1_pch(A);
18 }
19
20 /* { dg-final { scan-assembler-times "vbroadcastss" 2 } } */