diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2015-12-14 09:42:30 +0100 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2015-12-16 21:17:36 +0100 |
| commit | d3dfdf7767463e1b35ff80ccd5677b5af2aaea93 (patch) | |
| tree | 558d1cf364421323ad4976bddb30cf8351d0d73e /Source/Core | |
| parent | cc6442734d099f71a94ffef7c6417e01afba4fa7 (diff) | |
Interpreter: don't always set FPSCR.FX on NaNs
FPSCR.FX must only be set if an exception bit changes from 0 to 1.
SetFPException() already handles this correctly.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp b/Source/Core/Core/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp index 071e1218e5..def12b5029 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp @@ -24,7 +24,6 @@ void Interpreter::Helper_FloatCompareOrdered(UGeckoInstruction _inst, double fa, if (std::isnan(fa) || std::isnan(fb)) { - FPSCR.FX = 1; compareResult = FPCC::FU; if (IsSNAN(fa) || IsSNAN(fb)) { @@ -68,7 +67,6 @@ void Interpreter::Helper_FloatCompareUnordered(UGeckoInstruction _inst, double f if (IsSNAN(fa) || IsSNAN(fb)) { - FPSCR.FX = 1; SetFPException(FPSCR_VXSNAN); } } |
