From 9792976ee9626e42a3f0a66923f5612711e0e5fd Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Thu, 21 May 2015 12:33:36 +0200 Subject: [PATCH] Jit64: fix ForceSinglePrecisionS/P This bug never broke anything because of how these functions are used. Fixing it should avoid some false dependencies though. --- Source/Core/Core/PowerPC/JitCommon/Jit_Util.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/Core/PowerPC/JitCommon/Jit_Util.cpp b/Source/Core/Core/PowerPC/JitCommon/Jit_Util.cpp index 8d0f917ac5..20e42f40d3 100644 --- a/Source/Core/Core/PowerPC/JitCommon/Jit_Util.cpp +++ b/Source/Core/Core/PowerPC/JitCommon/Jit_Util.cpp @@ -645,8 +645,8 @@ void EmuCodeBlock::ForceSinglePrecisionS(X64Reg output, X64Reg input) // Most games don't need these. Zelda requires it though - some platforms get stuck without them. if (jit->jo.accurateSinglePrecision) { - CVTSD2SS(input, R(input)); - CVTSS2SD(output, R(input)); + CVTSD2SS(output, R(input)); + CVTSS2SD(output, R(output)); } else if (output != input) { @@ -659,8 +659,8 @@ void EmuCodeBlock::ForceSinglePrecisionP(X64Reg output, X64Reg input) // Most games don't need these. Zelda requires it though - some platforms get stuck without them. if (jit->jo.accurateSinglePrecision) { - CVTPD2PS(input, R(input)); - CVTPS2PD(output, R(input)); + CVTPD2PS(output, R(input)); + CVTPS2PD(output, R(output)); } else if (output != input) {