From 49ee9d05b9824020335f5ff1828d1aa5fd0bd3df Mon Sep 17 00:00:00 2001 From: gibbed Date: Sat, 19 Oct 2013 17:06:53 -0700 Subject: [PATCH] Fixed LR branching. --- src/xenia/cpu/x64/x64_emit_control.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenia/cpu/x64/x64_emit_control.cc b/src/xenia/cpu/x64/x64_emit_control.cc index a997271d1..80b42b700 100644 --- a/src/xenia/cpu/x64/x64_emit_control.cc +++ b/src/xenia/cpu/x64/x64_emit_control.cc @@ -56,9 +56,9 @@ int XeEmitIndirectBranchTo( // TODO(benvanik): 'lr_mismatch' debug info. // Note: we need to test on *only* the 32-bit target, as the target ptr may // have garbage in the upper 32 bits. - c.test(target.r32(), c.getGpArg(1).r32()); + c.cmp(target.r32(), c.getGpArg(1).r32()); // TODO(benvanik): evaluate hint here. - c.jnz(e.GetReturnLabel(), kCondHintLikely); + c.je(e.GetReturnLabel(), kCondHintLikely); } // Defer to the generator, which will do fancy things.