blob: f1f691e88d8e529905ab0f0d88f9dc147e827d0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* { dg-do compile { target { ! { ia32 } } } } */
/* { dg-options "-mavx512f -O2" } */
/* { dg-final { scan-assembler-times "vcvtusi2ss\[ \\t\]+\[^\n\]*%xmm\[0-9\]" 2 } } */
/* { dg-final { scan-assembler-times "vcvtusi2ss\[ \\t\]+\[^\n\]*\{rz-sae\}\[^\n\]*%xmm\[0-9\]" 1 } } */
#include <immintrin.h>
volatile __m128 x;
volatile unsigned long long n;
void extern
avx512f_test (void)
{
x = _mm_cvtu64_ss (x, n);
x = _mm_cvt_roundu64_ss (x, n, _MM_FROUND_TO_ZERO);
}
|