1 //===-- restFP.S - Implement restFP ---------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 #include "../assembly.h"
12 // Helper function used by compiler to restore ppc floating point registers at
13 // the end of the function epilog. This function returns to the address
14 // in the LR slot. So a function epilog must branch (b) not branch and link
15 // (bl) to this function.
16 // If the compiler wants to restore f27..f31, it does a "b restFP+52"
18 // This function should never be exported by a shared library. Each linkage
19 // unit carries its own copy of this function.
21 DEFINE_COMPILERRT_PRIVATE_FUNCTION_UNMANGLED(restFP)
44 NO_EXEC_STACK_DIRECTIVE