Skip to content

Commit

Permalink
Merge pull request #926 from unknownbrackets/armjit-minor
Browse files Browse the repository at this point in the history
Call GetImm() before Map* in case of overlap
  • Loading branch information
hrydgard committed Mar 9, 2013
2 parents 0d196bc + a589361 commit 5983925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/MIPS/ARM/ArmCompALU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,8 @@ namespace MIPSComp
int rs = _RS;
if (gpr.IsImm(rs))
{
gpr.MapDirtyIn(rd, rt);
int sa = gpr.GetImm(rs) & 0x1F;
gpr.MapDirtyIn(rd, rt);
MOV(gpr.R(rd), Operand2(gpr.R(rt), shiftType, sa));
return;
}
Expand Down

0 comments on commit 5983925

Please sign in to comment.