-
Notifications
You must be signed in to change notification settings - Fork 288
PartialEq is fundamentally broken for stdsimd types #511
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
Comments
Related #457 Testing was done on x86_64 in my case. |
Bug seems pretty simple. This is in I've never done a pull request but I will attempt one. Sorry if I do it wrong :P -B |
gamozolabs
pushed a commit
to gamozolabs/stdsimd
that referenced
this issue
Jun 29, 2018
This was closed in 4751cb9 |
lu-zero
pushed a commit
to lu-zero/stdarch
that referenced
this issue
Jul 10, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code triggers an assertion, which checks if !(==) is the same as !=.
In this case the issue only occurs when there are different values in the vector. The current tests only check that
PartialEq
is working in thesplat
againstsplat
case, which it does work correctly. However when there is a different value in the vector (non-splatted),PartialEq
is incorrect.This issue also occurs when using
u32x4
and mask values. It does not seem to be an issue with just the 512-bit emulation.Tests should also be expanded to test non-splatted cases.
This will result in
https://play.rust-lang.org/?gist=9e0799d170e488b7c691b6f98ccc72ca&version=nightly&mode=debug
-B
The text was updated successfully, but these errors were encountered: