[llvm-commits] [llvm] r78439 - in /llvm/trunk/test/CodeGen/X86: 2009-04-17-tls-fast.ll tls1-pic.ll tls2-pic.ll tls3-pic.ll tls4-pic.ll
Chris Lattner
sabre at nondot.org
Fri Aug 7 16:56:42 PDT 2009
Author: lattner
Date: Fri Aug 7 18:56:42 2009
New Revision: 78439
URL: http://llvm.org/viewvc/llvm-project?rev=78439&view=rev
Log:
merge a bunch of tests together into one, convert to filecheck which
is more tolerant of whitespace differences.
Removed:
llvm/trunk/test/CodeGen/X86/2009-04-17-tls-fast.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
Removed: llvm/trunk/test/CodeGen/X86/2009-04-17-tls-fast.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/2009-04-17-tls-fast.ll?rev=78438&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/2009-04-17-tls-fast.ll (original)
+++ llvm/trunk/test/CodeGen/X86/2009-04-17-tls-fast.ll (removed)
@@ -1,17 +0,0 @@
-; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu -relocation-model=pic -regalloc=local > %t
-; RUN: grep {leaq foo at TLSGD(%rip), %rdi} %t
-
- at foo = internal thread_local global i32 100
-
-define void @f(i32 %n) nounwind {
-entry:
- %n_addr = alloca i32
- %p = alloca i32*
- %"alloca point" = bitcast i32 0 to i32
- store i32 %n, i32* %n_addr
- store i32* @foo, i32** %p, align 8
- br label %return
-
-return:
- ret void
-}
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=78439&r1=78438&r2=78439&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/tls1-pic.ll (original)
+++ llvm/trunk/test/CodeGen/X86/tls1-pic.ll Fri Aug 7 18:56:42 2009
@@ -1,14 +1,67 @@
-; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu -relocation-model=pic > %t
-; RUN: grep {leal i at TLSGD(,%ebx), %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
+; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu -relocation-model=pic | FileCheck -check-prefix=X32 %s
+; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu -relocation-model=pic | FileCheck -check-prefix=X64 %s
@i = thread_local global i32 15
-define i32 @f() {
+define i32 @f1() {
entry:
%tmp1 = load i32* @i
ret i32 %tmp1
}
+
+; X32: f1:
+; X32: leal i at TLSGD(,%ebx), %eax
+; X32: call ___tls_get_addr at PLT
+
+; X64: f1:
+; X64: leaq i at TLSGD(%rip), %rdi
+; X64: call __tls_get_addr at PLT
+
+
+ at i2 = external thread_local global i32
+
+define i32* @f2() {
+entry:
+ ret i32* @i
+}
+
+; X32: f2:
+; X32: leal i at TLSGD(,%ebx), %eax
+; X32: call ___tls_get_addr at PLT
+
+; X64: f2:
+; X64: leaq i at TLSGD(%rip), %rdi
+; X64: call __tls_get_addr at PLT
+
+
+
+define i32 @f3() {
+entry:
+ %tmp1 = load i32* @i ; <i32> [#uses=1]
+ ret i32 %tmp1
+}
+
+; X32: f3:
+; X32: leal i at TLSGD(,%ebx), %eax
+; X32: call ___tls_get_addr at PLT
+
+; X64: f3:
+; X64: leaq i at TLSGD(%rip), %rdi
+; X64: call __tls_get_addr at PLT
+
+
+define i32* @f4() nounwind {
+entry:
+ ret i32* @i
+}
+
+; X32: f4:
+; X32: leal i at TLSGD(,%ebx), %eax
+; X32: call ___tls_get_addr at PLT
+
+; X64: f4:
+; X64: leaq i at TLSGD(%rip), %rdi
+; X64: call __tls_get_addr at PLT
+
+
+
Removed: llvm/trunk/test/CodeGen/X86/tls2-pic.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/tls2-pic.ll?rev=78438&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/tls2-pic.ll (original)
+++ llvm/trunk/test/CodeGen/X86/tls2-pic.ll (removed)
@@ -1,13 +0,0 @@
-; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu -relocation-model=pic > %t
-; RUN: grep {leal i at TLSGD(,%ebx), %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
-
- at i = thread_local global i32 15
-
-define i32* @f() nounwind {
-entry:
- ret i32* @i
-}
Removed: llvm/trunk/test/CodeGen/X86/tls3-pic.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/tls3-pic.ll?rev=78438&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/tls3-pic.ll (original)
+++ llvm/trunk/test/CodeGen/X86/tls3-pic.ll (removed)
@@ -1,14 +0,0 @@
-; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu -relocation-model=pic > %t
-; RUN: grep {leal i at TLSGD(,%ebx), %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
-
- at i = external thread_local global i32 ; <i32*> [#uses=2]
-
-define i32 @f() {
-entry:
- %tmp1 = load i32* @i ; <i32> [#uses=1]
- ret i32 %tmp1
-}
Removed: llvm/trunk/test/CodeGen/X86/tls4-pic.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/tls4-pic.ll?rev=78438&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/tls4-pic.ll (original)
+++ llvm/trunk/test/CodeGen/X86/tls4-pic.ll (removed)
@@ -1,13 +0,0 @@
-; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu -relocation-model=pic > %t
-; RUN: grep {leal i at TLSGD(,%ebx), %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
-
- at i = external thread_local global i32 ; <i32*> [#uses=2]
-
-define i32* @f() {
-entry:
- ret i32* @i
-}
More information about the llvm-commits
mailing list