summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/tls.ll
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@freebsd.org>2013-12-20 18:08:54 +0000
committerRoman Divacky <rdivacky@freebsd.org>2013-12-20 18:08:54 +0000
commit32143e2bda60ee03492aebdd0bbab3ac85b994e7 (patch)
tree77e7188408035931305b22cba221b74525164492 /llvm/test/CodeGen/PowerPC/tls.ll
parentf827c2ece28cf3999d289aab5d4e6a532bded93c (diff)
downloadbcm5719-llvm-32143e2bda60ee03492aebdd0bbab3ac85b994e7.tar.gz
bcm5719-llvm-32143e2bda60ee03492aebdd0bbab3ac85b994e7.zip
Implement initial-exec TLS for PPC32.
llvm-svn: 197824
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/tls.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/tls.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/tls.ll b/llvm/test/CodeGen/PowerPC/tls.ll
index fd4c682cc1a..59b4de75598 100644
--- a/llvm/test/CodeGen/PowerPC/tls.ll
+++ b/llvm/test/CodeGen/PowerPC/tls.ll
@@ -1,5 +1,6 @@
; RUN: llc -O0 < %s -march=ppc64 -mcpu=ppc64 | FileCheck -check-prefix=OPT0 %s
; RUN: llc -O1 < %s -march=ppc64 -mcpu=ppc64 | FileCheck -check-prefix=OPT1 %s
+; RUN: llc -O0 < %s -march=ppc32 -mcpu=ppc | FileCheck -check-prefix=OPT0-PPC32 %s
target triple = "powerpc64-unknown-linux-gnu"
@@ -38,3 +39,8 @@ entry:
; OPT1: ld [[REG2:[0-9]+]], a2@got@tprel@l([[REG1]])
; OPT1: add {{[0-9]+}}, [[REG2]], a2@tls
+;OPT0-PPC32-LABEL: main2:
+;OPT0-PPC32: li [[REG1:[0-9]+]], _GLOBAL_OFFSET_TABLE_@l
+;OPT0-PPC32: addis [[REG1]], [[REG1]], _GLOBAL_OFFSET_TABLE_@ha
+;OPT0-PPC32: lwz [[REG2:[0-9]+]], a2@got@tprel@l([[REG1]])
+;OPT0-PPC32: add 3, [[REG2]], a2@tls
OpenPOWER on IntegriCloud