mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 01:39:27 +02:00
* handle ARM PIC jump tables in determining the maximum offset for
pc-relative loads git-svn-id: trunk@27105 -
This commit is contained in:
parent
246caf3526
commit
45e03d768e
@ -1037,9 +1037,10 @@ implementation
|
||||
begin
|
||||
case taicpu(hp).opcode of
|
||||
A_BX,
|
||||
A_LDR:
|
||||
A_LDR,
|
||||
A_ADD:
|
||||
{ approximation if we hit a case jump table }
|
||||
if ((taicpu(hp).opcode=A_LDR) and not(GenerateThumbCode or GenerateThumb2Code) and
|
||||
if ((taicpu(hp).opcode in [A_ADD,A_LDR]) and not(GenerateThumbCode or GenerateThumb2Code) and
|
||||
(taicpu(hp).oper[0]^.typ=top_reg) and
|
||||
(taicpu(hp).oper[0]^.reg=NR_PC)) or
|
||||
((taicpu(hp).opcode=A_BX) and (GenerateThumbCode) and
|
||||
|
Loading…
Reference in New Issue
Block a user