diff options
author | Quentin Colombet <qcolombet@apple.com> | 2013-04-12 18:47:25 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2013-04-12 18:47:25 +0000 |
commit | d64ee4455a9d2fcec7e001c7f4c02d490bed5158 (patch) | |
tree | 435e989dba6407ed439b96c378be69e2ccdada2f /lib/Target/ARM/ARMInstrThumb2.td | |
parent | 9458f3ecee4d17ec9759a0351d2f339315cdebb1 (diff) | |
download | external_llvm-d64ee4455a9d2fcec7e001c7f4c02d490bed5158.zip external_llvm-d64ee4455a9d2fcec7e001c7f4c02d490bed5158.tar.gz external_llvm-d64ee4455a9d2fcec7e001c7f4c02d490bed5158.tar.bz2 |
ARM: Correct printing of pre-indexed operands.
According to the ARM reference manual, constant offsets are mandatory for pre-indexed addressing modes.
The MC disassembler was not obeying this when the offset is 0.
It was producing 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 by Mihail Popa <Mihail.Popa@arm.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179398 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMInstrThumb2.td')
-rw-r--r-- | lib/Target/ARM/ARMInstrThumb2.td | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMInstrThumb2.td b/lib/Target/ARM/ARMInstrThumb2.td index 4db37ca..ad57de5 100644 --- a/lib/Target/ARM/ARMInstrThumb2.td +++ b/lib/Target/ARM/ARMInstrThumb2.td @@ -150,7 +150,7 @@ def lo5AllOne : PatLeaf<(i32 imm), [{ def t2addrmode_imm12_asmoperand : AsmOperandClass {let Name="MemUImm12Offset";} def t2addrmode_imm12 : Operand<i32>, ComplexPattern<i32, 2, "SelectT2AddrModeImm12", []> { - let PrintMethod = "printAddrModeImm12Operand"; + let PrintMethod = "printAddrModeImm12Operand<false>"; let EncoderMethod = "getAddrModeImm12OpValue"; let DecoderMethod = "DecodeT2AddrModeImm12"; let ParserMatchClass = t2addrmode_imm12_asmoperand; |