[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ARM / arm-macho-calls.s
blobf3f96ebb65941094fba685696ae11475e1c5920f
1 @ RUN: llvm-mc -triple armv7-apple-ios -filetype=obj -o %t %s
2 @ RUN: llvm-objdump -d -r %t | FileCheck %s
4 @ CHECK: <_func>:
5 @ CHECK: bl 0x8 <_func+0x8> @ imm = #0
6 @ CHECK: ARM_RELOC_BR24 __text
7 @ CHECK: bl 0x0 <_func> @ imm = #-12
8 @ CHECK: ARM_RELOC_BR24 _elsewhere
9 .global _func
10 _func:
11 bl Llocal_symbol
12 bl _elsewhere
13 Llocal_symbol:
14 bx lr
16 .global _elsewhere
17 _elsewhere:
18 bx lr