74 lines · plain
1//===-- macho_tlv.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//===----------------------------------------------------------------------===//12 13// The content of this file is x86_64-only14#if defined(__x86_64__)15 16#define REGISTER_SAVE_SPACE_SIZE 51217 18 .text19 20 // returns address of TLV in %rax, all other registers preserved21 .globl ___orc_rt_macho_tlv_get_addr22___orc_rt_macho_tlv_get_addr:23 pushq %rbp24 movq %rsp, %rbp25 subq $REGISTER_SAVE_SPACE_SIZE, %rsp26 movq %rbx, -8(%rbp)27 movq %rcx, -16(%rbp)28 movq %rdx, -24(%rbp)29 movq %rsi, -32(%rbp)30 movq %rdi, -40(%rbp)31 movq %r8, -48(%rbp)32 movq %r9, -56(%rbp)33 movq %r10, -64(%rbp)34 movq %r11, -72(%rbp)35 movq %r12, -80(%rbp)36 movq %r13, -88(%rbp)37 movq %r14, -96(%rbp)38 movq %r15, -104(%rbp)39 movdqa %xmm0, -128(%rbp)40 movdqa %xmm1, -144(%rbp)41 movdqa %xmm2, -160(%rbp)42 movdqa %xmm3, -176(%rbp)43 movdqa %xmm4, -192(%rbp)44 movdqa %xmm5, -208(%rbp)45 movdqa %xmm6, -224(%rbp)46 movdqa %xmm7, -240(%rbp)47 call ___orc_rt_macho_tlv_get_addr_impl48 movq -8(%rbp), %rbx49 movq -16(%rbp), %rcx50 movq -24(%rbp), %rdx51 movq -32(%rbp), %rsi52 movq -40(%rbp), %rdi53 movq -48(%rbp), %r854 movq -56(%rbp), %r955 movq -64(%rbp), %r1056 movq -72(%rbp), %r1157 movq -80(%rbp), %r1258 movq -88(%rbp), %r1359 movq -96(%rbp), %r1460 movq -104(%rbp), %r1561 movdqa -128(%rbp), %xmm062 movdqa -144(%rbp), %xmm163 movdqa -160(%rbp), %xmm264 movdqa -176(%rbp), %xmm365 movdqa -192(%rbp), %xmm466 movdqa -208(%rbp), %xmm567 movdqa -224(%rbp), %xmm668 movdqa -240(%rbp), %xmm769 addq $REGISTER_SAVE_SPACE_SIZE, %rsp70 popq %rbp71 ret72 73#endif // defined(__x86_64__)74