[Android] Add LastStoreReg exception to AddConstToArmReg

This commit is contained in:
zilmar 2017-01-19 17:48:16 +11:00
parent 8cf62142b5
commit e098aacf0c
1 changed files with 8 additions and 0 deletions

View File

@ -75,6 +75,10 @@ void CArmOps::AddArmRegToArmReg(ArmReg DestReg, ArmReg SourceReg1, ArmReg Source
void CArmOps::AddConstToArmReg(ArmReg DestReg, uint32_t Const)
{
if (DestReg == m_LastStoreReg)
{
ArmNop();
}
PreOpCheck(false,__FILE__,__LINE__);
AddConstToArmReg(DestReg, DestReg, Const);
@ -82,6 +86,10 @@ void CArmOps::AddConstToArmReg(ArmReg DestReg, uint32_t Const)
void CArmOps::AndConstToArmReg(ArmReg DestReg, ArmReg SourceReg, uint32_t Const)
{
if (DestReg == m_LastStoreReg)
{
ArmNop();
}
PreOpCheck(false,__FILE__,__LINE__);
if (CanThumbCompressConst(Const))