diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-07-28 17:57:51 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-07-28 17:57:51 +0000 |
| commit | bf15e433b9ac6692e76aff0465cd93bb87f68989 (patch) | |
| tree | ebd591a7262ace484b10f7c1374937392b4e4061 /test/CodeGen | |
| parent | 4bb253c60f895131371aa2ad1bfa5a2bea213f78 (diff) | |
| download | llvm-bf15e433b9ac6692e76aff0465cd93bb87f68989.tar.gz llvm-bf15e433b9ac6692e76aff0465cd93bb87f68989.tar.bz2 llvm-bf15e433b9ac6692e76aff0465cd93bb87f68989.tar.xz | |
Fix PR4639, a ELF-TLS regression from some of my refactoring.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77336 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
| -rw-r--r-- | test/CodeGen/X86/global-sections-tls.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/X86/global-sections-tls.ll b/test/CodeGen/X86/global-sections-tls.ll new file mode 100644 index 0000000000..a80cf327c0 --- /dev/null +++ b/test/CodeGen/X86/global-sections-tls.ll @@ -0,0 +1,14 @@ +; RUN: llvm-as < %s | llc -mtriple=i386-unknown-linux-gnu | FileCheck %s -check-prefix=LINUX + +; PR4639 +@G1 = internal thread_local global i32 0 ; <i32*> [#uses=1] +; LINUX: .section .tbss,"awT",@nobits +; LINUX: G1: + + +define i32* @foo() nounwind readnone { +entry: + ret i32* @G1 +} + + |
