Thumb2 assembly parsing and encoding for UQASX/UQSAX.
authorJim Grosbach <grosbach@apple.com>
Tue, 20 Sep 2011 00:18:52 +0000 (00:18 +0000)
committerJim Grosbach <grosbach@apple.com>
Tue, 20 Sep 2011 00:18:52 +0000 (00:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140111 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMInstrInfo.td
test/MC/ARM/basic-thumb2-instructions.s

index e325825e9e221b4125286541c9a06524b7faf2cf..a30f761cef49e0bf4a837c79584ac59650fd4ec4 100644 (file)
@@ -4958,6 +4958,10 @@ def : MnemonicAlias<"uaddsubx", "uasx">;
 def : MnemonicAlias<"uhaddsubx", "uhasx">;
 // UHSAX == UHSUBADDX
 def : MnemonicAlias<"uhsubaddx", "uhsax">;
+// UQASX == UQADDSUBX
+def : MnemonicAlias<"uqaddsubx", "uqasx">;
+// UQSAX == UQSUBADDX
+def : MnemonicAlias<"uqsubaddx", "uqsax">;
 
 // LDRSBT/LDRHT/LDRSHT post-index offset if optional.
 // Note that the write-back output register is a dummy operand for MC (it's
index 71a5aaa693c7bea73ff70b42f3981ea53641168d..36814036035017f2b7fb2c7f4be4c862055df0b9 100644 (file)
@@ -2826,3 +2826,31 @@ _func:
 @ CHECK: ite   gt                      @ encoding: [0xcc,0xbf]
 @ CHECK: uqadd16gt     r4, r7, r9      @ encoding: [0x97,0xfa,0x59,0xf4]
 @ CHECK: uqadd8le      r8, r1, r2      @ encoding: [0x81,0xfa,0x52,0xf8]
+
+
+@------------------------------------------------------------------------------
+@ UQASX/UQSAX
+@------------------------------------------------------------------------------
+        uqasx r1, r2, r3
+        uqsax r3, r4, r8
+        ite gt
+        uqasxgt r4, r7, r9
+        uqsaxle r8, r1, r2
+
+        uqaddsubx r1, r2, r3
+        uqsubaddx r3, r4, r8
+        ite gt
+        uqaddsubxgt r4, r7, r9
+        uqsubaddxle r8, r1, r2
+
+@ CHECK: uqasx r1, r2, r3              @ encoding: [0xa2,0xfa,0x53,0xf1]
+@ CHECK: uqsax r3, r4, r8              @ encoding: [0xe4,0xfa,0x58,0xf3]
+@ CHECK: ite   gt                      @ encoding: [0xcc,0xbf]
+@ CHECK: uqasxgt r4, r7, r9             @ encoding: [0xa7,0xfa,0x59,0xf4]
+@ CHECK: uqsaxle r8, r1, r2             @ encoding: [0xe1,0xfa,0x52,0xf8]
+
+@ CHECK: uqasx r1, r2, r3              @ encoding: [0xa2,0xfa,0x53,0xf1]
+@ CHECK: uqsax r3, r4, r8              @ encoding: [0xe4,0xfa,0x58,0xf3]
+@ CHECK: ite   gt                      @ encoding: [0xcc,0xbf]
+@ CHECK: uqasxgt r4, r7, r9             @ encoding: [0xa7,0xfa,0x59,0xf4]
+@ CHECK: uqsaxle r8, r1, r2             @ encoding: [0xe1,0xfa,0x52,0xf8]