* Arm Thumb does not support complex references including SP, resolves #38056

git-svn-id: trunk@47380 -
This commit is contained in:
florian 2020-11-10 22:04:55 +00:00
parent df4fc55214
commit eadcaa5dfc

View File

@ -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)