blob: f8543c089f2cd119a94c9429c4439817e92e2c56 [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 {movw %gs:i@NTPOFF, %ax} %t
Rafael Espindolab316f902009-03-11 22:40:04 +00003
4@i = thread_local global i16 15
5
6define i16 @f() {
7entry:
8 %tmp1 = load i16* @i
9 ret i16 %tmp1
10}