blob: 31466997d1945671151a02849b4eb47987fbf0b5 [file] [log] [blame]
Rafael Espindola7b620af2009-02-27 13:37:18 +00001; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu > %t
2; RUN: grep {movl %gs:0, %eax} %t
3; RUN: grep {addl i@INDNTPOFF, %eax} %t
4
5@i = external thread_local global i32 ; <i32*> [#uses=2]
6
7define i32* @f() {
8entry:
9 ret i32* @i
10}