[PATCH] Correct printing of pre-indexed operands

Mihail Popa Mihail.Popa at arm.com
Fri Apr 12 09:29:49 PDT 2013


Hi.

According to the ARM reference manual, constant offsets are mandatory for pre-indexed addressing modes. Currently the MC disassembler
does not obey this when the offset is 0. It produces instructions like: str r0, [r1]!. Correct syntax is: str r0, [r1, #0]!.

This change modifies the dumping of operands so that the offset is always printed, regardless of its value, when pre-indexed addressing mode
is used.

Patch attached for review.

Thanks,
Mihai

-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LLVM-707.preindex.patch
Type: text/x-patch
Size: 14323 bytes
Desc: LLVM-707.preindex.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130412/774af9d0/attachment.bin>


More information about the llvm-commits mailing list