summaryrefslogtreecommitdiff
path: root/test/MC/Disassembler/ARM
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2013-07-31 21:05:30 +0000
committerKevin Enderby <enderby@apple.com>2013-07-31 21:05:30 +0000
commite38070fc32818a6e412dafbb8b3807b413d0819e (patch)
tree1de7b8d724aac6fa8e418f0fe3ba33cc3cb78750 /test/MC/Disassembler/ARM
parent6b3f6a744a6d16c5d62dc3477186035e8a74a8e9 (diff)
downloadllvm-e38070fc32818a6e412dafbb8b3807b413d0819e.tar.gz
llvm-e38070fc32818a6e412dafbb8b3807b413d0819e.tar.bz2
llvm-e38070fc32818a6e412dafbb8b3807b413d0819e.tar.xz
Added the B9.3.19 SUBS PC, LR, #imm (Thumb2) system instruction.
While the .td entry is nice and all, it takes a pretty gross hack in ARMAsmParser::ParseInstruction() because of handling of other "subs" instructions to get it to match. Ran it by Jim Grosbach and he said it was about what he expected to make this work given the existing code. rdar://14214063 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187530 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/Disassembler/ARM')
-rw-r--r--test/MC/Disassembler/ARM/thumb2.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/MC/Disassembler/ARM/thumb2.txt b/test/MC/Disassembler/ARM/thumb2.txt
index 110a4c0530..9fc166f066 100644
--- a/test/MC/Disassembler/ARM/thumb2.txt
+++ b/test/MC/Disassembler/ARM/thumb2.txt
@@ -2051,6 +2051,7 @@
# CHECK: sub.w r12, r6, #256
# CHECK: subw r12, r6, #256
# CHECK: subs.w r1, r2, #496
+# CHECK: subs pc, lr, #4
0x0a 0xbf
0x11 0x1f
@@ -2062,6 +2063,7 @@
0xa6 0xf5 0x80 0x7c
0xa6 0xf2 0x00 0x1c
0xb2 0xf5 0xf8 0x71
+0xde 0xf3 0x04 0x8f
#------------------------------------------------------------------------------