1# REQUIRES: ppc 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 5 6## a@tprel = st_value(a)-0x7000 = -28664 7## b@tprel = st_value(b)-0x7000 = -28660 8# LE: addis 9, 2, 0 9# LE-NEXT: addi 9, 9, -28664 10# LE-NEXT: addis 10, 2, 0 11# LE-NEXT: lwz 9, -28660(10) 12 13addis 9, 2, a@tprel@ha 14addi 9, 9, a@tprel@l 15 16addis 10, 2, b@tprel@ha 17lwz 9,b@tprel@l(10) 18 19.section .tbss 20.globl a 21.zero 8 22a: 23.zero 4 24b: 25