extern __inline int
__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm_cvtts_sd_epi32 (__m128d __A)
+_mm_cvtts_sd_i32 (__m128d __A)
+{
+ return (int) __builtin_ia32_cvttsd2sis32_round ((__v2df) __A,
+ _MM_FROUND_CUR_DIRECTION);
+}
+
+extern __inline int
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm_cvtts_sd_si32 (__m128d __A)
{
return (int) __builtin_ia32_cvttsd2sis32_round ((__v2df) __A,
_MM_FROUND_CUR_DIRECTION);
extern __inline unsigned int
__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm_cvtts_sd_epu32 (__m128d __A)
+_mm_cvtts_sd_u32 (__m128d __A)
{
return (unsigned int) __builtin_ia32_cvttsd2usis32_round ((__v2df) __A,
_MM_FROUND_CUR_DIRECTION);
extern __inline int
__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm_cvtts_ss_epi32 (__m128 __A)
+_mm_cvtts_ss_i32 (__m128 __A)
+{
+ return (int) __builtin_ia32_cvttss2sis32_round ((__v4sf) __A,
+ _MM_FROUND_CUR_DIRECTION);
+}
+
+extern __inline int
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm_cvtts_ss_si32 (__m128 __A)
{
return (int) __builtin_ia32_cvttss2sis32_round ((__v4sf) __A,
_MM_FROUND_CUR_DIRECTION);
extern __inline unsigned int
__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm_cvtts_ss_epu32 (__m128 __A)
+_mm_cvtts_ss_u32 (__m128 __A)
{
return (unsigned int) __builtin_ia32_cvttss2usis32_round ((__v4sf) __A,
_MM_FROUND_CUR_DIRECTION);
#ifdef __OPTIMIZE__
extern __inline int
__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm_cvtts_roundsd_epi32 (__m128d __A, const int __R)
+_mm_cvtts_roundsd_i32 (__m128d __A, const int __R)
+{
+ return (int) __builtin_ia32_cvttsd2sis32_round ((__v2df) __A,
+ __R);
+}
+
+extern __inline int
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm_cvtts_roundsd_si32 (__m128d __A, const int __R)
{
return (int) __builtin_ia32_cvttsd2sis32_round ((__v2df) __A,
__R);
extern __inline unsigned int
__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm_cvtts_roundsd_epu32 (__m128d __A, const int __R)
+_mm_cvtts_roundsd_u32 (__m128d __A, const int __R)
{
return (unsigned int) __builtin_ia32_cvttsd2usis32_round ((__v2df) __A,
__R);
extern __inline int
__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm_cvtts_roundss_epi32 (__m128 __A, const int __R)
+_mm_cvtts_roundss_i32 (__m128 __A, const int __R)
+{
+ return (int) __builtin_ia32_cvttss2sis32_round ((__v4sf) __A,
+ __R);
+}
+
+extern __inline int
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm_cvtts_roundss_si32 (__m128 __A, const int __R)
{
return (int) __builtin_ia32_cvttss2sis32_round ((__v4sf) __A,
__R);
extern __inline unsigned int
__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm_cvtts_roundss_epu32 (__m128 __A, const int __R)
+_mm_cvtts_roundss_u32 (__m128 __A, const int __R)
{
return (unsigned int) __builtin_ia32_cvttss2usis32_round ((__v4sf) __A,
__R);
}
#else
-#define _mm_cvtts_roundsd_epi32(A, R) \
+#define _mm_cvtts_roundsd_i32(A, R) \
+ ((int) __builtin_ia32_cvttsd2sis32_round ((__v2df) (A), \
+ (R)))
+
+#define _mm_cvtts_roundsd_si32(A, R) \
((int) __builtin_ia32_cvttsd2sis32_round ((__v2df) (A), \
(R)))
-#define _mm_cvtts_roundsd_epu32(A, R) \
+#define _mm_cvtts_roundsd_u32(A, R) \
((unsigned int) __builtin_ia32_cvttsd2usis32_round ((__v2df) (A), \
(R)))
-#define _mm_cvtts_roundss_epi32(A, R) \
+#define _mm_cvtts_roundss_i32(A, R) \
+ ((int) __builtin_ia32_cvttss2sis32_round ((__v4sf) (A), \
+ (R)))
+
+#define _mm_cvtts_roundss_si32(A, R) \
((int) __builtin_ia32_cvttss2sis32_round ((__v4sf) (A), \
(R)))
-#define _mm_cvtts_roundss_epu32(A, R) \
+#define _mm_cvtts_roundss_u32(A, R) \
((unsigned int) __builtin_ia32_cvttss2usis32_round ((__v4sf) (A), \
(R)))
#endif
#ifdef __x86_64__
extern __inline long long
__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm_cvtts_sd_epi64 (__m128d __A)
+_mm_cvtts_sd_i64 (__m128d __A)
+{
+ return (long long) __builtin_ia32_cvttsd2sis64_round ((__v2df) __A,
+ _MM_FROUND_CUR_DIRECTION);
+}
+
+extern __inline long long
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm_cvtts_sd_si64 (__m128d __A)
{
return (long long) __builtin_ia32_cvttsd2sis64_round ((__v2df) __A,
_MM_FROUND_CUR_DIRECTION);
extern __inline unsigned long long
__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm_cvtts_sd_epu64 (__m128d __A)
+_mm_cvtts_sd_u64 (__m128d __A)
{
return (unsigned long long) __builtin_ia32_cvttsd2usis64_round ((__v2df) __A,
_MM_FROUND_CUR_DIRECTION);
extern __inline long long
__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm_cvtts_ss_epi64 (__m128 __A)
+_mm_cvtts_ss_i64 (__m128 __A)
{
return (long long) __builtin_ia32_cvttss2sis64_round ((__v4sf) __A,
_MM_FROUND_CUR_DIRECTION);
}
+extern __inline long long
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm_cvtts_ss_si64 (__m128 __A)
+{
+ return (long long) __builtin_ia32_cvttss2sis64_round ((__v4sf) __A,
+ _MM_FROUND_CUR_DIRECTION);
+}
extern __inline unsigned long long
__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm_cvtts_ss_epu64 (__m128 __A)
+_mm_cvtts_ss_u64 (__m128 __A)
{
return (unsigned long long) __builtin_ia32_cvttss2usis64_round ((__v4sf) __A,
_MM_FROUND_CUR_DIRECTION);
#ifdef __OPTIMIZE__
extern __inline long long
__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm_cvtts_roundsd_epi64 (__m128d __A, const int __R)
+_mm_cvtts_roundsd_i64 (__m128d __A, const int __R)
+{
+ return (long long) __builtin_ia32_cvttsd2sis64_round ((__v2df) __A,
+ __R);
+}
+
+extern __inline long long
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm_cvtts_roundsd_si64 (__m128d __A, const int __R)
{
return (long long) __builtin_ia32_cvttsd2sis64_round ((__v2df) __A,
__R);
extern __inline unsigned long long
__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm_cvtts_roundsd_epu64 (__m128d __A, const int __R)
+_mm_cvtts_roundsd_u64 (__m128d __A, const int __R)
{
return (unsigned long long) __builtin_ia32_cvttsd2usis64_round ((__v2df) __A,
__R);
extern __inline long long
__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm_cvtts_roundss_epi64 (__m128 __A, const int __R)
+_mm_cvtts_roundss_i64 (__m128 __A, const int __R)
+{
+ return (long long) __builtin_ia32_cvttss2sis64_round ((__v4sf) __A,
+ __R);
+}
+
+extern __inline long long
+__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
+_mm_cvtts_roundss_si64 (__m128 __A, const int __R)
{
return (long long) __builtin_ia32_cvttss2sis64_round ((__v4sf) __A,
__R);
extern __inline unsigned long long
__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
-_mm_cvtts_roundss_epu64 (__m128 __A, const int __R)
+_mm_cvtts_roundss_u64 (__m128 __A, const int __R)
{
return (unsigned long long) __builtin_ia32_cvttss2usis64_round ((__v4sf) __A,
__R);
}
#else
-#define _mm_cvtts_roundsd_epi64(A, R) \
+#define _mm_cvtts_roundsd_i64(A, R) \
+ ((long long) __builtin_ia32_cvttsd2sis64_round ((__v2df) (A), \
+ (R)))
+
+#define _mm_cvtts_roundsd_si64(A, R) \
((long long) __builtin_ia32_cvttsd2sis64_round ((__v2df) (A), \
(R)))
-#define _mm_cvtts_roundsd_epu64(A, R) \
+#define _mm_cvtts_roundsd_u64(A, R) \
((unsigned long long) __builtin_ia32_cvttsd2usis64_round ((__v2df) (A), \
(R)))
-#define _mm_cvtts_roundss_epi64(A, R) \
+#define _mm_cvtts_roundss_i64(A, R) \
+ ((long long) __builtin_ia32_cvttss2sis64_round ((__v4sf) (A), \
+ (R)))
+
+#define _mm_cvtts_roundss_si64(A, R) \
((long long) __builtin_ia32_cvttss2sis64_round ((__v4sf) (A), \
(R)))
-#define _mm_cvtts_roundss_epu64(A, R) \
+#define _mm_cvtts_roundss_u64(A, R) \
((unsigned long long) __builtin_ia32_cvttss2usis64_round ((__v4sf) (A), \
(R)))
#endif
/* { dg-final { scan-assembler-times "vcvttps2uqqs\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
/* { dg-final { scan-assembler-times "vcvttps2uqqs\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%xmm\[0-9\]+\{%k\[0-9\]\}(?:\n|\[ \\t\]+#)" 1 } } */
/* { dg-final { scan-assembler-times "vcvttps2uqqs\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%xmm\[0-9\]+\{%k\[0-9\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
-/* { dg-final { scan-assembler-times "vcvttsd2sis\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%e.x+(?:\n|\[ \\t\]+#)" 1 } } */
+/* { dg-final { scan-assembler-times "vcvttsd2sis\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%e.x+(?:\n|\[ \\t\]+#)" 2 } } */
/* { dg-final { scan-assembler-times "vcvttsd2usis\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%e.x+(?:\n|\[ \\t\]+#)" 1 } } */
-/* { dg-final { scan-assembler-times "vcvttss2sis\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%e.x+(?:\n|\[ \\t\]+#)" 1 } } */
+/* { dg-final { scan-assembler-times "vcvttss2sis\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%e.x+(?:\n|\[ \\t\]+#)" 2 } } */
/* { dg-final { scan-assembler-times "vcvttss2usis\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%e.x+(?:\n|\[ \\t\]+#)" 1 } } */
-/* { dg-final { scan-assembler-times "vcvttsd2sis\[ \\t\]+\{sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%e.x+(?:\n|\[ \\t\]+#)" 1 } } */
+/* { dg-final { scan-assembler-times "vcvttsd2sis\[ \\t\]+\{sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%e.x+(?:\n|\[ \\t\]+#)" 2 } } */
/* { dg-final { scan-assembler-times "vcvttsd2usis\[ \\t\]+\{sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%e.x+(?:\n|\[ \\t\]+#)" 1 } } */
-/* { dg-final { scan-assembler-times "vcvttss2sis\[ \\t\]+\{sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%e.x+(?:\n|\[ \\t\]+#)" 1 } } */
+/* { dg-final { scan-assembler-times "vcvttss2sis\[ \\t\]+\{sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%e.x+(?:\n|\[ \\t\]+#)" 2 } } */
/* { dg-final { scan-assembler-times "vcvttss2usis\[ \\t\]+\{sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%e.x+(?:\n|\[ \\t\]+#)" 1 } } */
-/* { dg-final { scan-assembler-times "vcvttsd2sis\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%r.x+(?:\n|\[ \\t\]+#)" 1 { target { ! ia32 } } } } */
+/* { dg-final { scan-assembler-times "vcvttsd2sis\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%r.x+(?:\n|\[ \\t\]+#)" 2 { target { ! ia32 } } } } */
/* { dg-final { scan-assembler-times "vcvttsd2usis\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%r.x+(?:\n|\[ \\t\]+#)" 1 { target { ! ia32 } } } } */
-/* { dg-final { scan-assembler-times "vcvttss2sis\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%r.x+(?:\n|\[ \\t\]+#)" 1 { target { ! ia32 } } } } */
+/* { dg-final { scan-assembler-times "vcvttss2sis\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%r.x+(?:\n|\[ \\t\]+#)" 2 { target { ! ia32 } } } } */
/* { dg-final { scan-assembler-times "vcvttss2usis\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%r.x+(?:\n|\[ \\t\]+#)" 1 { target { ! ia32 } } } } */
-/* { dg-final { scan-assembler-times "vcvttsd2sis\[ \\t\]+\{sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%r.x+(?:\n|\[ \\t\]+#)" 1 { target { ! ia32 } } } } */
+/* { dg-final { scan-assembler-times "vcvttsd2sis\[ \\t\]+\{sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%r.x+(?:\n|\[ \\t\]+#)" 2 { target { ! ia32 } } } } */
/* { dg-final { scan-assembler-times "vcvttsd2usis\[ \\t\]+\{sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%r.x+(?:\n|\[ \\t\]+#)" 1 { target { ! ia32 } } } } */
-/* { dg-final { scan-assembler-times "vcvttss2sis\[ \\t\]+\{sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%r.x+(?:\n|\[ \\t\]+#)" 1 { target { ! ia32 } } } } */
+/* { dg-final { scan-assembler-times "vcvttss2sis\[ \\t\]+\{sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%r.x+(?:\n|\[ \\t\]+#)" 2 { target { ! ia32 } } } } */
/* { dg-final { scan-assembler-times "vcvttss2usis\[ \\t\]+\{sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%r.x+(?:\n|\[ \\t\]+#)" 1 { target { ! ia32 } } } } */
#include <immintrin.h>
hxi = _mm_mask_cvtts_ps_epu64 (hxi, m8, hx);
hxi = _mm_maskz_cvtts_ps_epu64 (m8, hx);
- i = _mm_cvtts_sd_epi32 (hxd);
- ui = _mm_cvtts_sd_epu32 (hxd);
- i = _mm_cvtts_ss_epi32 (hx);
- ui = _mm_cvtts_ss_epu32 (hx);
- i = _mm_cvtts_roundsd_epi32 (hxd, 8);
- ui = _mm_cvtts_roundsd_epu32 (hxd, 8);
- i = _mm_cvtts_roundss_epi32 (hx, 8);
- ui = _mm_cvtts_roundss_epu32 (hx, 8);
+ i = _mm_cvtts_sd_i32 (hxd);
+ i = _mm_cvtts_sd_si32 (hxd);
+ ui = _mm_cvtts_sd_u32 (hxd);
+ i = _mm_cvtts_ss_i32 (hx);
+ i = _mm_cvtts_ss_si32 (hx);
+ ui = _mm_cvtts_ss_u32 (hx);
+ i = _mm_cvtts_roundsd_i32 (hxd, 8);
+ i = _mm_cvtts_roundsd_si32 (hxd, 8);
+ ui = _mm_cvtts_roundsd_u32 (hxd, 8);
+ i = _mm_cvtts_roundss_i32 (hx, 8);
+ i = _mm_cvtts_roundss_si32 (hx, 8);
+ ui = _mm_cvtts_roundss_u32 (hx, 8);
#ifdef __x86_64__
- ll = _mm_cvtts_sd_epi64 (hxd);
- ull = _mm_cvtts_sd_epu64 (hxd);
- ll = _mm_cvtts_ss_epi64 (hx);
- ull = _mm_cvtts_ss_epu64 (hx);
- ll = _mm_cvtts_roundsd_epi64 (hxd, 8);
- ull = _mm_cvtts_roundsd_epu64 (hxd, 8);
- ll = _mm_cvtts_roundss_epi64 (hx, 8);
- ull = _mm_cvtts_roundss_epu64 (hx, 8);
+ ll = _mm_cvtts_sd_i64 (hxd);
+ ll = _mm_cvtts_sd_si64 (hxd);
+ ull = _mm_cvtts_sd_u64 (hxd);
+ ll = _mm_cvtts_ss_i64 (hx);
+ ll = _mm_cvtts_ss_si64 (hx);
+ ull = _mm_cvtts_ss_u64 (hx);
+ ll = _mm_cvtts_roundsd_i64 (hxd, 8);
+ ll = _mm_cvtts_roundsd_si64 (hxd, 8);
+ ull = _mm_cvtts_roundsd_u64 (hxd, 8);
+ ll = _mm_cvtts_roundss_i64 (hx, 8);
+ ll = _mm_cvtts_roundss_si64 (hx, 8);
+ ull = _mm_cvtts_roundss_u64 (hx, 8);
#endif
}
s.a[0] = 2.46;
- res1 = _mm_cvtts_roundsd_epi32 (s.x, 8);
+ res1 = _mm_cvtts_roundsd_i32 (s.x, 8);
if (s.a[0] > INT_MAX)
res1_ref = INT_MAX;
if (res1 != res1_ref)
abort();
- res1 = _mm_cvtts_sd_epi32 (s.x);
+ res1 = _mm_cvtts_sd_i32 (s.x);
if (s.a[0] > INT_MAX)
res1_ref = INT_MAX;
abort();
#ifdef __x86_64__
- res2 = _mm_cvtts_roundsd_epi64 (s.x, 8);
+ res2 = _mm_cvtts_roundsd_i64 (s.x, 8);
if (s.a[0] > LLONG_MAX)
res2_ref = LLONG_MAX;
if (res2 != res2_ref)
abort();
- res2 = _mm_cvtts_sd_epi64 (s.x);
+ res2 = _mm_cvtts_sd_i64 (s.x);
if (s.a[0] > LLONG_MAX)
res2_ref = LLONG_MAX;
s.a[0] = 2.46;
- res1 = _mm_cvtts_roundsd_epu32 (s.x, 8);
+ res1 = _mm_cvtts_roundsd_u32 (s.x, 8);
if (s.a[0] > UINT_MAX)
res1_ref = UINT_MAX;
if (res1 != res1_ref)
abort();
- res1 = _mm_cvtts_sd_epu32 (s.x);
+ res1 = _mm_cvtts_sd_u32 (s.x);
if (s.a[0] > UINT_MAX)
res1_ref = UINT_MAX;
abort();
#ifdef __x86_64__
- res2 = _mm_cvtts_roundsd_epu64 (s.x, 8);
+ res2 = _mm_cvtts_roundsd_u64 (s.x, 8);
if (s.a[0] > ULONG_MAX)
res2_ref = ULONG_MAX;
if (res2 != res2_ref)
abort();
- res2 = _mm_cvtts_sd_epu64 (s.x);
+ res2 = _mm_cvtts_sd_u64 (s.x);
if (s.a[0] > ULONG_MAX)
res2_ref = ULONG_MAX;
s.a[0] = 2.46;
- res1 = _mm_cvtts_roundss_epi32 (s.x, 8);
+ res1 = _mm_cvtts_roundss_i32 (s.x, 8);
if (s.a[0] > INT_MAX)
res1_ref = INT_MAX;
if (res1 != res1_ref)
abort();
- res1 = _mm_cvtts_ss_epi32 (s.x);
+ res1 = _mm_cvtts_ss_i32 (s.x);
if (s.a[0] > INT_MAX)
res1_ref = INT_MAX;
abort();
#ifdef __x86_64__
- res2 = _mm_cvtts_roundss_epi64 (s.x, 8);
+ res2 = _mm_cvtts_roundss_i64 (s.x, 8);
if (s.a[0] > LLONG_MAX)
res2_ref = LLONG_MAX;
if (res2 != res2_ref)
abort();
- res2 = _mm_cvtts_ss_epi64 (s.x);
+ res2 = _mm_cvtts_ss_i64 (s.x);
if (s.a[0] > LLONG_MAX)
res2_ref = LLONG_MAX;
s.a[0] = 2.46;
- res1 = _mm_cvtts_roundss_epu32 (s.x, 8);
+ res1 = _mm_cvtts_roundss_u32 (s.x, 8);
if (s.a[0] > UINT_MAX)
res1_ref = UINT_MAX;
if (res1 != res1_ref)
abort();
- res1 = _mm_cvtts_ss_epu32 (s.x);
+ res1 = _mm_cvtts_ss_u32 (s.x);
if (s.a[0] > UINT_MAX)
res1_ref = UINT_MAX;
abort();
#ifdef __x86_64__
- res2 = _mm_cvtts_roundss_epu64 (s.x, 8);
+ res2 = _mm_cvtts_roundss_u64 (s.x, 8);
if (s.a[0] > ULONG_MAX)
res2_ref = ULONG_MAX;
if (res2 != res2_ref)
abort();
- res2 = _mm_cvtts_ss_epu64 (s.x);
+ res2 = _mm_cvtts_ss_u64 (s.x);
if (s.a[0] > ULONG_MAX)
res2_ref = ULONG_MAX;
test_1 (_mm512_cvtts_roundps_epu64, __m512i, __m256, 8)
test_2 (_mm512_maskz_cvtts_roundps_epu64, __m512i, __mmask8, __m256, 8)
test_3 (_mm512_mask_cvtts_roundps_epu64, __m512i, __m512i, __mmask8, __m256, 8)
-test_1 (_mm_cvtts_roundsd_epi32, int, __m128d, 8)
-test_1 (_mm_cvtts_roundsd_epu32, unsigned int, __m128d, 8)
-test_1 (_mm_cvtts_roundss_epi32, int, __m128, 8)
-test_1 (_mm_cvtts_roundss_epu32, unsigned int, __m128, 8)
+test_1 (_mm_cvtts_roundsd_i32, int, __m128d, 8)
+test_1 (_mm_cvtts_roundsd_si32, int, __m128d, 8)
+test_1 (_mm_cvtts_roundsd_u32, unsigned int, __m128d, 8)
+test_1 (_mm_cvtts_roundss_i32, int, __m128, 8)
+test_1 (_mm_cvtts_roundss_si32, int, __m128, 8)
+test_1 (_mm_cvtts_roundss_u32, unsigned int, __m128, 8)
#ifdef __x86_64__
-test_1 (_mm_cvtts_roundsd_epi64, long long, __m128d, 8)
-test_1 (_mm_cvtts_roundsd_epu64, unsigned long long, __m128d, 8)
-test_1 (_mm_cvtts_roundss_epi64, long long, __m128, 8)
-test_1 (_mm_cvtts_roundss_epu64, unsigned long long, __m128, 8)
+test_1 (_mm_cvtts_roundsd_i64, long long, __m128d, 8)
+test_1 (_mm_cvtts_roundsd_si64, long long, __m128d, 8)
+test_1 (_mm_cvtts_roundsd_u64, unsigned long long, __m128d, 8)
+test_1 (_mm_cvtts_roundss_i64, long long, __m128, 8)
+test_1 (_mm_cvtts_roundss_si64, long long, __m128, 8)
+test_1 (_mm_cvtts_roundss_u64, unsigned long long, __m128, 8)
#endif
/* avx10_2minmaxintrin.h */
test_1 (_mm512_cvtts_roundps_epu64, __m512i, __m256, 8)
test_2 (_mm512_maskz_cvtts_roundps_epu64, __m512i, __mmask8, __m256, 8)
test_3 (_mm512_mask_cvtts_roundps_epu64, __m512i, __m512i, __mmask8, __m256, 8)
-test_1 (_mm_cvtts_roundsd_epi32, int, __m128d, 8)
-test_1 (_mm_cvtts_roundsd_epu32, unsigned int, __m128d, 8)
-test_1 (_mm_cvtts_roundss_epi32, int, __m128, 8)
-test_1 (_mm_cvtts_roundss_epu32, unsigned int, __m128, 8)
+test_1 (_mm_cvtts_roundsd_i32, int, __m128d, 8)
+test_1 (_mm_cvtts_roundsd_si32, int, __m128d, 8)
+test_1 (_mm_cvtts_roundsd_u32, unsigned int, __m128d, 8)
+test_1 (_mm_cvtts_roundss_i32, int, __m128, 8)
+test_1 (_mm_cvtts_roundss_si32, int, __m128, 8)
+test_1 (_mm_cvtts_roundss_u32, unsigned int, __m128, 8)
#ifdef __x86_64__
-test_1 (_mm_cvtts_roundsd_epi64, long long, __m128d, 8)
-test_1 (_mm_cvtts_roundsd_epu64, unsigned long long, __m128d, 8)
-test_1 (_mm_cvtts_roundss_epi64, long long, __m128, 8)
-test_1 (_mm_cvtts_roundss_epu64, unsigned long long, __m128, 8)
+test_1 (_mm_cvtts_roundsd_i64, long long, __m128d, 8)
+test_1 (_mm_cvtts_roundsd_si64, long long, __m128d, 8)
+test_1 (_mm_cvtts_roundsd_u64, unsigned long long, __m128d, 8)
+test_1 (_mm_cvtts_roundss_i64, long long, __m128, 8)
+test_1 (_mm_cvtts_roundss_si64, long long, __m128, 8)
+test_1 (_mm_cvtts_roundss_u64, unsigned long long, __m128, 8)
#endif
/* avx10_2minmaxintrin.h */
unsigned long long
func1 (__m128 x)
{
- return _mm_cvtts_ss_epu32 (x);
+ return _mm_cvtts_ss_u32 (x);
}
/*
unsigned long long
func2 (__m128 x)
{
- return _mm_cvtts_roundss_epu32
+ return _mm_cvtts_roundss_u32
(x, _MM_FROUND_TO_NEAREST_INT | _MM_FROUND_NO_EXC);
}
unsigned long long
func3 (__m128 x)
{
- return (unsigned int) _mm_cvtts_ss_epi32 (x);
+ return (unsigned int) _mm_cvtts_ss_i32 (x);
}
/*
unsigned long long
func4 (__m128 x)
{
- return (unsigned int) _mm_cvtts_roundss_epi32
+ return (unsigned int) _mm_cvtts_roundss_i32
(x, _MM_FROUND_TO_NEAREST_INT | _MM_FROUND_NO_EXC);
}
unsigned long long
func5 (__m128d x)
{
- return _mm_cvtts_sd_epu32 (x);
+ return _mm_cvtts_sd_u32 (x);
}
/*
unsigned long long
func6 (__m128d x)
{
- return _mm_cvtts_roundsd_epu32
+ return _mm_cvtts_roundsd_u32
(x, _MM_FROUND_TO_NEAREST_INT | _MM_FROUND_NO_EXC);
}
unsigned long long
func7 (__m128d x)
{
- return (unsigned int) _mm_cvtts_sd_epi32 (x);
+ return (unsigned int) _mm_cvtts_sd_i32 (x);
}
/*
unsigned long long
func8 (__m128d x)
{
- return (unsigned int) _mm_cvtts_roundsd_epi32
+ return (unsigned int) _mm_cvtts_roundsd_i32
(x, _MM_FROUND_TO_NEAREST_INT | _MM_FROUND_NO_EXC);
}