mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
armemu: Fix FSUBS bug where NaN shouldn't be negated
This commit is contained in:
parent
0fd731ee63
commit
2ed03c10e0
1 changed files with 4 additions and 1 deletions
|
@ -1148,7 +1148,10 @@ static u32 vfp_single_fsub(ARMul_State* state, int sd, int sn, s32 m, u32 fpscr)
|
|||
/*
|
||||
* Subtraction is addition with one sign inverted.
|
||||
*/
|
||||
return vfp_single_fadd(state, sd, sn, vfp_single_packed_negate(m), fpscr);
|
||||
if (m != 0x7FC00000) // Only negate if m isn't NaN.
|
||||
m = vfp_single_packed_negate(m);
|
||||
|
||||
return vfp_single_fadd(state, sd, sn, m, fpscr);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue