summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objdump/ARM
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2014-08-18 20:21:02 +0000
committerKevin Enderby <enderby@apple.com>2014-08-18 20:21:02 +0000
commitec5ca036747171bd834220281f6e098ad7f3d3d8 (patch)
treee2e47d383ffdce4a1d398cbf45a6ba28304a08aa /llvm/test/tools/llvm-objdump/ARM
parenta2d4b09a557aa233f0deeddb574459467865139f (diff)
downloadbcm5719-llvm-ec5ca036747171bd834220281f6e098ad7f3d3d8.tar.gz
bcm5719-llvm-ec5ca036747171bd834220281f6e098ad7f3d3d8.zip
Make llvm-objdump handle both arm and thumb disassembly from the same Mach-O
file with -macho, the Mach-O specific object file parser option. After some discussion I chose to do this implementation contained in the logic of llvm-objdump’s MachODump.cpp using a second disassembler for thumb when needed and with updates mostly contained in the MachOObjectFile class. llvm-svn: 215931
Diffstat (limited to 'llvm/test/tools/llvm-objdump/ARM')
-rw-r--r--llvm/test/tools/llvm-objdump/ARM/macho-arm-and-thumb.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/ARM/macho-arm-and-thumb.test b/llvm/test/tools/llvm-objdump/ARM/macho-arm-and-thumb.test
new file mode 100644
index 00000000000..720b78fa89e
--- /dev/null
+++ b/llvm/test/tools/llvm-objdump/ARM/macho-arm-and-thumb.test
@@ -0,0 +1,15 @@
+@ RUN: llvm-mc < %s -triple armv7-apple-darwin -filetype=obj | llvm-objdump -m -d - | FileCheck %s
+
+.thumb
+.thumb_func _t
+_t:
+nop
+nop
+.align 2
+.arm
+_a:
+nop
+
+@ CHECK: 00 bf nop
+@ CHECK-NEXT: 00 bf nop
+@ CHECK: 00 f0 20 e3 nop
OpenPOWER on IntegriCloud