aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-07-14 23:54:43 +0000
committerBob Wilson <bob.wilson@apple.com>2010-07-14 23:54:43 +0000
commit9676c5f0a3404d52eee60f18c336e7e971c85e7e (patch)
treeda18006e9844c5f178d7b13e433e1cf4e515e4cc /lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp
parent6c11c3a7531fc876459f6c49558b2efa4868171b (diff)
downloadexternal_llvm-9676c5f0a3404d52eee60f18c336e7e971c85e7e.tar.gz
external_llvm-9676c5f0a3404d52eee60f18c336e7e971c85e7e.tar.bz2
external_llvm-9676c5f0a3404d52eee60f18c336e7e971c85e7e.zip
Remove restriction on NEON alignment values. Some of the NEON ld/st
instructions use different values (e.g., 2-byte or 4-byte alignment). Also fix ARMInstPrinter to print these alignments as bits instead of bytes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108386 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp')
-rw-r--r--lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp b/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp
index 170819ad4f..edc934549b 100644
--- a/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp
+++ b/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp
@@ -442,7 +442,7 @@ void ARMInstPrinter::printAddrMode6Operand(const MCInst *MI, unsigned OpNum,
O << "[" << getRegisterName(MO1.getReg());
if (MO2.getImm()) {
// FIXME: Both darwin as and GNU as violate ARM docs here.
- O << ", :" << MO2.getImm();
+ O << ", :" << (MO2.getImm() << 3);
}
O << "]";
}