Path: blob/main/contrib/llvm-project/compiler-rt/lib/orc/elfnix_tls.x86-64.S
39566 views
1//===-- orc_rt_elfnix_tls_x86-64.s -------------------------------*- ASM -*-===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8//9// This file is a part of the ORC runtime support library.10//11//===----------------------------------------------------------------------===//1213// The content of this file is x86_64-only14#if defined(__x86_64__)1516#define REGISTER_SAVE_SPACE_SIZE 5121718.text1920// returns address of TLV in %rax, all other registers preserved21.globl ___orc_rt_elfnix_tls_get_addr22___orc_rt_elfnix_tls_get_addr:23pushq %rbp24movq %rsp, %rbp25subq $REGISTER_SAVE_SPACE_SIZE, %rsp26movq %rcx, -16(%rbp)27movq %rdx, -24(%rbp)28movq %rsi, -32(%rbp)29movq %rdi, -40(%rbp)30movq %r8, -48(%rbp)31movq %r9, -56(%rbp)32movq %r10, -64(%rbp)33movq %r11, -72(%rbp)34movdqa %xmm0, -128(%rbp)35movdqa %xmm1, -144(%rbp)36movdqa %xmm2, -160(%rbp)37movdqa %xmm3, -176(%rbp)38movdqa %xmm4, -192(%rbp)39movdqa %xmm5, -208(%rbp)40movdqa %xmm6, -224(%rbp)41movdqa %xmm7, -240(%rbp)42call __orc_rt_elfnix_tls_get_addr_impl43movq -16(%rbp), %rcx44movq -24(%rbp), %rdx45movq -32(%rbp), %rsi46movq -40(%rbp), %rdi47movq -48(%rbp), %r848movq -56(%rbp), %r949movq -64(%rbp), %r1050movq -72(%rbp), %r1151movdqa -128(%rbp), %xmm052movdqa -144(%rbp), %xmm153movdqa -160(%rbp), %xmm254movdqa -176(%rbp), %xmm355movdqa -192(%rbp), %xmm456movdqa -208(%rbp), %xmm557movdqa -224(%rbp), %xmm658movdqa -240(%rbp), %xmm759addq $REGISTER_SAVE_SPACE_SIZE, %rsp60popq %rbp61ret6263#endif // defined(__x86_64__)646566