[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ARM / thumb1-branch-reloc.s
blobeb097211d55da917b644c638e806b6ef562c347f
1 @ RUN: llvm-mc -triple thumbv6-eabi -filetype obj -o - %s | llvm-readobj -r - \
2 @ RUN: | FileCheck %s
4 .syntax unified
6 .extern h
7 .section .text.uncond
9 b h
11 @CHECK: Section {{.*}} .rel.text.uncond {
12 @CHECK: 0x0 R_ARM_THM_JUMP11
13 @CHECK: }
14 .section .text.cond
16 ble h
18 @CHECK: Section {{.*}} .rel.text.cond {
19 @CHECK: 0x0 R_ARM_THM_JUMP8
20 @CHECK: }
22 .section .text.insection
23 .globl global
24 local:
25 global:
26 b local
27 b global
29 @CHECK: Section {{.*}} .rel.text.insection {
30 @CHECK-NEXT: 0x2 R_ARM_THM_JUMP11 global
31 @CHECK-NEXT: }