1# REQUIRES: hexagon 2# RUN: llvm-mc -filetype=obj -triple=hexagon-unknown-elf %s -o %t.o 3# RUN: llvm-mc -filetype=obj -triple=hexagon-unknown-elf %S/Inputs/hexagon-shared.s -o %t2.o 4# RUN: ld.lld -shared %t2.o -soname=so -o %t2.so 5# RUN: ld.lld -shared %t.o %t2.so -o %t3.so 6# RUN: llvm-objdump --print-imm-hex -d -j .text %t3.so | FileCheck --check-prefix=TEXT %s 7 8.global foo 9foo: 10 11.Lpc: 12 13# R_HEX_GOTREL_LO16 14 r0.l = #LO(.Lpc@GOTREL) 15# R_HEX_GOTREL_HI16 16 r0.h = #HI(.Lpc@GOTREL) 17# R_HEX_GOTREL_11_X 18 r0 = memw(r1+##.Lpc@GOTREL) 19# R_HEX_GOTREL_32_6_X and R_HEX_GOTREL_16_X 20 r0 = ##(.Lpc@GOTREL) 21 22# TEXT: r0.l = #0xffa8 } 23# TEXT: r0.h = #0xfffd } 24# TEXT: immext(#0xfffdff80) 25# TEXT: r0 = memw(r1+##-0x20058) } 26# TEXT: immext(#0xfffdff80) 27# TEXT: r0 = ##-0x20058 } 28