In message <[EMAIL PROTECTED]>, Russell King writes:
>Philip Blundell said:
>> >    1:      ldrbt   r6,[r6],#0
>>
>> Technically the results are UNPREDICTABLE if the two registers are the same.
>
>This is not illegal, nor unpredictable.  The documentation says that a
>post indexed ldr instruction must not have rd the same as rn, except in
>one case where it is permitted.  The above is an example of the exact
>case when it is allowed.

Where is this documented?  The ARM says of LDRBT simply:

Notes   
        Register Rn: 
        Specifies the base register used by <post_indexed_addressing_mode>.
        
        Operand restrictions:
        If the same register is specified for Rd and Rn the results are
        UNPREDICTABLE.

This is on page 3-46.

p.


unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]

Reply via email to