[llvm-commits] [llvm] r139813 - in /llvm/trunk: lib/Target/ARM/ARMInstrThumb2.td test/MC/ARM/basic-thumb2-instructions.s

Jim Grosbach grosbach at apple.com
Thu Sep 15 11:13:31 PDT 2011


Author: grosbach
Date: Thu Sep 15 13:13:30 2011
New Revision: 139813

URL: http://llvm.org/viewvc/llvm-project?rev=139813&view=rev
Log:
Thumb2 assembly parsing and encoding for REV.

Modified:
    llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td
    llvm/trunk/test/MC/ARM/basic-thumb2-instructions.s

Modified: llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td?rev=139813&r1=139812&r2=139813&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td (original)
+++ llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td Thu Sep 15 13:13:30 2011
@@ -3841,3 +3841,5 @@
 def : t2InstAlias<"pop${p}.w $regs", (t2LDMIA_UPD SP, pred:$p, reglist:$regs)>;
 def : t2InstAlias<"pop${p} $regs", (t2LDMIA_UPD SP, pred:$p, reglist:$regs)>;
 
+// Alias for REV without the ".w" optional width specifier.
+def : t2InstAlias<"rev${p} $Rd, $Rm", (t2REV rGPR:$Rd, rGPR:$Rm, pred:$p)>;

Modified: llvm/trunk/test/MC/ARM/basic-thumb2-instructions.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/basic-thumb2-instructions.s?rev=139813&r1=139812&r2=139813&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/basic-thumb2-instructions.s (original)
+++ llvm/trunk/test/MC/ARM/basic-thumb2-instructions.s Thu Sep 15 13:13:30 2011
@@ -1426,6 +1426,22 @@
 
 
 @------------------------------------------------------------------------------
+@ REV
+ at ------------------------------------------------------------------------------
+        rev.w r1, r2
+        rev r2, r8
+        itt ne
+        revne r1, r2
+        revne r1, r8
+
+@ CHECK: rev.w	r1, r2                  @ encoding: [0x92,0xfa,0x82,0xf1]
+@ CHECK: rev.w	r2, r8                  @ encoding: [0x98,0xfa,0x88,0xf2]
+@ CHECK: itt	ne                      @ encoding: [0x1c,0xbf]
+@ CHECK: revne	r1, r2                  @ encoding: [0x11,0xba]
+@ CHECK: revne.w r1, r8                 @ encoding: [0x98,0xfa,0x88,0xf1]
+
+
+ at ------------------------------------------------------------------------------
 @ SUB (register)
 @------------------------------------------------------------------------------
         sub.w r5, r2, r12, rrx





More information about the llvm-commits mailing list