Permalink
Browse files

arm64jit: Allow reg ptr offsets when unaligned.

Since now they support being dirty.
  • Loading branch information...
unknownbrackets committed Dec 28, 2017
1 parent c4c2828 commit 2e1d85a55b5e87e2d42479d2a799db928357b494
Showing with 2 additions and 2 deletions.
  1. +2 −2 Core/MIPS/ARM64/Arm64CompALU.cpp
@@ -86,8 +86,8 @@ void Arm64Jit::Comp_IType(MIPSOpcode op) {
case 8: // same as addiu?
case 9: // R(rt) = R(rs) + simm; break; //addiu
// Special-case for small adjustments of pointerified registers. Commonly for SP but happens for others.
if (rs == rt && jo.enablePointerify && gpr.IsMappedAsPointer(rs) && IsImmArithmetic(simm < 0 ? -simm : simm, nullptr, nullptr)) {
ARM64Reg r32 = gpr.R(rs);
if (rs == rt && gpr.IsMappedAsPointer(rs) && IsImmArithmetic(simm < 0 ? -simm : simm, nullptr, nullptr)) {
ARM64Reg r32 = gpr.RPtr(rs);
gpr.MarkDirty(r32);
ARM64Reg r = EncodeRegTo64(r32);
if (simm > 0) {

0 comments on commit 2e1d85a

Please sign in to comment.