summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/tls2.ll
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2009-04-07 21:37:46 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2009-04-07 21:37:46 +0000
commit1edda06792940406e77b5369c57fe0b468448ec8 (patch)
tree6d9bc6b22f58bc5611e01e17730118a607aa1f47 /llvm/test/CodeGen/X86/tls2.ll
parent9ecb84bb21edb1c4407fae35e149a307e2ba63ad (diff)
downloadbcm5719-llvm-1edda06792940406e77b5369c57fe0b468448ec8.tar.gz
bcm5719-llvm-1edda06792940406e77b5369c57fe0b468448ec8.zip
Reduce code duplication on the TLS implementation.
This introduces a small regression on the generated code quality in the case we are just computing addresses, not loading values. Will work on it and on X86-64 support. llvm-svn: 68552
Diffstat (limited to 'llvm/test/CodeGen/X86/tls2.ll')
-rw-r--r--llvm/test/CodeGen/X86/tls2.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/X86/tls2.ll b/llvm/test/CodeGen/X86/tls2.ll
index fb57ae1a391..8edc64ffba4 100644
--- a/llvm/test/CodeGen/X86/tls2.ll
+++ b/llvm/test/CodeGen/X86/tls2.ll
@@ -1,6 +1,6 @@
; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu > %t
-; RUN: grep {movl %gs:0, %eax} %t
-; RUN: grep {leal i@NTPOFF(%eax), %eax} %t
+; RUN: grep {movl \$i@NTPOFF, %eax} %t
+; RUN: grep {addl %gs:0, %eax} %t
@i = thread_local global i32 15
OpenPOWER on IntegriCloud