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

Fix math_ext conformance tests to be correct #366

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

jcking
Copy link
Collaborator

@jcking jcking commented Jul 19, 2024

Various math_ext conformance tests regarding bitwise right shift of negative numbers were incorrect. Per the spec, right shifting negative numbers does not perform sign extension. Instead we treat int >> int the same as uint >> int.

Signed-off-by: Justin King <jcking@google.com>
@jcking jcking requested a review from TristonianJones July 19, 2024 18:53
@jcking jcking merged commit 5299974 into google:master Jul 19, 2024
2 checks passed
@jcking jcking deleted the math_ext_bit_right_right branch July 19, 2024 19:05
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