diff options
author | Quentin Colombet <qcolombet@apple.com> | 2016-01-06 19:09:26 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2016-01-06 19:09:26 +0000 |
commit | eb61e8e6b0fe5b0bd95669a716c09401203d2e79 (patch) | |
tree | b0e13c9a59a0475a80e86a779047fe972f824f86 /llvm/test/CodeGen/X86/cxx_tlscc64.ll | |
parent | 891419adc276e70861a59c0f13084b743dd90e76 (diff) | |
download | bcm5719-llvm-eb61e8e6b0fe5b0bd95669a716c09401203d2e79.tar.gz bcm5719-llvm-eb61e8e6b0fe5b0bd95669a716c09401203d2e79.zip |
[X86] Correctly model TLS calls w.r.t. frame requirements.
TLS calls need the stack frame to be properly set up and this
implies that such calls need ADJUSTSTACK_xxx markers.
Fixes PR25820.
llvm-svn: 256959
Diffstat (limited to 'llvm/test/CodeGen/X86/cxx_tlscc64.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/cxx_tlscc64.ll | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/cxx_tlscc64.ll b/llvm/test/CodeGen/X86/cxx_tlscc64.ll index c229521cc9a..16e678a9222 100644 --- a/llvm/test/CodeGen/X86/cxx_tlscc64.ll +++ b/llvm/test/CodeGen/X86/cxx_tlscc64.ll @@ -1,5 +1,9 @@ ; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s -; RUN: llc < %s -mtriple=x86_64-apple-darwin -enable-shrink-wrap=true | FileCheck --check-prefix=SHRINK %s +; TLS function were wrongly model and after fixing that, shrink-wrapping +; cannot help here. To achieve the expected lowering, we need to playing +; tricks similar to AArch64 fast TLS calling convention (r255821). +; Re-enable the following run line when +; _RUN_: llc < %s -mtriple=x86_64-apple-darwin -enable-shrink-wrap=true | FileCheck --check-prefix=SHRINK %s %struct.S = type { i8 } @sg = internal thread_local global %struct.S zeroinitializer, align 1 |