1e48e8c7a6069374daee4c9be1e17b8ed31527f5eUlrich Weigand# RUN: llvm-mc -triple=powerpc64-unknown-linux-gnu -filetype=obj %s | \ 2e48e8c7a6069374daee4c9be1e17b8ed31527f5eUlrich Weigand# RUN: llvm-readobj -r | FileCheck %s 3e48e8c7a6069374daee4c9be1e17b8ed31527f5eUlrich Weigand 4e48e8c7a6069374daee4c9be1e17b8ed31527f5eUlrich Weigand .text 5e48e8c7a6069374daee4c9be1e17b8ed31527f5eUlrich Weigand addis 3, 13, t@tprel@ha 6e48e8c7a6069374daee4c9be1e17b8ed31527f5eUlrich Weigand addi 3, 3, t@tprel@l 7e48e8c7a6069374daee4c9be1e17b8ed31527f5eUlrich Weigand 8e48e8c7a6069374daee4c9be1e17b8ed31527f5eUlrich Weigand .type t,@object 9e48e8c7a6069374daee4c9be1e17b8ed31527f5eUlrich Weigand .section .tbss,"awT",@nobits 10e48e8c7a6069374daee4c9be1e17b8ed31527f5eUlrich Weigand .globl t 11e48e8c7a6069374daee4c9be1e17b8ed31527f5eUlrich Weigand .align 2 12e48e8c7a6069374daee4c9be1e17b8ed31527f5eUlrich Weigandt: 13e48e8c7a6069374daee4c9be1e17b8ed31527f5eUlrich Weigand .long 0 14e48e8c7a6069374daee4c9be1e17b8ed31527f5eUlrich Weigand .size t, 4 15e48e8c7a6069374daee4c9be1e17b8ed31527f5eUlrich Weigand 16e48e8c7a6069374daee4c9be1e17b8ed31527f5eUlrich Weigand# Check for a pair of R_PPC64_TPREL16_HA / R_PPC64_TPREL16_LO relocs 17e48e8c7a6069374daee4c9be1e17b8ed31527f5eUlrich Weigand# against the thread-local symbol 't'. 18e48e8c7a6069374daee4c9be1e17b8ed31527f5eUlrich Weigand# CHECK: Relocations [ 19e48e8c7a6069374daee4c9be1e17b8ed31527f5eUlrich Weigand# CHECK: Section ({{[0-9]+}}) .rela.text { 20e48e8c7a6069374daee4c9be1e17b8ed31527f5eUlrich Weigand# CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TPREL16_HA t 21e48e8c7a6069374daee4c9be1e17b8ed31527f5eUlrich Weigand# CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TPREL16_LO t 22e48e8c7a6069374daee4c9be1e17b8ed31527f5eUlrich Weigand# CHECK-NEXT: } 23