1*0b57cec5SDimitry Andric//===-- saveFP.S - Implement saveFP ---------------------------------------===// 2*0b57cec5SDimitry Andric// 3*0b57cec5SDimitry Andric// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*0b57cec5SDimitry Andric// See https://llvm.org/LICENSE.txt for license information. 5*0b57cec5SDimitry Andric// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*0b57cec5SDimitry Andric// 7*0b57cec5SDimitry Andric//===----------------------------------------------------------------------===// 8*0b57cec5SDimitry Andric 9*0b57cec5SDimitry Andric#include "../assembly.h" 10*0b57cec5SDimitry Andric 11*0b57cec5SDimitry Andric// 12*0b57cec5SDimitry Andric// Helper function used by compiler to save ppc floating point registers in 13*0b57cec5SDimitry Andric// function prologs. This routines also saves r0 in the LR slot. 14*0b57cec5SDimitry Andric// If the compiler wants to save f27..f31, it does a "bl saveFP+52" 15*0b57cec5SDimitry Andric// 16*0b57cec5SDimitry Andric// This function should never be exported by a shared library. Each linkage 17*0b57cec5SDimitry Andric// unit carries its own copy of this function. 18*0b57cec5SDimitry Andric// 19*0b57cec5SDimitry AndricDEFINE_COMPILERRT_PRIVATE_FUNCTION_UNMANGLED(saveFP) 20*0b57cec5SDimitry Andric stfd f14,-144(r1) 21*0b57cec5SDimitry Andric stfd f15,-136(r1) 22*0b57cec5SDimitry Andric stfd f16,-128(r1) 23*0b57cec5SDimitry Andric stfd f17,-120(r1) 24*0b57cec5SDimitry Andric stfd f18,-112(r1) 25*0b57cec5SDimitry Andric stfd f19,-104(r1) 26*0b57cec5SDimitry Andric stfd f20,-96(r1) 27*0b57cec5SDimitry Andric stfd f21,-88(r1) 28*0b57cec5SDimitry Andric stfd f22,-80(r1) 29*0b57cec5SDimitry Andric stfd f23,-72(r1) 30*0b57cec5SDimitry Andric stfd f24,-64(r1) 31*0b57cec5SDimitry Andric stfd f25,-56(r1) 32*0b57cec5SDimitry Andric stfd f26,-48(r1) 33*0b57cec5SDimitry Andric stfd f27,-40(r1) 34*0b57cec5SDimitry Andric stfd f28,-32(r1) 35*0b57cec5SDimitry Andric stfd f29,-24(r1) 36*0b57cec5SDimitry Andric stfd f30,-16(r1) 37*0b57cec5SDimitry Andric stfd f31,-8(r1) 38*0b57cec5SDimitry Andric stw r0,8(r1) 39*0b57cec5SDimitry Andric blr 40*0b57cec5SDimitry Andric 41*0b57cec5SDimitry AndricNO_EXEC_STACK_DIRECTIVE 42*0b57cec5SDimitry Andric 43