llvm/test/MC/Hexagon/pcrel.s
Krzysztof Parzyszek 311fb07b3b [Hexagon] Add PIC support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256025 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-18 20:19:30 +00:00

12 lines
232 B
ArmAsm

# RUN: llvm-mc -arch=hexagon -filetype=obj %s | llvm-objdump -r - | FileCheck %s
#
# make sure the fixups emitted match what is
# expected.
.Lpc:
r0 = add (pc, ##foo@PCREL)
# CHECK: R_HEX_B32_PCREL_X
# CHECK: R_HEX_6_PCREL_X