From 3e893913dd3d6921a3390c9c5c3db49369ec0d94 Mon Sep 17 00:00:00 2001 From: Fiora Date: Fri, 28 Nov 2014 06:39:47 -0800 Subject: [PATCH] JIT: fix Force25BitPrecision with accurate single precision mode off Doesn't affect anything now, but it's more correct (and should make setting AccurateSinglePrecision to false work properly now). --- Source/Core/Core/PowerPC/JitCommon/Jit_Util.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Core/Core/PowerPC/JitCommon/Jit_Util.cpp b/Source/Core/Core/PowerPC/JitCommon/Jit_Util.cpp index fe6d6b2f2c..30573246c0 100644 --- a/Source/Core/Core/PowerPC/JitCommon/Jit_Util.cpp +++ b/Source/Core/Core/PowerPC/JitCommon/Jit_Util.cpp @@ -799,6 +799,10 @@ void EmuCodeBlock::Force25BitPrecision(X64Reg output, OpArg input, X64Reg tmp) PADDQ(output, R(tmp)); } } + else if (!input.IsSimpleReg() || input.GetSimpleReg() != output) + { + MOVAPD(output, input); + } } static u32 GC_ALIGNED16(temp32);