Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #727 from delroth/flags-opt
Jit64: Fix immediates being zero-extended to cr_val instead of sign-extended.
  • Loading branch information
Sonicadvance1 committed Aug 3, 2014
2 parents 0bcebd8 + ae27d36 commit ee7b861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp
Expand Up @@ -122,7 +122,7 @@ void Jit64::ComputeRC(const Gen::OpArg & arg)
{
if (arg.IsImm())
{
MOV(32, R(EAX), Imm32((s32)arg.offset));
MOV(64, R(RAX), Imm32((s32)arg.offset));
MOV(64, M(&PowerPC::ppcState.cr_val[0]), R(RAX));
}
else
Expand Down Expand Up @@ -394,7 +394,7 @@ void Jit64::cmpXX(UGeckoInstruction inst)
if (signedCompare)
{
if (gpr.R(a).IsImm())
MOV(64, R(RAX), gpr.R(a));
MOV(64, R(RAX), Imm32((s32)gpr.R(a).offset));
else
MOVSX(64, 32, RAX, gpr.R(a));
if (!comparand.IsImm())
Expand Down

0 comments on commit ee7b861

Please sign in to comment.