Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/contrib/llvm-project/compiler-rt/lib/orc/elfnix_tls.ppc64.S
39566 views
1
//===-- orc_rt_elfnix_tls.ppc64.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-exception
6
//
7
//===----------------------------------------------------------------------===//
8
//
9
// This file is a part of the ORC runtime support library.
10
//
11
//===----------------------------------------------------------------------===//
12
13
// The content of this file is PowerPC64 only.
14
#if defined(__powerpc64__)
15
16
.text
17
// TODO: add fast-path for repeat access.
18
// See https://github.com/llvm/llvm-project/issues/51162.
19
.global ___orc_rt_elfnix_tls_get_addr
20
___orc_rt_elfnix_tls_get_addr:
21
addis 2, 12, .TOC.-___orc_rt_elfnix_tls_get_addr@ha
22
addi 2, 2, .TOC.-___orc_rt_elfnix_tls_get_addr@l
23
mflr 0
24
std 0, 16(1)
25
stdu 1, -32(1)
26
bl __orc_rt_elfnix_tls_get_addr_impl
27
nop
28
addi 1, 1, 32
29
ld 0, 16(1)
30
mtlr 0
31
blr
32
33
#endif
34
35