Skip to content

Rustup: simd_select #1991

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 3 commits into from
Mar 2, 2022
Merged

Rustup: simd_select #1991

merged 3 commits into from
Mar 2, 2022

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Mar 1, 2022

assert_eq!(a % b, i32x4::from_array([0, 0, 1, 2]));
assert_eq!(i32x2::splat(i32::MIN) % i32x2::splat(-1), i32x2::splat(0));
Copy link
Member Author

Choose a reason for hiding this comment

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

Interestingly, this is allowed now in portable SIMD, but panics for regular scalar division / remainder.
Cc @workingjubilee

@RalfJung
Copy link
Member Author

RalfJung commented Mar 1, 2022

@bors r+

@bors
Copy link
Contributor

bors commented Mar 1, 2022

📌 Commit 363236e has been approved by RalfJung

@bors
Copy link
Contributor

bors commented Mar 1, 2022

⌛ Testing commit 363236e with merge c6b3f68...

@bors
Copy link
Contributor

bors commented Mar 2, 2022

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

@bors bors merged commit c6b3f68 into rust-lang:master Mar 2, 2022
@RalfJung RalfJung deleted the rustup branch March 2, 2022 01:27
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.

2 participants