brintos

brintos / llvm-project-archived public Read only

0
0
Text · 785 B · 0575380 Raw
36 lines · plain
1# RUN: %clang %cflags %s -o %t.so -fPIC -shared -Wl,-q2# RUN: llvm-bolt %t.so -o %t.bolt --debug-only=bolt 2>&1 | FileCheck %s3 4# REQUIRES: asserts5 6## Verify that R_AARCH64_TLSDESC_CALL relocations are ignored7 8# CHECK-NOT: Relocation {{.*}} R_AARCH64_TLSDESC_CALL9 10  .text11  .globl  get_tls_var12  .p2align  213  .type get_tls_var,@function14get_tls_var:15  .cfi_startproc16  str     x30, [sp, #-16]!17  adrp  x0, :tlsdesc:tls_var18  ldr x1, [x0, :tlsdesc_lo12:tls_var]19  add x0, x0, :tlsdesc_lo12:tls_var20  .tlsdesccall tls_var21  blr x122  mrs x8, TPIDR_EL023  ldr w0, [x8, x0]24  ldr x30, [sp], #1625  ret26  .size get_tls_var, .-get_tls_var27  .cfi_endproc28 29  .type tls_var,@object30  .section  .tdata,"awT",@progbits31  .globl  tls_var32  .p2align  2, 0x033tls_var:34  .word 4235  .size tls_var, 436