1 // RUN: llvm-mc -triple=powerpc64-pc-linux -filetype=obj %s -o - | \
2 // RUN: llvm-readobj -r | FileCheck %s
4 // Test correct relocation generation for thread-local storage
5 // using the initial-exec model and integrated assembly.
7 .file "/home/espindola/llvm/llvm/test/CodeGen/PowerPC/tls-ie-obj.ll"
12 .section .opd,"aw",@progbits
22 addis 4, 2, a@got@tprel@ha
23 ld 4, a@got@tprel@l(4)
32 .size main, .Ltmp0-.L.main
35 // Verify generation of R_PPC64_GOT_TPREL16_DS and R_PPC64_TLS for
36 // accessing external variable a.
38 // CHECK: Relocations [
39 // CHECK: Section (2) .rela.text {
40 // CHECK: 0x{{[0-9,A-F]+}} R_PPC64_GOT_TPREL16_HA a
41 // CHECK: 0x{{[0-9,A-F]+}} R_PPC64_GOT_TPREL16_LO_DS a
42 // CHECK: 0x{{[0-9,A-F]+}} R_PPC64_TLS a