Both Darwin as and GNU as violate ARM docs wrt printing of addrmode6
authorAnton Korobeynikov <asl@math.spbu.ru>
Tue, 17 Nov 2009 20:04:59 +0000 (20:04 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Tue, 17 Nov 2009 20:04:59 +0000 (20:04 +0000)
alignment imm (in the same way). Fix asmprinting for non-darwin platforms.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89137 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp

index fae44db1331d9c9681d2d5659bcf8ccf0ebb13e4..035250381b6c167f4fe193343d74d80756c43107 100644 (file)
@@ -637,11 +637,8 @@ void ARMAsmPrinter::printAddrMode6Operand(const MachineInstr *MI, int Op) {
 
   O << "[" << getRegisterName(MO1.getReg());
   if (MO4.getImm()) {
-    if (Subtarget->isTargetDarwin())
-      O << ", :";
-    else
-      O << " @";
-    O << MO4.getImm();
+    // FIXME: Both darwin as and GNU as violate ARM docs here.
+    O << ", :" << MO4.getImm();
   }
   O << "]";