Thumb2 assembly parsing and encoding for UADD16/UADD8.
authorJim Grosbach <grosbach@apple.com>
Mon, 19 Sep 2011 22:52:27 +0000 (22:52 +0000)
committerJim Grosbach <grosbach@apple.com>
Mon, 19 Sep 2011 22:52:27 +0000 (22:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140081 91177308-0d34-0410-b5e6-96231b3b80d8

test/MC/ARM/basic-thumb2-instructions.s

index 80d4f7e0eb208c08dc70d10c046b488fbf24a4e7..28bf22ff9d0a27a0c53e19854e6f7dcf6eb26c6d 100644 (file)
@@ -2670,3 +2670,19 @@ _func:
 @ CHECK: tst.w r5, r10, lsr #12        @ encoding: [0x15,0xea,0x1a,0x3f]
 @ CHECK: tst.w r6, r9, asr #30         @ encoding: [0x16,0xea,0xa9,0x7f]
 @ CHECK: tst.w r7, r8, ror #2          @ encoding: [0x17,0xea,0xb8,0x0f]
+
+
+@------------------------------------------------------------------------------
+@ UADD16/UADD8
+@------------------------------------------------------------------------------
+        uadd16 r1, r2, r3
+        uadd8 r1, r2, r3
+        ite gt
+        uadd16gt r1, r2, r3
+        uadd8le r1, r2, r3
+
+@ CHECK: uadd16        r1, r2, r3              @ encoding: [0x92,0xfa,0x43,0xf1]
+@ CHECK: uadd8 r1, r2, r3              @ encoding: [0x82,0xfa,0x43,0xf1]
+@ CHECK: ite   gt                      @ encoding: [0xcc,0xbf]
+@ CHECK: uadd16gt      r1, r2, r3      @ encoding: [0x92,0xfa,0x43,0xf1]
+@ CHECK: uadd8le       r1, r2, r3      @ encoding: [0x82,0xfa,0x43,0xf1]