Thumb2 assembly parsing and encoding for SMMUL/SMMULR.
authorJim Grosbach <grosbach@apple.com>
Fri, 16 Sep 2011 17:56:06 +0000 (17:56 +0000)
committerJim Grosbach <grosbach@apple.com>
Fri, 16 Sep 2011 17:56:06 +0000 (17:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139916 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 2940fa71036f60a8d2bae8c45cc4f3cbdab851b5..93bb1b84e092ff6b4599fcd2badbaead936be8ef 100644 (file)
@@ -1918,6 +1918,22 @@ _func:
 @ CHECK: smmlsrhs      r4, r3, r2, r1  @ encoding: [0x63,0xfb,0x12,0x14]
 
 
+@------------------------------------------------------------------------------
+@ SMMUL/SMMULR
+@------------------------------------------------------------------------------
+        smmul r2, r3, r4
+        smmulr r3, r2, r1
+        ite cc
+        smmulcc r2, r3, r4
+        smmulrhs r3, r2, r1
+
+@ CHECK: smmul r2, r3, r4              @ encoding: [0x53,0xfb,0x04,0xf2]
+@ CHECK: smmulr        r3, r2, r1              @ encoding: [0x52,0xfb,0x11,0xf3]
+@ CHECK: ite   lo                      @ encoding: [0x34,0xbf]
+@ CHECK: smmullo       r2, r3, r4      @ encoding: [0x53,0xfb,0x04,0xf2]
+@ CHECK: smmulrhs      r3, r2, r1      @ encoding: [0x52,0xfb,0x11,0xf3]
+
+
 @------------------------------------------------------------------------------
 @ SUB (register)
 @------------------------------------------------------------------------------