1 # RUN: llvm-mc -triple=powerpc64-unknown-linux-gnu -filetype=obj %s | \
2 # RUN: llvm-readobj -r - | FileCheck %s
5 addis 3, 13, myFloat@tprel@ha
6 addi 3, 3, myFloat@tprel@
l
7 addis 3, 2, myFloat@got@tprel@ha
8 ld 3, myFloat@got@tprel@
l(3)
10 stfsx 4, 3, myFloat@tls
12 .section .tbss,"awT",@nobits
20 # Check for a pair of R_PPC64_TPREL16_HA / R_PPC64_TPREL16_LO relocs
21 # against the thread-local symbol 'myFloat'.
22 # CHECK: Relocations [
23 # CHECK: Section ({{[0-9]+}}) .rela.text {
24 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TPREL16_HA myFloat
25 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TPREL16_LO myFloat
26 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_GOT_TPREL16_HA myFloat 0x0
27 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_GOT_TPREL16_LO_DS myFloat 0x0
28 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TLS myFloat 0x0
29 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TLS myFloat 0x0