forked from OSchip/llvm-project
[ELF] Add {i386,x86-64}-tls-le-align.s to test TP offsets for TLS Variant 2
I forgot to add them in rLLD361084. I made another mistake, rLLD361084 fixed Variant 2, not Variant 1. llvm-svn: 361085
This commit is contained in:
parent
348731aeed
commit
db5cb0fce7
|
@ -0,0 +1,16 @@
|
|||
# REQUIRES: x86
|
||||
# RUN: llvm-mc -filetype=obj -triple=i386 %s -o %t.o
|
||||
# RUN: ld.lld %t.o -o %t
|
||||
# RUN: llvm-objdump -d --no-show-raw-insn --print-imm-hex %t | FileCheck %s
|
||||
|
||||
# -alignTo(p_memsz, p_align) = -alignTo(4, 64) = -64
|
||||
|
||||
# CHECK: movl %gs:0xffffffc0, %eax
|
||||
|
||||
movl %gs:a@NTPOFF, %eax
|
||||
|
||||
.section .tbss,"awT"
|
||||
.align 64
|
||||
a:
|
||||
.long 0
|
||||
.size a, 4
|
|
@ -0,0 +1,16 @@
|
|||
# REQUIRES: x86
|
||||
# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
|
||||
# RUN: ld.lld %t.o -o %t
|
||||
# RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck %s
|
||||
|
||||
# -alignTo(p_memsz, p_align) = -alignTo(4, 64) = -64
|
||||
|
||||
# CHECK: movl %fs:-64, %eax
|
||||
|
||||
movl %fs:a@TPOFF, %eax
|
||||
|
||||
.section .tbss,"awT"
|
||||
.align 64
|
||||
a:
|
||||
.long 0
|
||||
.size a, 4
|
Loading…
Reference in New Issue