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

Add integer to f16 conversions #729

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tgross35
Copy link
Contributor

@tgross35 tgross35 commented Nov 5, 2024

These are not present in LLVM's compiler-rt but LLVM does emit them in some cases 1.

@tgross35 tgross35 marked this pull request as draft November 5, 2024 00:34
@tgross35 tgross35 force-pushed the f16-int-conv branch 3 times, most recently from 7230b09 to d2d4f22 Compare November 5, 2024 07:50
tgross35 added a commit to tgross35/compiler-builtins that referenced this pull request Nov 5, 2024
CI in [1] seems to indicate that there are cases where the `f16`
infinite recursion bug ([2], [3]) can make its way into what gets called
during tests, even though this doesn't seem to be the usual case. In
order to make sure that we avoid these completely, just unset
`f16_enabled` on any platforms that have the recursion problem.

This also refactors the `match` statement to be more in line with
`library/std/build.rs`.

[1]: rust-lang#729
[2]: llvm/llvm-project#97981
[3]: rust-lang#651
@tgross35 tgross35 force-pushed the f16-int-conv branch 4 times, most recently from 1a86a8d to f6a5429 Compare November 5, 2024 09:07
@tgross35
Copy link
Contributor Author

tgross35 commented Nov 5, 2024

Includes #730 since PPC crashes without it.

These are not present in LLVM's `compiler-rt` but LLVM does emit them in
some cases [1].

[1]: rust-lang/rust#132614 (comment)
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.

1 participant