Permalink
Browse files

Interpreter_FloatingPoint: Set FPSCR.VXSNAN if the input to frsqrte i…

…s a signaling NaN

If the input is a signaling NaN, then we need to signal that via setting
the FPSCR.VXSNAN bit. We also shouldn't update the FPRF flags if
FPSCR.VE is set.
  • Loading branch information...
lioncash committed May 24, 2018
1 parent 31504f8 commit 155bcb1649e35ec277babe5c864f2fe8f706ba2c
Showing with 7 additions and 0 deletions.
  1. +7 −0 Source/Core/Core/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp
@@ -427,6 +427,13 @@ void Interpreter::frsqrtex(UGeckoInstruction inst)
if (FPSCR.ZE == 0)
PowerPC::UpdateFPRF(result);
}
else if (Common::IsSNAN(b))
{
SetFPException(FPSCR_VXSNAN);
if (FPSCR.VE == 0)
PowerPC::UpdateFPRF(result);
}
else
{
PowerPC::UpdateFPRF(result);

0 comments on commit 155bcb1

Please sign in to comment.