blob: b5288391f03f011d17514a3545f6824ee4bbf9ff [file] [log] [blame]
Rafael Espindolab316f902009-03-11 22:40:04 +00001; RUN: llvm-as < %s | llc -march=x86 -mtriple=i386-linux-gnu > %t
Rafael Espindola152932b2009-03-17 23:43:59 +00002; RUN: grep {movb %gs:i@NTPOFF, %al} %t
Rafael Espindola7ff5bff2009-04-13 13:02:49 +00003; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu > %t2
4; RUN: grep {movb %fs:i@TPOFF, %al} %t2
Rafael Espindolab316f902009-03-11 22:40:04 +00005
6@i = thread_local global i8 15
7
8define i8 @f() {
9entry:
10 %tmp1 = load i8* @i
11 ret i8 %tmp1
12}