[llvm-commits] [llvm] r68901 - in /llvm/trunk/test/CodeGen/X86: tls1-pic.ll tls2-pic.ll tls3-pic.ll tls4-pic.ll

Rafael Espindola rafael.espindola at gmail.com
Sun Apr 12 03:43:49 PDT 2009


Author: rafael
Date: Sun Apr 12 05:43:41 2009
New Revision: 68901

URL: http://llvm.org/viewvc/llvm-project?rev=68901&view=rev
Log:
Add tests for the parts of X86-64 TLS that are already implemented.


Modified:
    llvm/trunk/test/CodeGen/X86/tls1-pic.ll
    llvm/trunk/test/CodeGen/X86/tls2-pic.ll
    llvm/trunk/test/CodeGen/X86/tls3-pic.ll
    llvm/trunk/test/CodeGen/X86/tls4-pic.ll

Modified: llvm/trunk/test/CodeGen/X86/tls1-pic.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/tls1-pic.ll?rev=68901&r1=68900&r2=68901&view=diff

==============================================================================
--- llvm/trunk/test/CodeGen/X86/tls1-pic.ll (original)
+++ llvm/trunk/test/CodeGen/X86/tls1-pic.ll Sun Apr 12 05:43:41 2009
@@ -1,6 +1,9 @@
 ; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu -relocation-model=pic > %t
 ; RUN: grep {leal	i at TLSGD(,%ebx,1), %eax} %t
 ; RUN: grep {call	___tls_get_addr at PLT} %t
+; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu -relocation-model=pic > %t2
+; RUN: grep {leaq	i at TLSGD(%rip), %rdi} %t2
+; RUN: grep {call	__tls_get_addr at PLT} %t2
 
 @i = thread_local global i32 15
 

Modified: llvm/trunk/test/CodeGen/X86/tls2-pic.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/tls2-pic.ll?rev=68901&r1=68900&r2=68901&view=diff

==============================================================================
--- llvm/trunk/test/CodeGen/X86/tls2-pic.ll (original)
+++ llvm/trunk/test/CodeGen/X86/tls2-pic.ll Sun Apr 12 05:43:41 2009
@@ -1,6 +1,9 @@
 ; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu -relocation-model=pic > %t
 ; RUN: grep {leal	i at TLSGD(,%ebx,1), %eax} %t
 ; RUN: grep {call	___tls_get_addr at PLT} %t
+; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu -relocation-model=pic > %t2
+; RUN: grep {leaq	i at TLSGD(%rip), %rdi} %t2
+; RUN: grep {call	__tls_get_addr at PLT} %t2
 
 @i = thread_local global i32 15
 

Modified: llvm/trunk/test/CodeGen/X86/tls3-pic.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/tls3-pic.ll?rev=68901&r1=68900&r2=68901&view=diff

==============================================================================
--- llvm/trunk/test/CodeGen/X86/tls3-pic.ll (original)
+++ llvm/trunk/test/CodeGen/X86/tls3-pic.ll Sun Apr 12 05:43:41 2009
@@ -1,6 +1,9 @@
 ; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu -relocation-model=pic  > %t
 ; RUN: grep {leal	i at TLSGD(,%ebx,1), %eax} %t
 ; RUN: grep {call	___tls_get_addr at PLT} %t
+; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu -relocation-model=pic > %t2
+; RUN: grep {leaq	i at TLSGD(%rip), %rdi} %t2
+; RUN: grep {call	__tls_get_addr at PLT} %t2
 
 @i = external thread_local global i32		; <i32*> [#uses=2]
 

Modified: llvm/trunk/test/CodeGen/X86/tls4-pic.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/tls4-pic.ll?rev=68901&r1=68900&r2=68901&view=diff

==============================================================================
--- llvm/trunk/test/CodeGen/X86/tls4-pic.ll (original)
+++ llvm/trunk/test/CodeGen/X86/tls4-pic.ll Sun Apr 12 05:43:41 2009
@@ -1,6 +1,9 @@
 ; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu -relocation-model=pic > %t
 ; RUN: grep {leal	i at TLSGD(,%ebx,1), %eax} %t
 ; RUN: grep {call	___tls_get_addr at PLT} %t
+; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu -relocation-model=pic > %t2
+; RUN: grep {leaq	i at TLSGD(%rip), %rdi} %t2
+; RUN: grep {call	__tls_get_addr at PLT} %t2
 
 @i = external thread_local global i32		; <i32*> [#uses=2]
 





More information about the llvm-commits mailing list