view test/MC/PowerPC/ppc64-tls-relocs-01.ll @ 17:5e1f5bc27634

remove codeFlag for llvm type and add __CodeTy
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Sat, 05 Oct 2013 22:04:18 +0900
parents 9ad51c7bc036
children
line wrap: on
line source

;; RUN: llc -mtriple=powerpc64-unknown-linux-gnu -filetype=obj %s -o - | \
;; RUN: llvm-readobj -r | FileCheck %s

;; FIXME: this file should be in .s form, change when asm parser is available.

@t = thread_local global i32 0, align 4

define i32* @f() nounwind {
entry:
  ret i32* @t
}

;; Check for a pair of R_PPC64_TPREL16_HA / R_PPC64_TPREL16_LO relocs
;; against the thread-local symbol 't'.
;; CHECK:      Relocations [
;; CHECK:        Section ({{[0-9]+}}) .text {
;; CHECK-NEXT:     0x{{[0-9,A-F]+}} R_PPC64_TPREL16_HA t
;; CHECK-NEXT:     0x{{[0-9,A-F]+}} R_PPC64_TPREL16_LO t
;; CHECK-NEXT:   }