-
Notifications
You must be signed in to change notification settings - Fork 5.3k
arm64: Fix negs compare to minus int.MinValue #121380
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
arm64: Fix negs compare to minus int.MinValue #121380
Conversation
jonathandavies-arm
commented
Nov 5, 2025
- Fixes JIT: Wrong result of comparison against 0 on arm64 #121294
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
|
@dotnet/arm64-contrib @jakobbotsch Please can I have a review? |
tannergooding
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This resolves the issue and any potential regressions are tracked by #121445
|
@jakobbotsch thanks for fixing this up. This looks good to me now? The failures are just CI issues |
jakobbotsch
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
arm32 does not set the right flags for these operations, so it cannot be enabled. I enabled this in #121380, and these tests did fail there too, but I mistakenly thought the failure was preexisting and the same as #121659. Also do a small refactoring while I'm here, to make use of `SupportsSettingFlagsAsCompareToZero` from `SupportsSettingZeroFlag`. Fix #122185