summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-03-15 22:27:33 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-03-15 22:27:33 +0000
commit276f6f9cf978fa7074687eead10a6db96c5afa6d (patch)
tree29e1ab7ba0cbb6d72ec8490f0e3d4483b5ab94ce /test
parent6046cffbaf584b5d6bd7baf827794a5f91a07a9b (diff)
There were two issues fixed:
1. The ARM Darwin *r9 call instructions were pseudo-ized recently. Modify the ARMDisassemblerCore.cpp file to accomodate the change. 2. The disassembler was unnecessarily adding 8 to the sign-extended imm24: imm32 = SignExtend(imm24:'00', 32); // A8.6.23 BL, BLX (immediate) // Encoding A1 It has no business doing such. Removed the offending logic. Add test cases to arm-tests.txt. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127707 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/Disassembler/ARM/arm-tests.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/MC/Disassembler/ARM/arm-tests.txt b/test/MC/Disassembler/ARM/arm-tests.txt
index 22a73f2cda..8b3b7c9048 100644
--- a/test/MC/Disassembler/ARM/arm-tests.txt
+++ b/test/MC/Disassembler/ARM/arm-tests.txt
@@ -1,7 +1,13 @@
# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 | FileCheck %s
# CHECK: b #0
-0xfe 0xff 0xff 0xea
+0x00 0x00 0x00 0xea
+
+# CHECK: bl #7732
+0x8d 0x07 0x00 0xeb
+
+# CHECK: bleq #-4
+0xff 0xff 0xff 0x0b
# CHECK: bfc r8, #0, #16
0x1f 0x80 0xcf 0xe7