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

Enable f16 for MIPS #762

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

Conversation

martn3
Copy link

@martn3 martn3 commented Feb 20, 2025

It seems as if f16 works on MIPS now according to my testing on Rust master with LLVM 20, and I was asked here to create PRs with my changes.

I only tested on the flavour of mipsel-unknown-linux-gnu hardware that happens to be available to me, so I can't say anything about other MIPS hardware, but from a casual skimming of the LLVM code (1, 2) it seems like f16 should work on all MIPS hardware. So enable it for all MIPS hardware.

r? @tgross35

Tracking issue for f16: rust-lang/rust#116909

It seems as if `f16` works on MIPS now according to my
testing on Rust master with LLVM 20, and I was asked to
create PRs with my changes.

I only tested on the flavour of `mipsel-unknown-linux-gnu`
hardware that happens to be available to me, so I can't say
anything about other MIPS hardware, but from a casual
skimming of the LLVM code ([1], [2]) it seems like `f16`
should work on all MIPS hardware. So enable it for all MIPS
hardware.

[1]: https://github.com/rust-lang/llvm-project/blob/rustc/20.1-2025-02-13/llvm/lib/Target/Mips/MipsISelLowering.h#L370
[2]: https://github.com/rust-lang/llvm-project/blob/rustc/20.1-2025-02-13/llvm/lib/CodeGen/TargetLoweringBase.cpp#L1367-L1388
Copy link
Contributor

@tgross35 tgross35 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I'll merge after the current rust-lang/rust builtins update goes through (which is stuck waiting on bootstrap)

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