From 7ba400bea291789a7120659e975c4d1899c1ff86 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Sun, 3 Aug 2014 21:50:12 -0700 Subject: [PATCH] Revert "Jit64: Fix immediates being zero-extended to cr_val instead of sign-extended." --- Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp index d34e832772..6e40961a93 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp @@ -122,7 +122,7 @@ void Jit64::ComputeRC(const Gen::OpArg & arg) { if (arg.IsImm()) { - MOV(64, R(RAX), Imm32((s32)arg.offset)); + MOV(32, R(EAX), Imm32((s32)arg.offset)); MOV(64, M(&PowerPC::ppcState.cr_val[0]), R(RAX)); } else @@ -394,7 +394,7 @@ void Jit64::cmpXX(UGeckoInstruction inst) if (signedCompare) { if (gpr.R(a).IsImm()) - MOV(64, R(RAX), Imm32((s32)gpr.R(a).offset)); + MOV(64, R(RAX), gpr.R(a)); else MOVSX(64, 32, RAX, gpr.R(a)); if (!comparand.IsImm())