blob: 514a168c5387824bb18aaf3a92951b624f29c99f [file] [log] [blame]
Dan Gohman36a09472009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86 -mtriple=i386-linux-gnu > %t
Evan Cheng2bce5f4b2010-04-28 08:30:49 +00002; RUN: grep {movzwl %gs:i@NTPOFF, %eax} %t
Dan Gohman36a09472009-09-08 23:54:48 +00003; RUN: llc < %s -march=x86-64 -mtriple=x86_64-linux-gnu > %t2
Evan Cheng2bce5f4b2010-04-28 08:30:49 +00004; RUN: grep {movzwl %fs:i@TPOFF, %eax} %t2
Rafael Espindolab316f902009-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}