[Hexagon] Add PIC support
[oota-llvm.git] / test / MC / Hexagon / got.s
1 # RUN: llvm-mc -arch=hexagon -filetype=obj %s | llvm-objdump -r - | FileCheck %s
2 #
3
4 # make sure the fixups emitted match what is
5 # expected.
6 .Lgot:
7     r0 = memw (r1 + ##foo@GOT)
8
9 # CHECK: R_HEX_GOT_32_6_X foo
10 # CHECK: R_HEX_GOT_11_X foo
11