blob: 5d3ee16a476f14b538940c26bfc3a07799c5a97e [file] [log] [blame]
Rafael Espindoladbcfb302009-04-10 10:09:34 +00001; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu > %t
2; RUN: grep {movl %gs:0, %eax} %t | count 1
3; RUN: grep {leal i@NTPOFF(%eax), %ecx} %t
4; RUN: grep {leal j@NTPOFF(%eax), %eax} %t
5
6@i = thread_local global i32 0
7@j = thread_local global i32 0
8
9define void @f(i32** %a, i32** %b) {
10entry:
11 store i32* @i, i32** %a, align 8
12 store i32* @j, i32** %b, align 8
13 ret void
14}