From 998b6b8d1fc9aba93a0e72d509ff11d03b031cd0 Mon Sep 17 00:00:00 2001 From: Yang Hau Date: Tue, 9 Jul 2024 13:58:17 +0800 Subject: [PATCH] wip:wq --- tests/common.h | 1 + tests/impl.cpp | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/tests/common.h b/tests/common.h index 40bf93b7..7978d7b3 100644 --- a/tests/common.h +++ b/tests/common.h @@ -65,6 +65,7 @@ enum result_t { extern int32_t NaN; extern int64_t NaN64; +#include static inline double sse2neon_tool_recast_f64(uint64_t u64) { double f64; diff --git a/tests/impl.cpp b/tests/impl.cpp index bf2a4081..839a93d3 100644 --- a/tests/impl.cpp +++ b/tests/impl.cpp @@ -3846,7 +3846,7 @@ result_t test_mm_cmpeq_sd(const SSE2NEONTestImpl &impl, uint32_t iter) const double *_a = (const double *) impl.mTestFloatPointer1; const double *_b = (const double *) impl.mTestFloatPointer2; double d0 = (_a[0] == _b[0]) ? ALL_BIT_1_64 : 0; - double d1 = sse2neon_tool_recast_f64(_a[1]); + double d1 = _a[1]; __m128d a = load_m128d(_a); __m128d b = load_m128d(_b); @@ -3876,7 +3876,7 @@ result_t test_mm_cmpge_sd(const SSE2NEONTestImpl &impl, uint32_t iter) double *_b = (double *) impl.mTestFloatPointer2; double d0 = (_a[0] >= _b[0]) ? ALL_BIT_1_64 : 0; - double d1 = sse2neon_tool_recast_f64(_a[1]); + double d1 = _a[1]; __m128d a = load_m128d(_a); __m128d b = load_m128d(_b); @@ -3973,7 +3973,7 @@ result_t test_mm_cmpgt_sd(const SSE2NEONTestImpl &impl, uint32_t iter) double *_b = (double *) impl.mTestFloatPointer2; double d0 = (_a[0] > _b[0]) ? ALL_BIT_1_64 : 0; - double d1 = sse2neon_tool_recast_f64(_a[1]); + double d1 = _a[1]; __m128d a = load_m128d(_a); __m128d b = load_m128d(_b); @@ -4003,7 +4003,7 @@ result_t test_mm_cmple_sd(const SSE2NEONTestImpl &impl, uint32_t iter) double *_b = (double *) impl.mTestFloatPointer2; double d0 = (_a[0] <= _b[0]) ? ALL_BIT_1_64 : 0; - double d1 = sse2neon_tool_recast_f64(_a[1]); + double d1 = _a[1]; __m128d a = load_m128d(_a); __m128d b = load_m128d(_b); @@ -4099,7 +4099,7 @@ result_t test_mm_cmplt_sd(const SSE2NEONTestImpl &impl, uint32_t iter) double *_b = (double *) impl.mTestFloatPointer2; double d0 = (_a[0] < _b[0]) ? ALL_BIT_1_64 : 0; - double d1 = sse2neon_tool_recast_f64(_a[1]); + double d1 = _a[1]; __m128d a = load_m128d(_a); __m128d b = load_m128d(_b); @@ -4129,7 +4129,7 @@ result_t test_mm_cmpneq_sd(const SSE2NEONTestImpl &impl, uint32_t iter) double *_b = (double *) impl.mTestFloatPointer2; double d0 = (_a[0] != _b[0]) ? ALL_BIT_1_64 : UINT64_C(0); - double d1 = sse2neon_tool_recast_f64(_a[1]); + double d1 = _a[1]; __m128d a = load_m128d(_a); __m128d b = load_m128d(_b); @@ -4159,7 +4159,7 @@ result_t test_mm_cmpnge_sd(const SSE2NEONTestImpl &impl, uint32_t iter) double *_b = (double *) impl.mTestFloatPointer2; double d0 = !(_a[0] >= _b[0]) ? ALL_BIT_1_64 : 0; - double d1 = sse2neon_tool_recast_f64(_a[1]); + double d1 = _a[1]; __m128d a = load_m128d(_a); __m128d b = load_m128d(_b); @@ -4189,7 +4189,7 @@ result_t test_mm_cmpngt_sd(const SSE2NEONTestImpl &impl, uint32_t iter) double *_b = (double *) impl.mTestFloatPointer2; double d0 = !(_a[0] > _b[0]) ? ALL_BIT_1_64 : 0; - double d1 = sse2neon_tool_recast_f64(_a[1]); + double d1 = _a[1]; __m128d a = load_m128d(_a); __m128d b = load_m128d(_b); @@ -4219,7 +4219,7 @@ result_t test_mm_cmpnle_sd(const SSE2NEONTestImpl &impl, uint32_t iter) double *_b = (double *) impl.mTestFloatPointer2; double d0 = !(_a[0] <= _b[0]) ? ALL_BIT_1_64 : 0; - double d1 = sse2neon_tool_recast_f64(_a[1]); + double d1 = _a[1]; __m128d a = load_m128d(_a); __m128d b = load_m128d(_b); @@ -4249,7 +4249,7 @@ result_t test_mm_cmpnlt_sd(const SSE2NEONTestImpl &impl, uint32_t iter) double *_b = (double *) impl.mTestFloatPointer2; double d0 = !(_a[0] < _b[0]) ? ALL_BIT_1_64 : 0; - double d1 = sse2neon_tool_recast_f64(_a[1]); + double d1 = _a[1]; __m128d a = load_m128d(_a); __m128d b = load_m128d(_b);