mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-16 11:05:54 +00:00
2bce5f4b56
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102493 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
302 B
LLVM
13 lines
302 B
LLVM
; RUN: llc < %s -march=x86 -mtriple=i386-linux-gnu > %t
|
|
; RUN: grep {movzwl %gs:i@NTPOFF, %eax} %t
|
|
; RUN: llc < %s -march=x86-64 -mtriple=x86_64-linux-gnu > %t2
|
|
; RUN: grep {movzwl %fs:i@TPOFF, %eax} %t2
|
|
|
|
@i = thread_local global i16 15
|
|
|
|
define i16 @f() {
|
|
entry:
|
|
%tmp1 = load i16* @i
|
|
ret i16 %tmp1
|
|
}
|