aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-04-16 19:10:52 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-04-16 19:10:52 +0000
commiteeff57418ec59658e07e967c7733cf67070caf1a (patch)
tree58300175647a24048e8324b3ba1b8e899ad88ecf /lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp
parent351a110377d55916f7025489ae53c04dd2c57219 (diff)
downloadexternal_llvm-eeff57418ec59658e07e967c7733cf67070caf1a.tar.gz
external_llvm-eeff57418ec59658e07e967c7733cf67070caf1a.tar.bz2
external_llvm-eeff57418ec59658e07e967c7733cf67070caf1a.zip
Remove the assert() from printAddrMode2OffsetOperand(). "#0 and #-0" are
considered legal instructions. Refs: A8.6.51 LDC, LDC2 (immediate) -- page A8-107, A8.6.58 LDR (immediate, ARM) -- page A8-121, and A8.6.194 STR (immediate, ARM) -- page A8-395. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101524 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp')
-rw-r--r--lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp b/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp
index ef5ead6e47..845d7bb085 100644
--- a/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp
+++ b/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp
@@ -330,7 +330,6 @@ void ARMInstPrinter::printAddrMode2OffsetOperand(const MCInst *MI,
if (!MO1.getReg()) {
unsigned ImmOffs = ARM_AM::getAM2Offset(MO2.getImm());
- assert(ImmOffs && "Malformed indexed load / store!");
O << '#'
<< ARM_AM::getAddrOpcStr(ARM_AM::getAM2Op(MO2.getImm()))
<< ImmOffs;