xref: /llvm-project/llvm/test/MC/VE/data-reloc.s (revision e71fa0336f91ff7d55e3b41c1afa15019a214ef9)
1# RUN: llvm-mc -triple=ve -filetype=obj %s -o - | \
2# RUN:     llvm-objdump -r - | FileCheck %s
3# RUN: llvm-mc -triple=ve -filetype=obj -position-independent %s -o - | \
4# RUN:     llvm-objdump -r - | FileCheck %s
5
6.data
7a:
8## An undefined reference of _GLOBAL_OFFSET_TABLE_ causes .got[0] to be
9## allocated to store _DYNAMIC.
10.4byte _GLOBAL_OFFSET_TABLE_ - 8
11.4byte _GLOBAL_OFFSET_TABLE_ - . - 8
12.8byte _GLOBAL_OFFSET_TABLE_ - 8
13
14# CHECK: 0000000000000000 R_VE_REFLONG _GLOBAL_OFFSET_TABLE_-0x8
15# CHECK: 0000000000000004 R_VE_SREL32 _GLOBAL_OFFSET_TABLE_-0x8
16# CHECK: 0000000000000008 R_VE_REFQUAD _GLOBAL_OFFSET_TABLE_-0x8
17