2009-09-09 07:54:48 +08:00
|
|
|
; RUN: llc < %s -march=x86 -mtriple=i386-linux-gnu > %t
|
2010-04-28 16:30:49 +08:00
|
|
|
; RUN: grep {movzwl %gs:i@NTPOFF, %eax} %t
|
2009-09-09 07:54:48 +08:00
|
|
|
; RUN: llc < %s -march=x86-64 -mtriple=x86_64-linux-gnu > %t2
|
2010-04-28 16:30:49 +08:00
|
|
|
; RUN: grep {movzwl %fs:i@TPOFF, %eax} %t2
|
2009-03-12 06:40:04 +08:00
|
|
|
|
|
|
|
@i = thread_local global i16 15
|
|
|
|
|
|
|
|
define i16 @f() {
|
|
|
|
entry:
|
|
|
|
%tmp1 = load i16* @i
|
|
|
|
ret i16 %tmp1
|
|
|
|
}
|