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
20 .section .tbss,"awT",@nobits
27 # Check for a pair of R_PPC64_TPREL16_HA / R_PPC64_TPREL16_LO relocs
28 # against the thread-local symbol 't'.
29 # CHECK: Relocations [
30 # CHECK: Section ({{[0-9]+}}) .rela.text {
31 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TPREL16_HA t
32 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TPREL16_LO t
33 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_GOT_TPREL16_HA t 0x0
34 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_GOT_TPREL16_LO_DS 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
41 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TLS t 0x0
42 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TLS t 0x0
43 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TLS t 0x0
44 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TLS t 0x0