aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-09-02 23:43:09 +0000
committerJim Grosbach <grosbach@apple.com>2011-09-02 23:43:09 +0000
commit6c3e11ea55172def6f9829cc24cc5c3b071208ba (patch)
tree1993894dcdc8b5ad4edd3af43f52a41c10945e3e /test
parentcefd2020a671248b3266bc2e818645db98f3a1d9 (diff)
downloadexternal_llvm-6c3e11ea55172def6f9829cc24cc5c3b071208ba.zip
external_llvm-6c3e11ea55172def6f9829cc24cc5c3b071208ba.tar.gz
external_llvm-6c3e11ea55172def6f9829cc24cc5c3b071208ba.tar.bz2
Thumb2 parsing and encoding for BXJ.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139053 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/ARM/basic-thumb2-instructions.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/MC/ARM/basic-thumb2-instructions.s b/test/MC/ARM/basic-thumb2-instructions.s
index b68d117..3c3247f 100644
--- a/test/MC/ARM/basic-thumb2-instructions.s
+++ b/test/MC/ARM/basic-thumb2-instructions.s
@@ -255,6 +255,18 @@ _func:
@------------------------------------------------------------------------------
+@ BXJ
+@------------------------------------------------------------------------------
+ bxj r5
+ it ne
+ bxjne r7
+
+@ CHECK: bxj r5 @ encoding: [0xc5,0xf3,0x00,0x8f]
+@ CHECK: it ne @ encoding: [0x18,0xbf]
+@ CHECK: bxjne r7 @ encoding: [0xc7,0xf3,0x00,0x8f]
+
+
+@------------------------------------------------------------------------------
@ CBZ/CBNZ
@------------------------------------------------------------------------------
cbnz r7, #6
@@ -263,6 +275,7 @@ _func:
@ CHECK: cbnz r7, #6 @ encoding: [0x1f,0xb9]
@ CHECK: cbnz r7, #12 @ encoding: [0x37,0xb9]
+
@------------------------------------------------------------------------------
@ IT
@------------------------------------------------------------------------------