Split the Add, Sub, and Mul instruction opcodes into separate
[oota-llvm.git] / test / CodeGen / X86 / 2009-04-17-tls-fast.ll
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
3
4 @foo = internal thread_local global i32 100
5
6 define void @f(i32 %n) nounwind {
7 entry:
8         %n_addr = alloca i32
9         %p = alloca i32*
10         %"alloca point" = bitcast i32 0 to i32
11         store i32 %n, i32* %n_addr
12         store i32* @foo, i32** %p, align 8
13         br label %return
14
15 return:
16         ret void
17 }