xref: /llvm-project/llvm/test/MC/ARM/thumb1-branch-reloc.s (revision 98a4289810ba49cea6f9a9be6d902e72f0c0d0e7)
1@ RUN: llvm-mc -triple thumbv6-eabi -filetype obj -o - %s | llvm-readobj -r - \
2@ RUN:     | FileCheck %s
3
4        .syntax unified
5
6        .extern h
7        .section .text.uncond
8
9        b h
10
11@CHECK: Section {{.*}} .rel.text.uncond {
12@CHECK:   0x0 R_ARM_THM_JUMP11
13@CHECK: }
14        .section .text.cond
15
16        ble h
17
18@CHECK: Section {{.*}} .rel.text.cond {
19@CHECK:   0x0 R_ARM_THM_JUMP8
20@CHECK: }
21
22        .section .text.insection
23.globl global
24local:
25global:
26        b local
27        b global
28
29@CHECK:      Section {{.*}} .rel.text.insection {
30@CHECK-NEXT:   0x2 R_ARM_THM_JUMP11 global
31@CHECK-NEXT: }
32