diff options
author | Hal Finkel <hfinkel@anl.gov> | 2012-11-20 03:57:32 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2012-11-20 03:57:32 +0000 |
commit | 3c221ac6795fd523c7b30846a26de1479ee14c73 (patch) | |
tree | 5ba9e7945f621408f34c0db79b6564fe847f632d /test | |
parent | c21252912a845335b30f64f72a149e034f173ffd (diff) | |
download | llvm-3c221ac6795fd523c7b30846a26de1479ee14c73.tar.gz llvm-3c221ac6795fd523c7b30846a26de1479ee14c73.tar.bz2 llvm-3c221ac6795fd523c7b30846a26de1479ee14c73.tar.xz |
Merge in PPC internal-as fixes: r167861, r167862, r167863, r167875, r167860, r167864
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_32@168351 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/PowerPC/ppc64-tls-relocs-01.ll | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/MC/PowerPC/ppc64-tls-relocs-01.ll b/test/MC/PowerPC/ppc64-tls-relocs-01.ll new file mode 100644 index 0000000000..5e37311075 --- /dev/null +++ b/test/MC/PowerPC/ppc64-tls-relocs-01.ll @@ -0,0 +1,28 @@ +;; RUN: llc -mtriple=powerpc64-unknown-linux-gnu -filetype=obj %s -o - | \ +;; RUN: elf-dump --dump-section-data | 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: '.rela.text' +;; CHECK: Relocation 0 +;; CHECK-NEXT: 'r_offset', +;; CHECK-NEXT: 'r_sym', 0x00000008 +;; CHECK-NEXT: 'r_type', 0x00000048 +;; CHECK: Relocation 1 +;; CHECK-NEXT: 'r_offset', +;; CHECK-NEXT: 'r_sym', 0x00000008 +;; CHECK-NEXT: 'r_type', 0x00000046 + +;; Check that we got the correct symbol. +;; CHECK: Symbol 8 +;; CHECK-NEXT: 't' + |