Skip to content

Commit 10e3494

Browse files
author
Martin Nordholts
committed
Enable f16 for MIPS
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
1 parent 3c09866 commit 10e3494

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

configure.rs

-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ pub fn configure_f16_f128(target: &Target) {
7878
"csky" => false,
7979
"hexagon" => false,
8080
"loongarch64" => false,
81-
"mips" | "mips64" | "mips32r6" | "mips64r6" => false,
8281
"powerpc" | "powerpc64" => false,
8382
"sparc" | "sparc64" => false,
8483
"wasm32" | "wasm64" => false,

0 commit comments

Comments
 (0)