armjit: Skip an AND for rotate shifts.

This commit is contained in:
Unknown W. Brackets 2014-03-15 00:49:18 -07:00
parent bed9c82d0a
commit ab2dd54ade

View File

@ -488,7 +488,9 @@ namespace MIPSComp
return;
}
gpr.MapDirtyInIn(rd, rs, rt);
AND(R0, gpr.R(rs), Operand2(0x1F));
// A rotate will be the same even if >= 32.
if (shiftType != ST_ROR)
AND(R0, gpr.R(rs), Operand2(0x1F));
MOV(gpr.R(rd), Operand2(gpr.R(rt), shiftType, R0));
}