26 lines · plain
1# REQUIRES: aarch642# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-linux %p/Inputs/aarch64-tls-ie.s -o %ttlsie.o3# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-linux %s -o %tmain.o4# RUN: ld.lld %tmain.o %ttlsie.o -o %tout5# RUN: llvm-objdump --no-print-imm-hex -d --no-show-raw-insn %tout | FileCheck %s6# RUN: llvm-readobj -r %tout | FileCheck -check-prefix=RELOC %s7 8## Local-Dynamic to Local-Exec relax creates no dynamic relocations.9# RELOC: Relocations [10# RELOC-NEXT: ]11 12# TCB size = 0x16 and foo is first element from TLS register.13# CHECK-LABEL: <_start>:14# CHECK-NEXT: 2101c8: movz x0, #0, lsl #1615# CHECK-NEXT: 2101cc: movk x0, #1616# CHECK-NEXT: 2101d0: nop17# CHECK-NEXT: 2101d4: nop18 19.globl _start20_start:21 adrp x0, :tlsdesc:foo22 ldr x1, [x0, :tlsdesc_lo12:foo]23 add x0, x0, :tlsdesc_lo12:foo24 .tlsdesccall foo25 blr x126