mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 11:29:27 +02:00
* Improved the comment.
git-svn-id: trunk@40586 -
This commit is contained in:
parent
fdcb12d9f6
commit
92e579a294
@ -443,11 +443,11 @@ Implementation
|
||||
For example:
|
||||
ldr reg2,[reg1, xxx]!
|
||||
mov reg1,reg2
|
||||
is translated to:
|
||||
must be translated to:
|
||||
ldr reg1,[reg1, xxx]
|
||||
|
||||
Preindexing must be removed there, since the same register is used as the base and as the target.
|
||||
It is not allowed for ARM CPU and produces wrong results. }
|
||||
Such case is not allowed for ARM CPU and produces crash. }
|
||||
if (taicpu(p).opcode = A_LDR) and (taicpu(p).oper[1]^.typ = top_ref)
|
||||
and (taicpu(movp).oper[0]^.reg = taicpu(p).oper[1]^.ref^.base)
|
||||
then
|
||||
|
Loading…
Reference in New Issue
Block a user