aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-09-15 18:07:14 +0000
committerJim Grosbach <grosbach@apple.com>2011-09-15 18:07:14 +0000
commit4bab3c77102954380c923505c413a2df7aca48eb (patch)
tree129f515e7a74d1a89d72c4d7210b537f17d75fce
parent3e3a9c796453afed58e27d7bab926061f8dd2d16 (diff)
Thumb2 assembly parsing and encoding for RBIT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139811 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 d9f3e22427..9facc0ca60 100644
--- a/test/MC/ARM/basic-thumb2-instructions.s
+++ b/test/MC/ARM/basic-thumb2-instructions.s
@@ -1414,6 +1414,18 @@ _func:
@------------------------------------------------------------------------------
+@ RBIT
+@------------------------------------------------------------------------------
+ rbit r1, r2
+ it ne
+ rbitne r1, r2
+
+@ CHECK: rbit r1, r2 @ encoding: [0x92,0xfa,0xa2,0xf1]
+@ CHECK: it ne @ encoding: [0x18,0xbf]
+@ CHECK: rbitne r1, r2 @ encoding: [0x92,0xfa,0xa2,0xf1]
+
+
+@------------------------------------------------------------------------------
@ SUB (register)
@------------------------------------------------------------------------------
sub.w r5, r2, r12, rrx