Path: blob/main/contrib/llvm-project/compiler-rt/lib/orc/macho_tlv.x86-64.S
39566 views
//===-- orc_rt_macho_tlv.x86-64.s -------------------------------*- ASM -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file is a part of the ORC runtime support library.9//10//===----------------------------------------------------------------------===//1112// The content of this file is x86_64-only13#if defined(__x86_64__)1415#define REGISTER_SAVE_SPACE_SIZE 5121617.text1819// returns address of TLV in %rax, all other registers preserved20.globl ___orc_rt_macho_tlv_get_addr21___orc_rt_macho_tlv_get_addr:22pushq %rbp23movq %rsp, %rbp24subq $REGISTER_SAVE_SPACE_SIZE, %rsp25movq %rbx, -8(%rbp)26movq %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)34movq %r12, -80(%rbp)35movq %r13, -88(%rbp)36movq %r14, -96(%rbp)37movq %r15, -104(%rbp)38movdqa %xmm0, -128(%rbp)39movdqa %xmm1, -144(%rbp)40movdqa %xmm2, -160(%rbp)41movdqa %xmm3, -176(%rbp)42movdqa %xmm4, -192(%rbp)43movdqa %xmm5, -208(%rbp)44movdqa %xmm6, -224(%rbp)45movdqa %xmm7, -240(%rbp)46call ___orc_rt_macho_tlv_get_addr_impl47movq -8(%rbp), %rbx48movq -16(%rbp), %rcx49movq -24(%rbp), %rdx50movq -32(%rbp), %rsi51movq -40(%rbp), %rdi52movq -48(%rbp), %r853movq -56(%rbp), %r954movq -64(%rbp), %r1055movq -72(%rbp), %r1156movq -80(%rbp), %r1257movq -88(%rbp), %r1358movq -96(%rbp), %r1459movq -104(%rbp), %r1560movdqa -128(%rbp), %xmm061movdqa -144(%rbp), %xmm162movdqa -160(%rbp), %xmm263movdqa -176(%rbp), %xmm364movdqa -192(%rbp), %xmm465movdqa -208(%rbp), %xmm566movdqa -224(%rbp), %xmm667movdqa -240(%rbp), %xmm768addq $REGISTER_SAVE_SPACE_SIZE, %rsp69popq %rbp70ret7172#endif // defined(__x86_64__)737475