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.
This commit is contained in:
joevt 2024-02-16 23:38:00 -08:00 committed by Maxim Poliakovski
parent 4e4c8d71be
commit 59bee01c0a
1 changed files with 1 additions and 1 deletions

View File

@ -450,7 +450,7 @@ void dppc_interpreter::ppc_fmsubs() {
ppc_confirm_inf_nan<MUL>(reg_a, reg_c, rc_flag);
}
if (std::isnan(val_reg_b)) {
ppc_confirm_inf_nan<ADD>(reg_a, reg_b, rc_flag);
ppc_confirm_inf_nan<SUB>(reg_a, reg_b, rc_flag);
}
double ppc_dblresult64_d = (float)std::fma(val_reg_a, val_reg_c, -val_reg_b);