aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-09-06 20:44:17 +0000
committerJim Grosbach <grosbach@apple.com>2011-09-06 20:44:17 +0000
commit0b533a3bd39471d6dce5a4495f25323a0bb515e0 (patch)
treef469971287e5281751e36340c4553baebf78096b
parentad2dad930d450d721209531175b0cbfdc8402558 (diff)
downloadexternal_llvm-0b533a3bd39471d6dce5a4495f25323a0bb515e0.tar.gz
external_llvm-0b533a3bd39471d6dce5a4495f25323a0bb515e0.tar.bz2
external_llvm-0b533a3bd39471d6dce5a4495f25323a0bb515e0.zip
Thumb2 parsing and encoding for CLZ.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139177 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/MC/ARM/basic-thumb2-instructions.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/MC/ARM/basic-thumb2-instructions.s b/test/MC/ARM/basic-thumb2-instructions.s
index 926af984bc..1946f5f7db 100644
--- a/test/MC/ARM/basic-thumb2-instructions.s
+++ b/test/MC/ARM/basic-thumb2-instructions.s
@@ -305,6 +305,18 @@ _func:
@------------------------------------------------------------------------------
+@ 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
@------------------------------------------------------------------------------
@ Test encodings of a few full IT blocks, not just the IT instruction