diff options
Diffstat (limited to 'llvm/test/CodeGen/X86/tls5.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/tls5.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/tls5.ll b/llvm/test/CodeGen/X86/tls5.ll new file mode 100644 index 00000000000..b32f5fc3342 --- /dev/null +++ b/llvm/test/CodeGen/X86/tls5.ll @@ -0,0 +1,10 @@ +; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu > %t +; RUN: grep {movl %gs:i@NTPOFF, %eax} %t + +@i = internal thread_local global i32 15 + +define i32 @f() { +entry: + %tmp1 = load i32* @i + ret i32 %tmp1 +} |