diff options
| author | Jim Grosbach <grosbach@apple.com> | 2011-09-09 18:37:27 +0000 |
|---|---|---|
| committer | Jim Grosbach <grosbach@apple.com> | 2011-09-09 18:37:27 +0000 |
| commit | b6aed508e310e31dcb080e761ca856127cec0773 (patch) | |
| tree | 2be8703cda03b07e8b3448b0a072b15e1f222f3a /lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp | |
| parent | 1ab7c8ea03d52c6fdae6fe0efae57a36c2f701c3 (diff) | |
| download | external_llvm-b6aed508e310e31dcb080e761ca856127cec0773.zip external_llvm-b6aed508e310e31dcb080e761ca856127cec0773.tar.gz external_llvm-b6aed508e310e31dcb080e761ca856127cec0773.tar.bz2 | |
Thumb2 assembly parsing and encoding for LDREX/LDREXB/LDREXD/LDREXH.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139381 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp')
| -rw-r--r-- | lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp b/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp index 643bf4a..6453604 100644 --- a/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp +++ b/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp @@ -812,6 +812,18 @@ void ARMInstPrinter::printT2AddrModeImm8s4Operand(const MCInst *MI, O << "]"; } +void ARMInstPrinter::printT2AddrModeImm0_1020s4Operand(const MCInst *MI, + unsigned OpNum, + raw_ostream &O) { + const MCOperand &MO1 = MI->getOperand(OpNum); + const MCOperand &MO2 = MI->getOperand(OpNum+1); + + O << "[" << getRegisterName(MO1.getReg()); + if (MO2.getImm()) + O << ", #" << MO2.getImm() * 4; + O << "]"; +} + void ARMInstPrinter::printT2AddrModeImm8OffsetOperand(const MCInst *MI, unsigned OpNum, raw_ostream &O) { |
