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