summaryrefslogtreecommitdiff
path: root/test/MC
diff options
context:
space:
mode:
authorGordon Keiser <gkeiser@arxan.com>2013-03-28 19:22:28 +0000
committerGordon Keiser <gkeiser@arxan.com>2013-03-28 19:22:28 +0000
commitce888351106a72825e2a107cb08d7130f3dce0ee (patch)
tree35d67c802f5c543db0e4c5ae441eb4542451b6da /test/MC
parent93b10789c6ca1c7c5ca8a453a4709f47099ec819 (diff)
Fix issue with disassembler decoding CBZ/CBNZ immediates as negatives when the upper bit is set.
They should always be zero-extended, not sign extended. Added test case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178275 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r--test/MC/Disassembler/ARM/thumb2.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/MC/Disassembler/ARM/thumb2.txt b/test/MC/Disassembler/ARM/thumb2.txt
index 0baa98a5d9c..31f75b39fa9 100644
--- a/test/MC/Disassembler/ARM/thumb2.txt
+++ b/test/MC/Disassembler/ARM/thumb2.txt
@@ -254,9 +254,12 @@
#------------------------------------------------------------------------------
# CHECK: cbnz r7, #6
# CHECK: cbnz r7, #12
+# CHECK: cbz r4, #64
0x1f 0xb9
0x37 0xb9
+0x04 0xb3
+
#------------------------------------------------------------------------------
# CDP/CDP2