[PATCH][GAS][ARM] Fix disassembly of strht
Kyrylo Tkachov
kyrylo.tkachov@arm.com
Fri Feb 1 11:04:00 GMT 2013
Hi all,
gas disassembles a form of the strht ARM instruction improperly:
strht r0, [r1], -r2 @ assembles to E02100B2
@ disassembles as "strh r0, [r1], -r2 ; UNPREDICTABLE"
strht r0, [r1], r2 @ assembles to E0A100B2
@ disassembles as "strh r0, [r1], r2 ; UNPREDICTABLE"
This patch fixes that. New tests are added for that case, and also for the
similar ldrht instruction.
Ok for trunk?
Thanks,
Kyrill
opcodes/ChangeLog
2013-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* arm-dis.c: Add another pattern for strht.
gas/testsuite/ChangeLog
2013-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* gas/arm/archv6t2.s: Add strht and ldrht tests.
* gas/arm/archv6t2.d: Add disassembly patterns for the above.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gas-strht.txt
URL: <https://sourceware.org/pipermail/binutils/attachments/20130201/9885948d/attachment.txt>
More information about the Binutils
mailing list