Thumb2 parsing and encoding for CLZ.
authorJim Grosbach <grosbach@apple.com>
Tue, 6 Sep 2011 20:44:17 +0000 (20:44 +0000)
committerJim Grosbach <grosbach@apple.com>
Tue, 6 Sep 2011 20:44:17 +0000 (20:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139177 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 926af984bc198cec5518a6008150d6ec41750298..1946f5f7db365da73b205eda3c44c8346b477a93 100644 (file)
@@ -304,6 +304,18 @@ _func:
 @ CHECK: clrexne                         @ encoding: [0xbf,0xf3,0x2f,0x8f]
 
 
+@------------------------------------------------------------------------------
+@ CLZ
+@------------------------------------------------------------------------------
+        clz r1, r2
+        it eq
+        clzeq r1, r2
+
+@ CHECK: clz   r1, r2                  @ encoding: [0xb2,0xfa,0x82,0xf1]
+@ CHECK: it    eq                      @ encoding: [0x08,0xbf]
+@ CHECK: clzeq r1, r2                  @ encoding: [0xb2,0xfa,0x82,0xf1]
+
+
 @------------------------------------------------------------------------------
 @ IT
 @------------------------------------------------------------------------------