2 # RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-linux %p/Inputs/aarch64-tls-ie.s -o %ttlsie.o
3 # RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-linux %s -o %tmain.o
4 # RUN: ld.lld %tmain.o %ttlsie.o -o %tout
5 # RUN: llvm-objdump -d %tout | FileCheck %s
6 # RUN: llvm-readobj -s -r %tout | FileCheck -check-prefix=RELOC %s
8 # Initial-Exec to Local-Exec relax creates no dynamic relocations.
12 # TCB size = 0x16 and foo is first element from TLS register.
13 # CHECK: Disassembly of section .text:
15 # CHECK-NEXT: 20000: 00 00 a0 d2 movz x0, #0, lsl #16
16 # CHECK-NEXT: 20004: 80 02 80 f2 movk x0, #20
17 # CHECK-NEXT: 20008: 00 00 a0 d2 movz x0, #0, lsl #16
18 # CHECK-NEXT: 2000c: 00 02 80 f2 movk x0, #16
22 .type foo_local, %object
30 adrp x0, :gottprel:foo
31 ldr x0, [x0, :gottprel_lo12:foo]
32 adrp x0, :gottprel:foo_local
33 ldr x0, [x0, :gottprel_lo12:foo_local]