1 //===-- restFP.S - Implement restFP ---------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "../assembly.h"
13 // Helper function used by compiler to restore ppc floating point registers at
14 // the end of the function epilog. This function returns to the address
15 // in the LR slot. So a function epilog must branch (b) not branch and link
16 // (bl) to this function.
17 // If the compiler wants to restore f27..f31, it does a "b restFP+52"
19 // This function should never be exported by a shared library. Each linkage
20 // unit carries its own copy of this function.
22 DEFINE_COMPILERRT_PRIVATE_FUNCTION_UNMANGLED(restFP)