diff options
author | Shih-wei Liao <sliao@google.com> | 2010-02-10 11:10:31 -0800 |
---|---|---|
committer | Shih-wei Liao <sliao@google.com> | 2010-02-10 11:10:31 -0800 |
commit | e264f62ca09a8f65c87a46d562a4d0f9ec5d457e (patch) | |
tree | 59e3d57ef656cef79afa708ae0a3daf25cd91fcf /test/CodeGen/X86/tls15.ll | |
download | external_llvm-e264f62ca09a8f65c87a46d562a4d0f9ec5d457e.zip external_llvm-e264f62ca09a8f65c87a46d562a4d0f9ec5d457e.tar.gz external_llvm-e264f62ca09a8f65c87a46d562a4d0f9ec5d457e.tar.bz2 |
Check in LLVM r95781.
Diffstat (limited to 'test/CodeGen/X86/tls15.ll')
-rw-r--r-- | test/CodeGen/X86/tls15.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGen/X86/tls15.ll b/test/CodeGen/X86/tls15.ll new file mode 100644 index 0000000..7abf070 --- /dev/null +++ b/test/CodeGen/X86/tls15.ll @@ -0,0 +1,18 @@ +; RUN: llc < %s -march=x86 -mtriple=i386-linux-gnu > %t +; 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: llc < %s -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 + +define void @f(i32** %a, i32** %b) { +entry: + store i32* @i, i32** %a, align 8 + store i32* @j, i32** %b, align 8 + ret void +} |