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

Make remaining float intrinsics require float arguments #57398

Merged
merged 9 commits into from
Mar 21, 2025

Conversation

xal-0
Copy link
Member

@xal-0 xal-0 commented Feb 13, 2025

The fptrunc/fpext intrinsics were modified in #57160 to throw on non-float arguments.

  • The arithmetic and math float intrinsics now require all their arguments to be floats
  • fptosi/fptoui require their source to be a float
  • sitofp/uitofp require their destination type to be a float

Also fixes #57384.

@xal-0 xal-0 force-pushed the strict-float-intrinsics branch from b2bfc59 to 4eb0368 Compare February 13, 2025 21:21
@xal-0 xal-0 marked this pull request as draft February 13, 2025 21:43
@xal-0 xal-0 force-pushed the strict-float-intrinsics branch from 0dce3a3 to 1bd20ce Compare February 14, 2025 00:16
@xal-0 xal-0 marked this pull request as ready for review February 14, 2025 00:41
@vtjnash vtjnash added backport 1.11 Change should be backported to release-1.11 backport 1.12 Change should be backported to release-1.12 backport 1.10 Change should be backported to the 1.10 release labels Mar 21, 2025
@vtjnash vtjnash force-pushed the strict-float-intrinsics branch from ca3f6ff to b662391 Compare March 21, 2025 17:35
@vtjnash vtjnash added the merge me PR is reviewed. Merge when all tests are passing label Mar 21, 2025
@vtjnash vtjnash merged commit 0bcc9cd into JuliaLang:master Mar 21, 2025
6 of 8 checks passed
@oscardssmith oscardssmith removed the merge me PR is reviewed. Merge when all tests are passing label Mar 21, 2025
KristofferC pushed a commit that referenced this pull request Mar 22, 2025
The `fptrunc`/`fpext` intrinsics were modified in #57160 to throw on
non-float arguments.
- The arithmetic and math float intrinsics now require all their
arguments to be floats
- `fptosi`/`fptoui` require their source to be a float
- `sitofp`/`uitofp` require their destination type to be a float

Also fixes #57384.

(cherry picked from commit 0bcc9cd)
@KristofferC KristofferC removed the backport 1.12 Change should be backported to release-1.12 label Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.10 Change should be backported to the 1.10 release backport 1.11 Change should be backported to release-1.11
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Runtime intrinsics: fptoui/fptosi have inconsistent rounding behaviour
4 participants