summaryrefslogtreecommitdiff
path: root/test/MC/MachO
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2012-05-15 20:20:50 +0000
committerKevin Enderby <enderby@apple.com>2012-05-15 20:20:50 +0000
commite545c4e45d989bcb3e6d18e090f417fd41fb9c63 (patch)
treed7483b5013204f8cae7b775cad5eed1fd709c8f8 /test/MC/MachO
parentac94bd88d8bcd15305500dc06bc65bcecf2aafeb (diff)
downloadllvm-e545c4e45d989bcb3e6d18e090f417fd41fb9c63.tar.gz
llvm-e545c4e45d989bcb3e6d18e090f417fd41fb9c63.tar.bz2
llvm-e545c4e45d989bcb3e6d18e090f417fd41fb9c63.tar.xz
Add a test case for r156840, a fix to llvm-objdump when disassembling using
-macho to disassemble the last symbol to the end of the section. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156850 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/MachO')
-rw-r--r--test/MC/MachO/ARM/llvm-objdump-macho.s20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/MC/MachO/ARM/llvm-objdump-macho.s b/test/MC/MachO/ARM/llvm-objdump-macho.s
new file mode 100644
index 0000000000..c8aec932ad
--- /dev/null
+++ b/test/MC/MachO/ARM/llvm-objdump-macho.s
@@ -0,0 +1,20 @@
+@ RUN: llvm-mc -triple=thumbv7-apple-ios -filetype=obj -o - < %s | llvm-objdump -d -macho -triple=thumbv7-apple-ios - | FileCheck %s
+.thumb
+.thumb_func _fib
+_fib:
+ push {r7, lr}
+ pop {r7, pc}
+.thumb_func _main
+_main:
+ push {r7, lr}
+ pop {r7, pc}
+ nop
+# CHECK: _fib:
+# CHECK: 0: 80 b5 push {r7, lr}
+# CHECK: 2: 80 bd pop {r7, pc}
+# CHECK: _main:
+# CHECK: 4: 80 b5 push {r7, lr}
+# CHECK: 6: 80 bd pop {r7, pc}
+# CHECK: 8: 00 bf nop
+# We are checking that second function is fully disassembled.
+# rdar://11426465