From 59bee01c0a973faaa215e39953eb7e8b90320b93 Mon Sep 17 00:00:00 2001 From: joevt Date: Fri, 16 Feb 2024 23:38:00 -0800 Subject: [PATCH] ppcfpopcodes: Fix fmsubs inf nan check. There's probably still an issue with the inf_nan check using reg_a for the first value instead of reg_a * reg_c. This will probably need rewriting anyway. --- cpu/ppc/ppcfpopcodes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/ppc/ppcfpopcodes.cpp b/cpu/ppc/ppcfpopcodes.cpp index b560ba9..c90d3d2 100644 --- a/cpu/ppc/ppcfpopcodes.cpp +++ b/cpu/ppc/ppcfpopcodes.cpp @@ -450,7 +450,7 @@ void dppc_interpreter::ppc_fmsubs() { ppc_confirm_inf_nan(reg_a, reg_c, rc_flag); } if (std::isnan(val_reg_b)) { - ppc_confirm_inf_nan(reg_a, reg_b, rc_flag); + ppc_confirm_inf_nan(reg_a, reg_b, rc_flag); } double ppc_dblresult64_d = (float)std::fma(val_reg_a, val_reg_c, -val_reg_b);