From 32143e2bda60ee03492aebdd0bbab3ac85b994e7 Mon Sep 17 00:00:00 2001 From: Roman Divacky Date: Fri, 20 Dec 2013 18:08:54 +0000 Subject: Implement initial-exec TLS for PPC32. llvm-svn: 197824 --- llvm/test/CodeGen/PowerPC/tls.ll | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'llvm/test/CodeGen/PowerPC/tls.ll') 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 -- cgit v1.2.3