1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=i386 %s -o %t.o 3# RUN: ld.lld %t.o -o %t 4# RUN: llvm-objdump -d --no-show-raw-insn --print-imm-hex %t | FileCheck %s 5 6# -alignTo(p_memsz, p_align) = -alignTo(4, 64) = -64 7 8# CHECK: movl %gs:0xffffffc0, %eax 9 movl %gs:a@NTPOFF, %eax 10 11# CHECK-NEXT: subl $0x40, %edx 12 subl $a@tpoff, %edx 13 14# GD to LE relaxation. 15# CHECK-NEXT: movl %gs:0x0, %eax 16# CHECK-NEXT: subl $0x40, %eax 17 leal a@tlsgd(,%ebx,1), %eax 18 call ___tls_get_addr@plt 19 ret 20 21.globl ___tls_get_addr 22.type ___tls_get_addr,@function 23___tls_get_addr: 24 25.section .tbss,"awT" 26.align 64 27a: 28.long 0 29.size a, 4 30