Fixed LR branching.

This commit is contained in:
gibbed 2013-10-19 17:06:53 -07:00
parent 7b0ca71bfb
commit 49ee9d05b9
1 changed files with 2 additions and 2 deletions

View File

@ -56,9 +56,9 @@ int XeEmitIndirectBranchTo(
// TODO(benvanik): 'lr_mismatch' debug info. // TODO(benvanik): 'lr_mismatch' debug info.
// Note: we need to test on *only* the 32-bit target, as the target ptr may // Note: we need to test on *only* the 32-bit target, as the target ptr may
// have garbage in the upper 32 bits. // 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. // TODO(benvanik): evaluate hint here.
c.jnz(e.GetReturnLabel(), kCondHintLikely); c.je(e.GetReturnLabel(), kCondHintLikely);
} }
// Defer to the generator, which will do fancy things. // Defer to the generator, which will do fancy things.