2 # RUN: llvm-mc -filetype=obj -triple=powerpc %s -o %t.o
3 # RUN: ld.lld %t.o -o %t
4 # RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck --check-prefix=LE %s
6 ## a@tprel = st_value(a)-0x7000 = -28664
7 ## b@tprel = st_value(b)-0x7000 = -28660
9 # LE-NEXT: addi 9, 9, -28664
10 # LE-NEXT: addis 10, 2, 0
11 # LE-NEXT: lwz 9, -28660(10)
13 addis 9, 2, a@tprel@ha
16 addis 10, 2, b@tprel@ha