Skip to content

[compiler-rt] Fix a bug in fp_div_impl when an intermediate result is out of expected range. #119449

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 2 commits into from
Dec 17, 2024

Conversation

lntue
Copy link
Contributor

@lntue lntue commented Dec 10, 2024

Before this fix, 1.0L / (1.0L - 0x1.0p-113L) will return 2 * (1 + eps(1)).

… out of

expected range.

Before this fix, 1.0L / (1.0L - 0x1.0p-113L) will return 2 * (1 + eps(1)).
@nickdesaulniers
Copy link
Member

(newly added tests are failing in presubmit)

@lntue
Copy link
Contributor Author

lntue commented Dec 11, 2024

(newly added tests are failing in presubmit)

Fixed the single precision test.

@lntue lntue requested a review from jhuber6 December 17, 2024 17:15
@lntue lntue merged commit a57f4c7 into llvm:main Dec 17, 2024
7 checks passed
@lntue lntue deleted the divtf3 branch December 17, 2024 17:25
alexrp added a commit to alexrp/zig that referenced this pull request Feb 24, 2025
alexrp added a commit to ziglang/zig that referenced this pull request Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants