1 ; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu -relocation-model=pic -regalloc=local > %t
2 ; RUN: grep {leaq foo@TLSGD(%rip), %rdi} %t
4 @foo = internal thread_local global i32 100
6 define void @f(i32 %n) nounwind {
10 %"alloca point" = bitcast i32 0 to i32
11 store i32 %n, i32* %n_addr
12 store i32* @foo, i32** %p, align 8