/* { dg-do compile } */ | |
/* { dg-options "-mavx512f -O2" } */ | |
/* { dg-final { scan-assembler-times "vcvtusi2ss\[ \\t\]+\[^\n\]*%xmm\[0-9\]" 2 } } */ | |
/* { dg-final { scan-assembler-times "vcvtusi2ss\[ \\t\]+\[^\n\]*\{rn-sae\}\[^\n\]*%xmm\[0-9\]" 1 } } */ | |
#include <immintrin.h> | |
volatile __m128 x; | |
volatile unsigned n; | |
void extern | |
avx512f_test (void) | |
{ | |
x = _mm_cvtu32_ss (x, n); | |
x = _mm_cvt_roundu32_ss (x, n, _MM_FROUND_TO_NEAREST_INT | _MM_FROUND_NO_EXC); | |
} |