forked from OSchip/llvm-project
32 lines
618 B
ArmAsm
32 lines
618 B
ArmAsm
@ RUN: llvm-mc -triple thumbv6-eabi -filetype obj -o - %s | llvm-readobj -r - \
|
|
@ RUN: | FileCheck %s
|
|
|
|
.syntax unified
|
|
|
|
.extern h
|
|
.section .text.uncond
|
|
|
|
b h
|
|
|
|
@CHECK: Section {{.*}} .rel.text.uncond {
|
|
@CHECK: 0x0 R_ARM_THM_JUMP11
|
|
@CHECK: }
|
|
.section .text.cond
|
|
|
|
ble h
|
|
|
|
@CHECK: Section {{.*}} .rel.text.cond {
|
|
@CHECK: 0x0 R_ARM_THM_JUMP8
|
|
@CHECK: }
|
|
|
|
.section .text.insection
|
|
.globl global
|
|
local:
|
|
global:
|
|
b local
|
|
b global
|
|
|
|
@CHECK: Section {{.*}} .rel.text.insection {
|
|
@CHECK-NEXT: 0x2 R_ARM_THM_JUMP11 global 0x0
|
|
@CHECK-NEXT: }
|