mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 12:39:31 +02:00
Make sure to remove postfix as well when fixing thumb instructions.
git-svn-id: trunk@32787 -
This commit is contained in:
parent
f452d9140e
commit
c929bb32ae
@ -1421,8 +1421,10 @@ implementation
|
||||
if (taicpu(curtai).ops=2) and
|
||||
(taicpu(curtai).oper[0]^.typ=top_ref) and
|
||||
(taicpu(curtai).oper[0]^.ref^.index=NR_STACK_POINTER_REG) and
|
||||
(taicpu(curtai).oper[0]^.ref^.addressmode=AM_PREINDEXED) then
|
||||
(taicpu(curtai).oper[0]^.ref^.addressmode=AM_PREINDEXED) and
|
||||
(taicpu(curtai).oppostfix in [PF_FD,PF_DB]) then
|
||||
begin
|
||||
taicpu(curtai).oppostfix:=PF_None;
|
||||
taicpu(curtai).loadregset(0, taicpu(curtai).oper[1]^.regtyp, taicpu(curtai).oper[1]^.subreg, taicpu(curtai).oper[1]^.regset^);
|
||||
taicpu(curtai).ops:=1;
|
||||
taicpu(curtai).opcode:=A_PUSH;
|
||||
@ -1434,8 +1436,10 @@ implementation
|
||||
if (taicpu(curtai).ops=2) and
|
||||
(taicpu(curtai).oper[0]^.typ=top_ref) and
|
||||
(taicpu(curtai).oper[0]^.ref^.index=NR_STACK_POINTER_REG) and
|
||||
(taicpu(curtai).oper[0]^.ref^.addressmode=AM_PREINDEXED) then
|
||||
(taicpu(curtai).oper[0]^.ref^.addressmode=AM_PREINDEXED) and
|
||||
(taicpu(curtai).oppostfix in [PF_FD,PF_IA]) then
|
||||
begin
|
||||
taicpu(curtai).oppostfix:=PF_None;
|
||||
taicpu(curtai).loadregset(0, taicpu(curtai).oper[1]^.regtyp, taicpu(curtai).oper[1]^.subreg, taicpu(curtai).oper[1]^.regset^);
|
||||
taicpu(curtai).ops:=1;
|
||||
taicpu(curtai).opcode:=A_POP;
|
||||
|
Loading…
Reference in New Issue
Block a user