This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Attachment: diff.out
Description: Text document

Attachment: ChangeLog
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]