Replace coff-/elf-dump with llvm-readobj
[oota-llvm.git] / test / MC / PowerPC / ppc64-tls-relocs-01.ll
1 ;; RUN: llc -mtriple=powerpc64-unknown-linux-gnu -filetype=obj %s -o - | \
2 ;; RUN: llvm-readobj -r | FileCheck %s
3
4 ;; FIXME: this file should be in .s form, change when asm parser is available.
5
6 @t = thread_local global i32 0, align 4
7
8 define i32* @f() nounwind {
9 entry:
10   ret i32* @t
11 }
12
13 ;; Check for a pair of R_PPC64_TPREL16_HA / R_PPC64_TPREL16_LO relocs
14 ;; against the thread-local symbol 't'.
15 ;; CHECK:      Relocations [
16 ;; CHECK:        Section ({{[0-9]+}}) .text {
17 ;; CHECK-NEXT:     0x{{[0-9,A-F]+}} R_PPC64_TPREL16_HA t
18 ;; CHECK-NEXT:     0x{{[0-9,A-F]+}} R_PPC64_TPREL16_LO t
19 ;; CHECK-NEXT:   }