Debian Codegraph @

gcc/testsuite/gcc.target/i386/avx512fp16-vcvtsh2si-1a.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512fp16 -O2" } */
3 /* { dg-final { scan-assembler-times "vcvtsh2si\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%e\[ad]x" 1 } } */
4 /* { dg-final { scan-assembler-times "vcvtsh2si\[ \\t\]+\{rn-sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%e\[ad]x" 1 } } */
5
6
7 #include <immintrin.h>
8
9 volatile __m128h x1;
10 volatile int res1;
11
12 void extern
13 avx512f_test (void)
14 {
15 res1 = _mm_cvtsh_i32 (x1);
16 res1 = _mm_cvt_roundsh_i32 (x1, 8);
17 }