1 # RUN: llvm-mc -triple=powerpc64-unknown-linux-gnu -filetype=obj %s | \
2 # RUN: llvm-readobj -r | FileCheck %s
5 addis 3, 13, t@tprel@ha
7 addis 3, 2, t@got@tprel@ha
18 .section .tbss,"awT",@nobits
25 # Check for a pair of R_PPC64_TPREL16_HA / R_PPC64_TPREL16_LO relocs
26 # against the thread-local symbol 't'.
27 # CHECK: Relocations [
28 # CHECK: Section ({{[0-9]+}}) .rela.text {
29 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TPREL16_HA t
30 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TPREL16_LO t
31 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_GOT_TPREL16_HA t 0x0
32 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_GOT_TPREL16_LO_DS t 0x0
33 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TLS t 0x0
34 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TLS t 0x0
35 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TLS t 0x0
36 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TLS t 0x0
37 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TLS t 0x0
38 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TLS t 0x0
39 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TLS t 0x0
40 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TLS t 0x0