diff options
author | Roman Divacky <rdivacky@freebsd.org> | 2013-12-20 18:08:54 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@freebsd.org> | 2013-12-20 18:08:54 +0000 |
commit | ed4678820bf3e278dc660ca4dda8e79d268b0b08 (patch) | |
tree | 258c04f5e79ac58aa5cd9c6678354221ff160e01 /test/CodeGen/PowerPC/tls.ll | |
parent | 9413345f40c92f89b81edfc55a18fbd852dacd45 (diff) |
Implement initial-exec TLS for PPC32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197824 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/tls.ll')
-rw-r--r-- | test/CodeGen/PowerPC/tls.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/tls.ll b/test/CodeGen/PowerPC/tls.ll index fd4c682cc1a..59b4de75598 100644 --- a/test/CodeGen/PowerPC/tls.ll +++ b/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 |