brintos

brintos / llvm-project-archived public Read only

0
0
Text · 557 B · dc7cc9d Raw
21 lines · plain
1; REQUIRES: x862; RUN: llvm-as -o %t %s3; RUN: lld-link /entry:main /subsystem:console /out:%t.exe %t4; RUN: llvm-objdump --no-print-imm-hex -d %t.exe | FileCheck %s5 6target datalayout = "e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:32-n8:16:32-a:0:32-S32"7target triple = "i686-pc-windows-msvc"8 9@foo = thread_local global i8 010 11module asm "__tls_index = 1"12module asm "__tls_array = 2"13 14define ptr @main() {15  ; CHECK: movl 1, %eax16  ; CHECK: movl %fs:2, %ecx17  ; CHECK: movl (%ecx,%eax,4), %eax18  ; CHECK: leal (%eax), %eax19  ret ptr @foo20}21