Skip to content
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

support array return types in simd_bitmask #2895

Merged
merged 1 commit into from May 13, 2023

Conversation

RalfJung
Copy link
Member

Fixes #2734

As usual I am stomped by the simd_bitmask behavior wrt endianess. I confirmed that for little endian, Miri matches what rustc currently does, but I can't test rustc on big endian. @workingjubilee @calebzulawski could you have a look whether those new tests make sense?

@RalfJung RalfJung changed the title support array return types in simb_bitmask support array return types in simd_bitmask May 13, 2023
@calebzulawski
Copy link
Member

This looks correct--the endianness only affects each separate element and not the array order (in std::simd, we reverse each array element on big endian)

@RalfJung
Copy link
Member Author

Ah, I didn't even realize that that is what happens -- thanks!

@bors r+

@bors
Copy link
Collaborator

bors commented May 13, 2023

📌 Commit 54e1bd0 has been approved by RalfJung

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented May 13, 2023

⌛ Testing commit 54e1bd0 with merge 1a80d1e...

@bors
Copy link
Collaborator

bors commented May 13, 2023

☀️ Test successful - checks-actions
Approved by: RalfJung
Pushing 1a80d1e to master...

1 similar comment
@bors
Copy link
Collaborator

bors commented May 13, 2023

☀️ Test successful - checks-actions
Approved by: RalfJung
Pushing 1a80d1e to master...

@bors bors merged commit 1a80d1e into rust-lang:master May 13, 2023
8 checks passed
@RalfJung RalfJung deleted the simd_bitmask branch May 17, 2023 08:24
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.

simd_bitmask ICEs when result type is array
3 participants