1 /* Copyright (C) 1991-2023 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see
16 <https://www.gnu.org/licenses/>. */
18 #ifndef _SYS_FPREGDEF_H
19 #define _SYS_FPREGDEF_H
23 /* Commonalities first, individualities next... */
25 #define fv0 $f0 /* return value */
28 #if _MIPS_SIM == _ABIO32 || _MIPS_SIM == _ABIN32
29 #define fs0 $f20 /* callee saved */
35 #endif /* _MIPS_SIM == _ABIO32 || _MIPS_SIM == _ABIN32 */
37 #if _MIPS_SIM == _ABI64 || _MIPS_SIM == _ABIN32
38 #define fa0 $f12 /* argument registers */
47 #define ft0 $f4 /* caller saved */
55 #endif /* _MIPS_SIM == _ABI64 || _MIPS_SIM == _ABIN32 */
57 #if _MIPS_SIM == _ABIO32
58 #define fv0f $f1 /* return value, high part */
61 #define fa0 $f12 /* argument registers */
66 #define ft0 $f4 /* caller saved */
79 #define fs0f $f21 /* callee saved, high part */
85 #endif /* _MIPS_SIM == _ABIO32 */
87 #if _MIPS_SIM == _ABI64
88 #define ft8 $f20 /* caller saved */
95 #define fs0 $f24 /* callee saved */
103 #endif /* _MIPS_SIM == _ABI64 */
105 #if _MIPS_SIM == _ABIN32
106 #define ft8 $f21 /* caller saved */
114 #endif /* _MIPS_SIM == _ABIN32 */
116 #define fcr31 $31 /* FPU status register */
118 #endif /* sys/fpregdef.h */