1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/MC/ARM/thumb2-beq-fixup.s
Georgii Rymar c7112b7126 [llvm-readobj] - For SHT_REL relocations, don't display an addend.
This is https://bugs.llvm.org/show_bug.cgi?id=44257.

In LLVM style we always print `0` as addend when dumping
SHT_REL relocations. It is confusing, this patch stops
printing it as the first comment on the bug page suggests.

Differential revision: https://reviews.llvm.org/D93033
2020-12-14 12:03:00 +03:00

41 lines
823 B
ArmAsm

@ RUN: llvm-mc < %s -triple armv7-linux-gnueabi -filetype=obj -o - \
@ RUN: | llvm-readobj -r - | FileCheck %s
.code 16
.thumb_func
thumb_caller:
beq.w internal_arm_fn
beq.w global_arm_fn
beq.w global_thumb_fn
beq.w internal_thumb_fn
.type internal_arm_fn,%function
.code 32
internal_arm_fn:
bx lr
.globl global_arm_fn
.type global_arm_fn,%function
.code 32
global_arm_fn:
bx lr
.type internal_thumb_fn,%function
.code 16
.thumb_func
internal_thumb_fn:
bx lr
.globl global_thumb_fn
.type global_thumb_fn,%function
.code 16
.thumb_func
global_thumb_fn:
bx lr
@ CHECK: Section (3) .rel.text
@ CHECK-NEXT: 0x0 R_ARM_THM_JUMP19 internal_arm_fn
@ CHECK-NEXT: 0x4 R_ARM_THM_JUMP19 global_arm_fn
@ CHECK-NEXT: 0x8 R_ARM_THM_JUMP19 global_thumb_fn
@ CHECK-NEXT: }