[llvm] [Mips] Add r5900 (PlayStation 2 Emotion Engine) FPU Support (PR #178942)

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 17 11:19:48 PST 2026


efriedma-quic wrote:

> But how should this be handled in the -fno-finite-math-only case? Are there other example FPU architectures with the same limitation?

The most similar feature I can think of is certain Arm subtargets, which have double-precision FP registers, but not double-precision arithmetic.  The way those work is that the f64 type is "Legal", but the floating-point operations expand to a libcall, which is implemented in compiler-rt.

The generic implementations in compiler-rt are going to be slow because they assume no FP hardware, but you can look at optimizing them later.

https://github.com/llvm/llvm-project/pull/178942


More information about the llvm-commits mailing list