Skip to content

Commit

Permalink
wip:wq
Browse files Browse the repository at this point in the history
  • Loading branch information
howjmay committed Jul 9, 2024
1 parent dd86146 commit 998b6b8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions tests/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ enum result_t {
extern int32_t NaN;
extern int64_t NaN64;

#include <string.h>
static inline double sse2neon_tool_recast_f64(uint64_t u64)
{
double f64;
Expand Down
20 changes: 10 additions & 10 deletions tests/impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 998b6b8

Please sign in to comment.