summaryrefslogtreecommitdiff
path: root/lib/Target
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-10-27 17:16:55 +0000
committerJim Grosbach <grosbach@apple.com>2011-10-27 17:16:55 +0000
commit036a67d670413f8116415b87457f22d256f314ae (patch)
tree943cd26ad1a171a787c335e5df6145cc2e929ce5 /lib/Target
parentd8b0b915c5a94806596c381660c548aabef447b2 (diff)
downloadllvm-036a67d670413f8116415b87457f22d256f314ae.tar.gz
llvm-036a67d670413f8116415b87457f22d256f314ae.tar.bz2
llvm-036a67d670413f8116415b87457f22d256f314ae.tar.xz
Thumb2 t2MVNi assembly parsing to recognize ".w" suffix.
rdar://10348584 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143108 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/ARM/ARMInstrThumb2.td4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMInstrThumb2.td b/lib/Target/ARM/ARMInstrThumb2.td
index cc137a8982..cef4c7b645 100644
--- a/lib/Target/ARM/ARMInstrThumb2.td
+++ b/lib/Target/ARM/ARMInstrThumb2.td
@@ -3921,7 +3921,9 @@ def : t2InstAlias<"ldrsb${p} $Rt, $addr",
def : t2InstAlias<"ldrsh${p} $Rt, $addr",
(t2LDRSHpci rGPR:$Rt, t2ldrlabel:$addr, pred:$p)>;
-// Alias for MVN without the ".w" optional width specifier.
+// Alias for MVN with(out) the ".w" optional width specifier.
+def : t2InstAlias<"mvn${s}${p}.w $Rd, $imm",
+ (t2MVNi rGPR:$Rd, t2_so_imm:$imm, pred:$p, cc_out:$s)>;
def : t2InstAlias<"mvn${s}${p} $Rd, $Rm",
(t2MVNr rGPR:$Rd, rGPR:$Rm, pred:$p, cc_out:$s)>;
def : t2InstAlias<"mvn${s}${p} $Rd, $ShiftedRm",