summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2011-07-26 20:54:26 +0000
committerOwen Anderson <resistor@mac.com>2011-07-26 20:54:26 +0000
commit2aedba6c5e18fa3e62a0eca95d50c6ab77abd109 (patch)
treebd06a68eb4bf86f7c585b9cec43707574a2d6cf0 /llvm/lib/Target/ARM/ARMAsmPrinter.cpp
parent84c7b9e586030957e02a06e4db3c65feb1b84b41 (diff)
downloadbcm5719-llvm-2aedba6c5e18fa3e62a0eca95d50c6ab77abd109.tar.gz
bcm5719-llvm-2aedba6c5e18fa3e62a0eca95d50c6ab77abd109.zip
Split am2offset into register addend and immediate addend forms, necessary for allowing the fixed-length disassembler to distinguish between SBFX and STR_PRE.
llvm-svn: 136141
Diffstat (limited to 'llvm/lib/Target/ARM/ARMAsmPrinter.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMAsmPrinter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
index 3a10cc8e3cd..c9a5fca393b 100644
--- a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
+++ b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
@@ -994,7 +994,8 @@ void ARMAsmPrinter::EmitUnwindingInstruction(const MachineInstr *MI) {
i != NumOps; ++i)
RegList.push_back(MI->getOperand(i).getReg());
break;
- case ARM::STR_PRE:
+ case ARM::STR_PRE_IMM:
+ case ARM::STR_PRE_REG:
assert(MI->getOperand(2).getReg() == ARM::SP &&
"Only stack pointer as a source reg is supported");
RegList.push_back(SrcReg);
OpenPOWER on IntegriCloud