1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/MC/AArch64/elf-reloc-addend.s
Tim Northover 3231ab74d4 AArch64: print relocation addends if present on AArch64
llvm-objdump should provide some way of printing out the addends present in the
.rela sections for debugging purposes if nothing else.

llvm-svn: 184072
2013-06-17 03:03:06 +00:00

9 lines
332 B
ArmAsm

// RUN: llvm-mc -triple=aarch64-linux-gnu -filetype=obj -o - %s | llvm-objdump -triple=aarch64-linux-gnu -r - | FileCheck %s
add x0, x4, #:lo12:sym
// CHECK: 0 R_AARCH64_ADD_ABS_LO12_NC sym
add x3, x5, #:lo12:sym+1
// CHECK: 4 R_AARCH64_ADD_ABS_LO12_NC sym+1
add x3, x5, #:lo12:sym-1
// CHECK: 8 R_AARCH64_ADD_ABS_LO12_NC sym-1