From a414bcc0e381b32df6ca72887f6bb7a79f464e31 Mon Sep 17 00:00:00 2001 From: Kevin Enderby Date: Tue, 15 May 2012 20:20:50 +0000 Subject: [PATCH] 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. llvm-svn: 156850 --- llvm/test/MC/MachO/ARM/llvm-objdump-macho.s | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 llvm/test/MC/MachO/ARM/llvm-objdump-macho.s diff --git a/llvm/test/MC/MachO/ARM/llvm-objdump-macho.s b/llvm/test/MC/MachO/ARM/llvm-objdump-macho.s new file mode 100644 index 0000000..c8aec93 --- /dev/null +++ b/llvm/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 -- 2.7.4