Thumb2 ADR assembly parsing w/o the .w suffix.
authorJim Grosbach <grosbach@apple.com>
Thu, 15 Dec 2011 23:52:17 +0000 (23:52 +0000)
committerJim Grosbach <grosbach@apple.com>
Thu, 15 Dec 2011 23:52:17 +0000 (23:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146710 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMInstrThumb2.td

index f8446e14c737bc473d2093908e2857a3739f9e2f..981592ce2f792a5e1a15ff0fa6435acabed36718 100644 (file)
@@ -4140,3 +4140,7 @@ def t2MOVsi: t2AsmPseudo<"mov${p} $Rd, $shift",
                          (ins rGPR:$Rd, t2_so_reg:$shift, pred:$p)>;
 def t2MOVSsi: t2AsmPseudo<"movs${p} $Rd, $shift",
                           (ins rGPR:$Rd, t2_so_reg:$shift, pred:$p)>;
+
+// ADR w/o the .w suffix
+def : t2InstAlias<"adr${p} $Rd, $addr",
+                  (t2ADR rGPR:$Rd, t2adrlabel:$addr, pred:$p)>;