diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2009-04-10 10:09:34 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2009-04-10 10:09:34 +0000 |
commit | dbcfb3080a1e208aef8e4f13a94ce3aa8309643f (patch) | |
tree | e9158b75ba0a84dc6789a27a89cf8c051de5b8e9 /test/CodeGen/X86/tls6.ll | |
parent | cb8c4778d3b86d47475a3ba3dea86dc0c887e5af (diff) | |
download | external_llvm-dbcfb3080a1e208aef8e4f13a94ce3aa8309643f.zip external_llvm-dbcfb3080a1e208aef8e4f13a94ce3aa8309643f.tar.gz external_llvm-dbcfb3080a1e208aef8e4f13a94ce3aa8309643f.tar.bz2 |
Don't fold a load if the other operand is a TLS address.
With this we generate
movl %gs:0, %eax
leal i@NTPOFF(%eax), %eax
instead of
movl $i@NTPOFF, %eax
addl %gs:0, %eax
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68778 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/tls6.ll')
-rw-r--r-- | test/CodeGen/X86/tls6.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/X86/tls6.ll b/test/CodeGen/X86/tls6.ll index fc10a57..e0bcade 100644 --- a/test/CodeGen/X86/tls6.ll +++ b/test/CodeGen/X86/tls6.ll @@ -1,6 +1,6 @@ ; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu > %t -; RUN: grep {movl \$i@NTPOFF, %eax} %t -; RUN: grep {addl %gs:0, %eax} %t +; RUN: grep {movl %gs:0, %eax} %t +; RUN: grep {leal i@NTPOFF(%eax), %eax} %t @i = internal thread_local global i32 15 |