Skip to content

Commit

Permalink
fix last commit for aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
RSDuck committed Jul 24, 2021
1 parent c2152c8 commit c9b918d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ARMJIT_A64/ARMJIT_LoadStore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -827,12 +827,15 @@ void Compiler::T_Comp_PUSH_POP()
}

ARM64Reg sp = MapReg(13);
s32 offset = Comp_MemAccessBlock(13, regs, !load, !load, !load, false);
s32 offset = Comp_MemAccessBlock(13, regs, !load, !load, !load, false, false);

if (offset > 0)
if (offset)
{
if (offset > 0)
ADD(sp, sp, offset);
else
SUB(sp, sp, -offset);
}
}

void Compiler::T_Comp_LDMIA_STMIA()
Expand Down

0 comments on commit c9b918d

Please sign in to comment.