summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit78f9572f39921b9919848ac55ac266436b9d6200 (patch)
tree15b78f6761b66d0ed6a6db6c52c76f6b6b8ef5d5 /llvm/test/MC/Disassembler/ARM
parenta1cd191624ac80604078b901d90c07d0122d6798 (diff)
downloadbcm5719-llvm-78f9572f39921b9919848ac55ac266436b9d6200.tar.gz
bcm5719-llvm-78f9572f39921b9919848ac55ac266436b9d6200.zip
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 llvm-svn: 187530
Diffstat (limited to 'llvm/test/MC/Disassembler/ARM')
-rw-r--r--llvm/test/MC/Disassembler/ARM/thumb2.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/test/MC/Disassembler/ARM/thumb2.txt b/llvm/test/MC/Disassembler/ARM/thumb2.txt
index 110a4c0530e..9fc166f0663 100644
--- a/llvm/test/MC/Disassembler/ARM/thumb2.txt
+++ b/llvm/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
#------------------------------------------------------------------------------
OpenPOWER on IntegriCloud