1 /* Copyright (C) 1991,92,94,95,96,97,98,2009 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, write to the Free
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19 #ifndef _SYS_FPREGDEF_H
20 #define _SYS_FPREGDEF_H
24 /* Commonalities first, individualities next... */
26 #define fv0 $f0 /* return value */
29 #if _MIPS_SIM == _ABIO32 || _MIPS_SIM == _ABIN32
30 #define fs0 $f20 /* callee saved */
36 #endif /* _MIPS_SIM == _ABIO32 || _MIPS_SIM == _ABIN32 */
38 #if _MIPS_SIM == _ABI64 || _MIPS_SIM == _ABIN32
39 #define fa0 $f12 /* argument registers */
48 #define ft0 $f4 /* caller saved */
56 #endif /* _MIPS_SIM == _ABI64 || _MIPS_SIM == _ABIN32 */
58 #if _MIPS_SIM == _ABIO32
59 #define fv0f $f1 /* return value, high part */
62 #define fa0 $f12 /* argument registers */
67 #define ft0 $f4 /* caller saved */
80 #define fs0f $f21 /* callee saved, high part */
86 #endif /* _MIPS_SIM == _ABIO32 */
88 #if _MIPS_SIM == _ABI64
89 #define ft8 $f20 /* caller saved */
96 #define fs0 $f24 /* callee saved */
104 #endif /* _MIPS_SIM == _ABI64 */
106 #if _MIPS_SIM == _ABIN32
107 #define ft8 $f21 /* caller saved */
115 #endif /* _MIPS_SIM == _ABIN32 */
117 #define fcr31 $31 /* FPU status register */
119 #endif /* sys/fpregdef.h */