chiark / gitweb /
eglibc (2.11.3-4+deb6u3) squeeze-lts; urgency=medium
[eglibc.git] / ports / sysdeps / mips / sys / fpregdef.h
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.
3
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.
8
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.
13
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
17    02111-1307 USA.  */
18
19 #ifndef _SYS_FPREGDEF_H
20 #define _SYS_FPREGDEF_H
21
22 #include <sgidefs.h>
23
24 /* Commonalities first, individualities next...  */
25
26 #define fv0     $f0     /* return value */
27 #define fv1     $f2
28
29 #if _MIPS_SIM == _ABIO32 || _MIPS_SIM == _ABIN32
30 #define fs0     $f20    /* callee saved */
31 #define fs1     $f22
32 #define fs2     $f24
33 #define fs3     $f26
34 #define fs4     $f28
35 #define fs5     $f30
36 #endif /* _MIPS_SIM == _ABIO32 || _MIPS_SIM == _ABIN32 */
37
38 #if _MIPS_SIM == _ABI64 || _MIPS_SIM == _ABIN32
39 #define fa0     $f12    /* argument registers */
40 #define fa1     $f13
41 #define fa2     $f14
42 #define fa3     $f15
43 #define fa4     $f16
44 #define fa5     $f17
45 #define fa6     $f18
46 #define fa7     $f19
47
48 #define ft0     $f4     /* caller saved */
49 #define ft1     $f5
50 #define ft2     $f6
51 #define ft3     $f7
52 #define ft4     $f8
53 #define ft5     $f9
54 #define ft6     $f10
55 #define ft7     $f11
56 #endif /* _MIPS_SIM == _ABI64 || _MIPS_SIM == _ABIN32 */
57
58 #if _MIPS_SIM == _ABIO32
59 #define fv0f    $f1     /* return value, high part */
60 #define fv1f    $f3
61
62 #define fa0     $f12    /* argument registers */
63 #define fa0f    $f13
64 #define fa1     $f14
65 #define fa1f    $f15
66
67 #define ft0     $f4     /* caller saved */
68 #define ft0f    $f5
69 #define ft1     $f6
70 #define ft1f    $f7
71 #define ft2     $f8
72 #define ft2f    $f9
73 #define ft3     $f10
74 #define ft3f    $f11
75 #define ft4     $f16
76 #define ft4f    $f17
77 #define ft5     $f18
78 #define ft5f    $f19
79
80 #define fs0f    $f21    /* callee saved, high part */
81 #define fs1f    $f23
82 #define fs2f    $f25
83 #define fs3f    $f27
84 #define fs4f    $f29
85 #define fs5f    $f31
86 #endif /* _MIPS_SIM == _ABIO32 */
87
88 #if _MIPS_SIM == _ABI64
89 #define ft8     $f20    /* caller saved */
90 #define ft9     $f21
91 #define ft10    $f22
92 #define ft11    $f23
93 #define ft12    $f1
94 #define ft13    $f3
95
96 #define fs0     $f24    /* callee saved */
97 #define fs1     $f25
98 #define fs2     $f26
99 #define fs3     $f27
100 #define fs4     $f28
101 #define fs5     $f29
102 #define fs6     $f30
103 #define fs7     $f31
104 #endif /* _MIPS_SIM == _ABI64 */
105
106 #if _MIPS_SIM == _ABIN32
107 #define ft8     $f21    /* caller saved */
108 #define ft9     $f23
109 #define ft10    $f25
110 #define ft11    $f27
111 #define ft12    $f29
112 #define ft13    $f31
113 #define ft14    $f1
114 #define ft15    $f3
115 #endif /* _MIPS_SIM == _ABIN32 */
116
117 #define fcr31   $31     /* FPU status register */
118
119 #endif /* sys/fpregdef.h */