Debian Codegraph @

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

raw
1 /* { dg-do compile { target { ! ia32 } } } */
2 /* { dg-options "-mavx512fp16 -O2" } */
3 /* { dg-final { scan-assembler-times "vcvtsh2si\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%rax" 1 } } */
4 /* { dg-final { scan-assembler-times "vcvtsh2si\[ \\t\]+\{rz-sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%rax" 1 } } */
5
6
7 #include <immintrin.h>
8
9 volatile __m128h x1;
10 volatile long long res2;
11
12 void extern
13 avx512f_test (void)
14 {
15 res2 = _mm_cvtsh_i64 (x1);
16 res2 = _mm_cvt_roundsh_i64 (x1, 11);
17 }