Skip to content

feat: Implement _mm_undefined_pd #430

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2021
Merged

Conversation

howjmay
Copy link
Collaborator

@howjmay howjmay commented May 27, 2021

No description provided.

@howjmay howjmay requested review from jserv and marktwtn as code owners May 27, 2021 19:44
@jserv
Copy link
Member

jserv commented May 28, 2021

Did you implement the corresponding test case?

@jserv jserv force-pushed the master branch 3 times, most recently from eb8e6ef to c902b5e Compare June 4, 2021 18:33
tests/impl.cpp Outdated
@@ -6280,7 +6280,9 @@ result_t test_mm_ucomineq_sd(const SSE2NEONTestImpl &impl, uint32_t iter)

result_t test_mm_undefined_pd(const SSE2NEONTestImpl &impl, uint32_t iter)
{
return TEST_UNIMPL;
__m128d a = _mm_undefined_pd();
(void) a;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this for?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To remove the unused variable warning

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we might just return TEST_SUCESS
or replace the code with _mm_undefined_pd() without declaring variable.

@jserv any suggestion?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can rewrite as following:

__m128d a = _mm_undefined_pd();
a = _mm_xor_pd(a, a);
return validateDouble(a, 0, 0);

@jserv jserv merged commit f01be72 into DLTcollab:master Jun 11, 2021
@howjmay howjmay deleted the undefined_pd branch June 11, 2021 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants