Skip to content

Commit

Permalink
Add a test case for r156840, a fix to llvm-objdump when disassembling…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
enderby committed May 15, 2012
1 parent ac94bd8 commit e545c4e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/MC/MachO/ARM/llvm-objdump-macho.s
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e545c4e

Please sign in to comment.