mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 04:59:26 +02:00
* arm*: fix SxtbAndImm2Sxtb (now SxtbAndImm2Uxtb) optimization as proposed by Pierre and Gareth
git-svn-id: trunk@48167 -
This commit is contained in:
parent
ecc3ce64ea
commit
14ddc59edb
@ -902,8 +902,8 @@ Implementation
|
||||
{ reg1 might not be modified inbetween }
|
||||
not(RegModifiedBetween(taicpu(p).oper[1]^.reg,p,hp1)) then
|
||||
begin
|
||||
DebugMsg('Peephole SxtbAndImm2Sxtb done', p);
|
||||
taicpu(hp1).opcode:=A_SXTB;
|
||||
DebugMsg('Peephole SxtbAndImm2Uxtb done', p);
|
||||
taicpu(hp1).opcode:=A_UXTB;
|
||||
taicpu(hp1).ops:=2;
|
||||
taicpu(hp1).loadReg(1,taicpu(p).oper[1]^.reg);
|
||||
GetNextInstruction(p,hp2);
|
||||
|
Loading…
Reference in New Issue
Block a user