[PATCH ARM/THUMB1] unified syntax MOV with both low register emitting unpredictable code

Thomas Klein th.r.klein@web.de
Mon Nov 14 19:25:00 GMT 2011
Hi,

There seems to be a minor bug when running assembler with 'unified 
syntax' sources.
The old v4t and v5t architectures did not support a MOV rd, rs with both 
low registers.
At pre 'unified syntax' time an 'ADD rd, rs, #0' was used instead.
This instruction changes the flags. So this is not a real move instruction.

I think for architecture v4t and v5t it is better to emit a 'unified 
syntax ADDS rd, rs, #0'
than to emit unpredictable code.
Also the author should be informed about the change.

regards
  Thomas

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff.out
URL: <https://sourceware.org/pipermail/binutils/attachments/20111114/37b580f9/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ChangeLog
URL: <https://sourceware.org/pipermail/binutils/attachments/20111114/37b580f9/attachment-0001.ksh>


More information about the Binutils mailing list