From a93a30e688614394247c02ac885cc933ea03c26a Mon Sep 17 00:00:00 2001 From: skidau Date: Tue, 29 Dec 2009 09:11:26 +0000 Subject: [PATCH] Fix for negative zero in fnmsubsx (interpreter) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4742 8ced0084-cf51-0410-be5f-012b33b47a6e --- .../Src/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp b/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp index 018bcfe0e0..3693aef7b1 100644 --- a/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp +++ b/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp @@ -459,8 +459,8 @@ void fnmsubx(UGeckoInstruction _inst) } void fnmsubsx(UGeckoInstruction _inst) { - rPS0(_inst.FD) = rPS1(_inst.FD) = - ForceSingle(0.0-NI_msub(rPS0(_inst.FA), rPS0(_inst.FC), rPS0(_inst.FB))); + rPS0(_inst.FD) = rPS1(_inst.FD) = + ForceSingle(-NI_msub(rPS0(_inst.FA), rPS0(_inst.FC), rPS0(_inst.FB))); UpdateFPRF(rPS0(_inst.FD)); if (_inst.Rc) Helper_UpdateCR1(rPS0(_inst.FD)); }