mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 18:59:11 +02:00
* Arm Thumb does not support complex references including SP, resolves #38056
git-svn-id: trunk@47380 -
This commit is contained in:
parent
df4fc55214
commit
eadcaa5dfc
@ -378,6 +378,8 @@ Implementation
|
|||||||
{$ifdef ARM}
|
{$ifdef ARM}
|
||||||
and not (getsupreg(taicpu(p).oper[0]^.reg) in [RS_PC, RS_R14, RS_STACK_POINTER_REG])
|
and not (getsupreg(taicpu(p).oper[0]^.reg) in [RS_PC, RS_R14, RS_STACK_POINTER_REG])
|
||||||
and (getsupreg(taicpu(p).oper[1]^.reg) <> RS_PC)
|
and (getsupreg(taicpu(p).oper[1]^.reg) <> RS_PC)
|
||||||
|
{ Thumb does not support references with base and index one being SP }
|
||||||
|
and (not(GenerateThumbCode) or (getsupreg(taicpu(p).oper[1]^.reg) <> RS_STACK_POINTER_REG))
|
||||||
{$endif ARM}
|
{$endif ARM}
|
||||||
{$ifdef AARCH64}
|
{$ifdef AARCH64}
|
||||||
and (getsupreg(taicpu(p).oper[0]^.reg) <> RS_STACK_POINTER_REG)
|
and (getsupreg(taicpu(p).oper[0]^.reg) <> RS_STACK_POINTER_REG)
|
||||||
|
Loading…
Reference in New Issue
Block a user