From: Chris Lattner Date: Fri, 7 Aug 2009 23:57:30 +0000 (+0000) Subject: rename test X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=ce0e9abef37bc8d4a2ed452bf495ebf7daf61332;p=oota-llvm.git rename test git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78441 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/X86/tls-pic.ll b/test/CodeGen/X86/tls-pic.ll new file mode 100644 index 00000000000..aa3d808a80e --- /dev/null +++ b/test/CodeGen/X86/tls-pic.ll @@ -0,0 +1,67 @@ +; 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 @f1() { +entry: + %tmp1 = load i32* @i + ret i32 %tmp1 +} + +; X32: f1: +; X32: leal i@TLSGD(,%ebx), %eax +; X32: call ___tls_get_addr@PLT + +; X64: f1: +; X64: leaq i@TLSGD(%rip), %rdi +; X64: call __tls_get_addr@PLT + + +@i2 = external thread_local global i32 + +define i32* @f2() { +entry: + ret i32* @i +} + +; X32: f2: +; X32: leal i@TLSGD(,%ebx), %eax +; X32: call ___tls_get_addr@PLT + +; X64: f2: +; X64: leaq i@TLSGD(%rip), %rdi +; X64: call __tls_get_addr@PLT + + + +define i32 @f3() { +entry: + %tmp1 = load i32* @i ; [#uses=1] + ret i32 %tmp1 +} + +; X32: f3: +; X32: leal i@TLSGD(,%ebx), %eax +; X32: call ___tls_get_addr@PLT + +; X64: f3: +; X64: leaq i@TLSGD(%rip), %rdi +; X64: call __tls_get_addr@PLT + + +define i32* @f4() nounwind { +entry: + ret i32* @i +} + +; X32: f4: +; X32: leal i@TLSGD(,%ebx), %eax +; X32: call ___tls_get_addr@PLT + +; X64: f4: +; X64: leaq i@TLSGD(%rip), %rdi +; X64: call __tls_get_addr@PLT + + + diff --git a/test/CodeGen/X86/tls1-pic.ll b/test/CodeGen/X86/tls1-pic.ll deleted file mode 100644 index aa3d808a80e..00000000000 --- a/test/CodeGen/X86/tls1-pic.ll +++ /dev/null @@ -1,67 +0,0 @@ -; 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 @f1() { -entry: - %tmp1 = load i32* @i - ret i32 %tmp1 -} - -; X32: f1: -; X32: leal i@TLSGD(,%ebx), %eax -; X32: call ___tls_get_addr@PLT - -; X64: f1: -; X64: leaq i@TLSGD(%rip), %rdi -; X64: call __tls_get_addr@PLT - - -@i2 = external thread_local global i32 - -define i32* @f2() { -entry: - ret i32* @i -} - -; X32: f2: -; X32: leal i@TLSGD(,%ebx), %eax -; X32: call ___tls_get_addr@PLT - -; X64: f2: -; X64: leaq i@TLSGD(%rip), %rdi -; X64: call __tls_get_addr@PLT - - - -define i32 @f3() { -entry: - %tmp1 = load i32* @i ; [#uses=1] - ret i32 %tmp1 -} - -; X32: f3: -; X32: leal i@TLSGD(,%ebx), %eax -; X32: call ___tls_get_addr@PLT - -; X64: f3: -; X64: leaq i@TLSGD(%rip), %rdi -; X64: call __tls_get_addr@PLT - - -define i32* @f4() nounwind { -entry: - ret i32* @i -} - -; X32: f4: -; X32: leal i@TLSGD(,%ebx), %eax -; X32: call ___tls_get_addr@PLT - -; X64: f4: -; X64: leaq i@TLSGD(%rip), %rdi -; X64: call __tls_get_addr@PLT - - -