summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/ARM/arm-macho-calls.s
blob: 47af47f1f9f26f2dea99e3766a4e332bd4cc23ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
@ RUN: llvm-mc -triple armv7-apple-ios -filetype=obj -o %t %s
@ RUN: llvm-objdump -d -r %t | FileCheck %s

@ CHECK: _func:
@ CHECK:    bl #0 <_func+0x8>
@ CHECK:  ARM_RELOC_BR24 __text
@ CHECK:    bl #-12 <_func>
@ CHECK:  ARM_RELOC_BR24 _elsewhere
    .global _func
_func:
    bl Llocal_symbol
    bl _elsewhere
Llocal_symbol:
    bx lr

    .global _elsewhere
_elsewhere:
    bx lr
OpenPOWER on IntegriCloud