Debian Codegraph @

gcc/testsuite/gcc.target/i386/avx512bf16vl-cvtness2sbh-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512bf16 -mavx512vl -O2" } */
3 /* { dg-final { scan-assembler-times "vcvtneps2bf16x\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
4
5 #include <immintrin.h>
6
7 volatile __bfloat16 res;
8 volatile float x1;
9
10 void extern
11 avx512bf16_test (void)
12 {
13 res = _mm_cvtness_sbh (x1);
14 }