diff options
author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2013-07-02 18:47:35 +0000 |
---|---|---|
committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2013-07-02 18:47:35 +0000 |
commit | b843060ecfa29efb5f896350f6530fa81184e420 (patch) | |
tree | 227afc3bce75c96dac23b57f4929707f21b3ed1f /test/DebugInfo/PowerPC/tls.ll | |
parent | 716a94f0c96d6bef575cd286bafb2cc507adc6b0 (diff) | |
download | external_llvm-b843060ecfa29efb5f896350f6530fa81184e420.zip external_llvm-b843060ecfa29efb5f896350f6530fa81184e420.tar.gz external_llvm-b843060ecfa29efb5f896350f6530fa81184e420.tar.bz2 |
[PowerPC] Support TLS variables in debug info
This adds an implementation of getDebugThreadLocalSymbol for
(64-bit) PowerPC. This needs to return a generic MCExpr
since on ppc64, we need to add a bias of 0x8000 to the
value returned by the R_PPC64_DTPREL64 relocation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185461 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo/PowerPC/tls.ll')
-rw-r--r-- | test/DebugInfo/PowerPC/tls.ll | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/DebugInfo/PowerPC/tls.ll b/test/DebugInfo/PowerPC/tls.ll index 3e53896..ae32a90 100644 --- a/test/DebugInfo/PowerPC/tls.ll +++ b/test/DebugInfo/PowerPC/tls.ll @@ -1,10 +1,16 @@ -; RUN: llc -mtriple=powerpc-unknown-unknown -O0 -filetype=asm < %s | FileCheck %s +; RUN: llc -mtriple=powerpc64-unknown-linux-gnu -O0 -filetype=asm < %s | FileCheck %s ; FIXME: add relocation and DWARF expression support to llvm-dwarfdump & use ; that here instead of raw assembly printing -; CHECK: debug_info -; CHECK-NOT: tls@DTPOFF +; 10 bytes of data in this DW_FORM_block1 representation of the location of 'tls' +; CHECK: .byte 10{{ *}}# DW_AT_location +; DW_OP_const8u +; CHECK: .byte 14 +; The debug relocation of the address of the tls variable +; CHECK: .quad tls@dtprel+32768 +; DW_OP_GNU_push_tls_address +; CHECK: .byte 224 @tls = thread_local global i32 7, align 4 |