blob: e813a24a0a198c24c2f305bef97918bbffadb719 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* { dg-do compile } */
/* { dg-options "-O2 -mavx512f" } */
/* { dg-final { scan-assembler-times "vcvttsd2si\[ \\t\]+\[^\n\]*%xmm\[0-9\]" 2 } } */
/* { dg-final { scan-assembler-times "vcvttsd2si\[ \\t\]+\[^\n\]*\{sae\}\[^\n\]*%xmm\[0-9\]" 1 } } */
#include <immintrin.h>
volatile __m128d x;
volatile y;
void extern
avx512f_test (void)
{
y = _mm_cvttsd_i32 (x);
y = _mm_cvtt_roundsd_i32 (x, _MM_FROUND_NO_EXC);
}
|