mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-11 05:29:43 +00:00
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:
parent
4e4c8d71be
commit
59bee01c0a
@ -450,7 +450,7 @@ void dppc_interpreter::ppc_fmsubs() {
|
|||||||
ppc_confirm_inf_nan<MUL>(reg_a, reg_c, rc_flag);
|
ppc_confirm_inf_nan<MUL>(reg_a, reg_c, rc_flag);
|
||||||
}
|
}
|
||||||
if (std::isnan(val_reg_b)) {
|
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);
|
double ppc_dblresult64_d = (float)std::fma(val_reg_a, val_reg_c, -val_reg_b);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user