[llvm] [Mips] Add r5900 (PlayStation 2 Emotion Engine) FPU Support (PR #178942)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 20 02:33:21 PST 2026
================
@@ -996,6 +1003,11 @@ def : MipsPat<(f32 (any_sint_to_fp GPR32Opnd:$src)),
let Predicates = [IsR5900] in {
def : MipsPat<(MipsTruncIntFP FGR32Opnd:$src),
(CVT_W_S FGR32Opnd:$src)>, ISA_MIPS1;
+ def : Pat<(f32 (MipsR5900FAdd FGR32Opnd:$fs, FGR32Opnd:$ft)), (FADD_S $fs, $ft)>;
----------------
arsenm wrote:
I think you could get away without these and rely on the generic node plus flags. Though maybe there's some risk of selection failure from losing flags
https://github.com/llvm/llvm-project/pull/178942
More information about the llvm-commits
mailing list