Replace dregsingle operand modifier with explicit escaped curly brackets.
authorBob Wilson <bob.wilson@apple.com>
Tue, 4 Aug 2009 21:39:33 +0000 (21:39 +0000)
committerBob Wilson <bob.wilson@apple.com>
Tue, 4 Aug 2009 21:39:33 +0000 (21:39 +0000)
For other VLDn and VSTn operations, we need to list the multiple registers
explicitly anyway, so there's no point in special-casing this one usage.

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

lib/Target/ARM/ARMInstrNEON.td
lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp

index f36e3269b9b7f324797e87a4bdfc7b2037c125dc..540bd2f57f9a29e8d95306fc4086fe9e4109af2c 100644 (file)
@@ -142,7 +142,7 @@ def VSTRQ : NI<(outs), (ins QPR:$src, GPR:$addr),
 //   VLD1     : Vector Load (multiple single elements)
 class VLD1D<string OpcodeStr, ValueType Ty, Intrinsic IntOp>
   : NLdSt<(outs DPR:$dst), (ins addrmode6:$addr),
-          !strconcat(OpcodeStr, "\t${dst:dregsingle}, $addr"),
+          !strconcat(OpcodeStr, "\t\\{$dst\\}, $addr"),
           [(set DPR:$dst, (Ty (IntOp addrmode6:$addr)))]>;
 class VLD1Q<string OpcodeStr, ValueType Ty, Intrinsic IntOp>
   : NLdSt<(outs QPR:$dst), (ins addrmode6:$addr),
@@ -164,7 +164,7 @@ def  VLD1q64  : VLD1Q<"vld1.64", v2i64, int_arm_neon_vld1i>;
 //   VST1     : Vector Store (multiple single elements)
 class VST1D<string OpcodeStr, ValueType Ty, Intrinsic IntOp>
   : NLdSt<(outs), (ins addrmode6:$addr, DPR:$src),
-          !strconcat(OpcodeStr, "\t${src:dregsingle}, $addr"),
+          !strconcat(OpcodeStr, "\t\\{$src\\}, $addr"),
           [(IntOp addrmode6:$addr, (Ty DPR:$src))]>;
 class VST1Q<string OpcodeStr, ValueType Ty, Intrinsic IntOp>
   : NLdSt<(outs), (ins addrmode6:$addr, QPR:$src),
index a326185c88a7d1f39ec08ba59e0722c917cd541a..d1bf70071877b43a7e5e12e89049351f6150d306 100644 (file)
@@ -348,8 +348,6 @@ void ARMAsmPrinter::printOperand(const MachineInstr *MI, int OpNum,
         O << '{'
           << TRI->getAsmName(DRegLo) << ',' << TRI->getAsmName(DRegHi)
           << '}';
-      } else if (Modifier && strcmp(Modifier, "dregsingle") == 0) {
-        O << '{' << TRI->getAsmName(Reg) << '}';
       } else {
         O << TRI->getAsmName(Reg);
       }