diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2009-04-13 13:02:49 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2009-04-13 13:02:49 +0000 |
| commit | 7ff5bff45eaa1fabf8bb910daf2907cf981cbf3d (patch) | |
| tree | b810d1163b4fa5dfcdaf9a9ef93767ce4c18a53a /test/CodeGen | |
| parent | 12f23a86e22d66a2ec67ff7f4423688a1282e684 (diff) | |
| download | llvm-7ff5bff45eaa1fabf8bb910daf2907cf981cbf3d.tar.gz llvm-7ff5bff45eaa1fabf8bb910daf2907cf981cbf3d.tar.bz2 llvm-7ff5bff45eaa1fabf8bb910daf2907cf981cbf3d.tar.xz | |
X86-64 TLS support for local exec and initial exec.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68947 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
| -rw-r--r-- | test/CodeGen/X86/tls1.ll | 2 | ||||
| -rw-r--r-- | test/CodeGen/X86/tls10.ll | 3 | ||||
| -rw-r--r-- | test/CodeGen/X86/tls11.ll | 2 | ||||
| -rw-r--r-- | test/CodeGen/X86/tls12.ll | 2 | ||||
| -rw-r--r-- | test/CodeGen/X86/tls13.ll | 3 | ||||
| -rw-r--r-- | test/CodeGen/X86/tls14.ll | 3 | ||||
| -rw-r--r-- | test/CodeGen/X86/tls15.ll | 4 | ||||
| -rw-r--r-- | test/CodeGen/X86/tls2.ll | 3 | ||||
| -rw-r--r-- | test/CodeGen/X86/tls3.ll | 3 | ||||
| -rw-r--r-- | test/CodeGen/X86/tls4.ll | 3 | ||||
| -rw-r--r-- | test/CodeGen/X86/tls5.ll | 2 | ||||
| -rw-r--r-- | test/CodeGen/X86/tls6.ll | 3 | ||||
| -rw-r--r-- | test/CodeGen/X86/tls7.ll | 2 | ||||
| -rw-r--r-- | test/CodeGen/X86/tls8.ll | 3 | ||||
| -rw-r--r-- | test/CodeGen/X86/tls9.ll | 2 |
15 files changed, 40 insertions, 0 deletions
diff --git a/test/CodeGen/X86/tls1.ll b/test/CodeGen/X86/tls1.ll index ccff7180eb..5155dfd4a1 100644 --- a/test/CodeGen/X86/tls1.ll +++ b/test/CodeGen/X86/tls1.ll @@ -1,5 +1,7 @@ ; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu > %t ; RUN: grep {movl %gs:i@NTPOFF, %eax} %t +; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu > %t2 +; RUN: grep {movl %fs:i@TPOFF, %eax} %t2 @i = thread_local global i32 15 diff --git a/test/CodeGen/X86/tls10.ll b/test/CodeGen/X86/tls10.ll index a4f2fb1293..2f5f02b9ac 100644 --- a/test/CodeGen/X86/tls10.ll +++ b/test/CodeGen/X86/tls10.ll @@ -1,6 +1,9 @@ ; 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: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu > %t2 +; RUN: grep {movq %fs:0, %rax} %t2 +; RUN: grep {leaq i@TPOFF(%rax), %rax} %t2 @i = external hidden thread_local global i32 diff --git a/test/CodeGen/X86/tls11.ll b/test/CodeGen/X86/tls11.ll index f8543c089f..b6aed9aaa0 100644 --- a/test/CodeGen/X86/tls11.ll +++ b/test/CodeGen/X86/tls11.ll @@ -1,5 +1,7 @@ ; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu > %t ; RUN: grep {movw %gs:i@NTPOFF, %ax} %t +; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu > %t2 +; RUN: grep {movw %fs:i@TPOFF, %ax} %t2 @i = thread_local global i16 15 diff --git a/test/CodeGen/X86/tls12.ll b/test/CodeGen/X86/tls12.ll index 17ea996aa4..b5288391f0 100644 --- a/test/CodeGen/X86/tls12.ll +++ b/test/CodeGen/X86/tls12.ll @@ -1,5 +1,7 @@ ; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu > %t ; RUN: grep {movb %gs:i@NTPOFF, %al} %t +; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu > %t2 +; RUN: grep {movb %fs:i@TPOFF, %al} %t2 @i = thread_local global i8 15 diff --git a/test/CodeGen/X86/tls13.ll b/test/CodeGen/X86/tls13.ll index 3089443985..ec23a41113 100644 --- a/test/CodeGen/X86/tls13.ll +++ b/test/CodeGen/X86/tls13.ll @@ -1,6 +1,9 @@ ; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu > %t ; RUN: grep {movswl %gs:i@NTPOFF, %eax} %t ; RUN: grep {movzwl %gs:j@NTPOFF, %eax} %t +; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu > %t2 +; RUN: grep {movswl %fs:i@TPOFF, %edi} %t2 +; RUN: grep {movzwl %fs:j@TPOFF, %edi} %t2 @i = thread_local global i16 0 @j = thread_local global i16 0 diff --git a/test/CodeGen/X86/tls14.ll b/test/CodeGen/X86/tls14.ll index d3401b6553..941601eb4f 100644 --- a/test/CodeGen/X86/tls14.ll +++ b/test/CodeGen/X86/tls14.ll @@ -1,6 +1,9 @@ ; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu > %t ; RUN: grep {movsbl %gs:i@NTPOFF, %eax} %t ; RUN: grep {movzbl %gs:j@NTPOFF, %eax} %t +; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu > %t2 +; RUN: grep {movsbl %fs:i@TPOFF, %edi} %t2 +; RUN: grep {movzbl %fs:j@TPOFF, %edi} %t2 @i = thread_local global i8 0 @j = thread_local global i8 0 diff --git a/test/CodeGen/X86/tls15.ll b/test/CodeGen/X86/tls15.ll index 5d3ee16a47..62f3677629 100644 --- a/test/CodeGen/X86/tls15.ll +++ b/test/CodeGen/X86/tls15.ll @@ -2,6 +2,10 @@ ; RUN: grep {movl %gs:0, %eax} %t | count 1 ; RUN: grep {leal i@NTPOFF(%eax), %ecx} %t ; RUN: grep {leal j@NTPOFF(%eax), %eax} %t +; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu > %t2 +; RUN: grep {movq %fs:0, %rax} %t2 | count 1 +; RUN: grep {leaq i@TPOFF(%rax), %rcx} %t2 +; RUN: grep {leaq j@TPOFF(%rax), %rax} %t2 @i = thread_local global i32 0 @j = thread_local global i32 0 diff --git a/test/CodeGen/X86/tls2.ll b/test/CodeGen/X86/tls2.ll index fb57ae1a39..baa51bbb6e 100644 --- a/test/CodeGen/X86/tls2.ll +++ b/test/CodeGen/X86/tls2.ll @@ -1,6 +1,9 @@ ; 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: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu > %t2 +; RUN: grep {movq %fs:0, %rax} %t2 +; RUN: grep {leaq i@TPOFF(%rax), %rax} %t2 @i = thread_local global i32 15 diff --git a/test/CodeGen/X86/tls3.ll b/test/CodeGen/X86/tls3.ll index 396e7901ac..e8d1a340ba 100644 --- a/test/CodeGen/X86/tls3.ll +++ b/test/CodeGen/X86/tls3.ll @@ -1,6 +1,9 @@ ; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu > %t ; RUN: grep {movl i@INDNTPOFF, %eax} %t ; RUN: grep {movl %gs:(%eax), %eax} %t +; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu > %t2 +; RUN: grep {movq i@GOTTPOFF(%rip), %rax} %t2 +; RUN: grep {movl %fs:(%rax), %eax} %t2 @i = external thread_local global i32 ; <i32*> [#uses=2] diff --git a/test/CodeGen/X86/tls4.ll b/test/CodeGen/X86/tls4.ll index 31466997d1..33f221b8ad 100644 --- a/test/CodeGen/X86/tls4.ll +++ b/test/CodeGen/X86/tls4.ll @@ -1,6 +1,9 @@ ; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu > %t ; RUN: grep {movl %gs:0, %eax} %t ; RUN: grep {addl i@INDNTPOFF, %eax} %t +; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu > %t2 +; RUN: grep {movq %fs:0, %rax} %t2 +; RUN: grep {addq i@GOTTPOFF(%rip), %rax} %t2 @i = external thread_local global i32 ; <i32*> [#uses=2] diff --git a/test/CodeGen/X86/tls5.ll b/test/CodeGen/X86/tls5.ll index b32f5fc334..ff7b9e0a5f 100644 --- a/test/CodeGen/X86/tls5.ll +++ b/test/CodeGen/X86/tls5.ll @@ -1,5 +1,7 @@ ; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu > %t ; RUN: grep {movl %gs:i@NTPOFF, %eax} %t +; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu > %t2 +; RUN: grep {movl %fs:i@TPOFF, %eax} %t2 @i = internal thread_local global i32 15 diff --git a/test/CodeGen/X86/tls6.ll b/test/CodeGen/X86/tls6.ll index e0bcade8dd..ab53929206 100644 --- a/test/CodeGen/X86/tls6.ll +++ b/test/CodeGen/X86/tls6.ll @@ -1,6 +1,9 @@ ; 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: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu > %t2 +; RUN: grep {movq %fs:0, %rax} %t2 +; RUN: grep {leaq i@TPOFF(%rax), %rax} %t2 @i = internal thread_local global i32 15 diff --git a/test/CodeGen/X86/tls7.ll b/test/CodeGen/X86/tls7.ll index eafa5c2c24..6a7739bc1a 100644 --- a/test/CodeGen/X86/tls7.ll +++ b/test/CodeGen/X86/tls7.ll @@ -1,5 +1,7 @@ ; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu > %t ; RUN: grep {movl %gs:i@NTPOFF, %eax} %t +; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu > %t2 +; RUN: grep {movl %fs:i@TPOFF, %eax} %t2 @i = hidden thread_local global i32 15 diff --git a/test/CodeGen/X86/tls8.ll b/test/CodeGen/X86/tls8.ll index 4971fd23ba..fd9d472bb6 100644 --- a/test/CodeGen/X86/tls8.ll +++ b/test/CodeGen/X86/tls8.ll @@ -1,6 +1,9 @@ ; 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: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu > %t2 +; RUN: grep {movq %fs:0, %rax} %t2 +; RUN: grep {leaq i@TPOFF(%rax), %rax} %t2 @i = hidden thread_local global i32 15 diff --git a/test/CodeGen/X86/tls9.ll b/test/CodeGen/X86/tls9.ll index 31dffcc18c..bc0a6f0bbe 100644 --- a/test/CodeGen/X86/tls9.ll +++ b/test/CodeGen/X86/tls9.ll @@ -1,5 +1,7 @@ ; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu > %t ; RUN: grep {movl %gs:i@NTPOFF, %eax} %t +; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu > %t2 +; RUN: grep {movl %fs:i@TPOFF, %eax} %t2 @i = external hidden thread_local global i32 |
