Skip to content

Commit

Permalink
pw
Browse files Browse the repository at this point in the history
  • Loading branch information
howjmay committed Jul 9, 2024
1 parent f77735d commit 923080b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions tests/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ typedef union ALIGN_STRUCT(16) SIMDVec {
#endif
#endif

#if defined(__GNUC__) && !defined(__clang__)
#pragma push_macro("OPTNONE")
#define OPTNONE __attribute__((optimize("O0")))
#elif defined(__clang__)
#pragma push_macro("OPTNONE")
#define OPTNONE __attribute__((optnone))
#else
#endif

#define ASSERT_RETURN(x) \
if (!(x)) \
return TEST_FAIL;
Expand Down
4 changes: 2 additions & 2 deletions tests/impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4459,7 +4459,7 @@ result_t test_mm_cvtepi32_ps(const SSE2NEONTestImpl &impl, uint32_t iter)
return validateFloat(ret, trun[0], trun[1], trun[2], trun[3]);
}

result_t test_mm_cvtpd_epi32(const SSE2NEONTestImpl &impl, uint32_t iter)
OPTNONE result_t test_mm_cvtpd_epi32(const SSE2NEONTestImpl &impl, uint32_t iter)
{
const double *_a = (const double *) impl.mTestFloatPointer1;
int32_t d[2] = {};
Expand Down Expand Up @@ -11837,7 +11837,7 @@ result_t test_mm_popcnt_u64(const SSE2NEONTestImpl &impl, uint32_t iter)
return TEST_SUCCESS;
}

result_t test_mm_set_denormals_zero_mode(const SSE2NEONTestImpl &impl,
OPTNONE result_t test_mm_set_denormals_zero_mode(const SSE2NEONTestImpl &impl,
uint32_t iter)
{
result_t res_set_denormals_zero_on, res_set_denormals_zero_off;
Expand Down

0 comments on commit 923080b

Please sign in to comment.