Add tests for the parts of X86-64 TLS that are already implemented.
authorRafael Espindola <rafael.espindola@gmail.com>
Sun, 12 Apr 2009 10:43:41 +0000 (10:43 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sun, 12 Apr 2009 10:43:41 +0000 (10:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68901 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/tls1-pic.ll
test/CodeGen/X86/tls2-pic.ll
test/CodeGen/X86/tls3-pic.ll
test/CodeGen/X86/tls4-pic.ll

index 0674f798895d02c914275824735754484243e653..a73e75ba80689c323ef650525ad611361aaf0f08 100644 (file)
@@ -1,6 +1,9 @@
 ; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu -relocation-model=pic > %t
 ; RUN: grep {leal      i@TLSGD(,%ebx,1), %eax} %t
 ; RUN: grep {call      ___tls_get_addr@PLT} %t
+; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu -relocation-model=pic > %t2
+; RUN: grep {leaq      i@TLSGD(%rip), %rdi} %t2
+; RUN: grep {call      __tls_get_addr@PLT} %t2
 
 @i = thread_local global i32 15
 
index 0ecb6737ebbb259664ab8ff6c4f1f81c864553d4..cdfe97ca0b04f35950d9a66a71d42d2687ae3829 100644 (file)
@@ -1,6 +1,9 @@
 ; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu -relocation-model=pic > %t
 ; RUN: grep {leal      i@TLSGD(,%ebx,1), %eax} %t
 ; RUN: grep {call      ___tls_get_addr@PLT} %t
+; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu -relocation-model=pic > %t2
+; RUN: grep {leaq      i@TLSGD(%rip), %rdi} %t2
+; RUN: grep {call      __tls_get_addr@PLT} %t2
 
 @i = thread_local global i32 15
 
index 80fad480582f46c2916c4d0d09dce6516fa9ee21..f62cca218ab031e4037d309038143b49e69d4271 100644 (file)
@@ -1,6 +1,9 @@
 ; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu -relocation-model=pic  > %t
 ; RUN: grep {leal      i@TLSGD(,%ebx,1), %eax} %t
 ; RUN: grep {call      ___tls_get_addr@PLT} %t
+; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu -relocation-model=pic > %t2
+; RUN: grep {leaq      i@TLSGD(%rip), %rdi} %t2
+; RUN: grep {call      __tls_get_addr@PLT} %t2
 
 @i = external thread_local global i32          ; <i32*> [#uses=2]
 
index 135d746bf586f941d9601f5f5bef77ee2c56e16b..ec3d43591cd3c771360cefd5fe4048820efed6b7 100644 (file)
@@ -1,6 +1,9 @@
 ; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu -relocation-model=pic > %t
 ; RUN: grep {leal      i@TLSGD(,%ebx,1), %eax} %t
 ; RUN: grep {call      ___tls_get_addr@PLT} %t
+; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu -relocation-model=pic > %t2
+; RUN: grep {leaq      i@TLSGD(%rip), %rdi} %t2
+; RUN: grep {call      __tls_get_addr@PLT} %t2
 
 @i = external thread_local global i32          ; <i32*> [#uses=2]