fpregdef.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /* Copyright (C) 1991-2015 Free Software Foundation, Inc.
  2. This file is part of the GNU C Library.
  3. The GNU C Library is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Lesser General Public
  5. License as published by the Free Software Foundation; either
  6. version 2.1 of the License, or (at your option) any later version.
  7. The GNU C Library is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public
  12. License along with the GNU C Library. If not, see
  13. <http://www.gnu.org/licenses/>. */
  14. #ifndef _SYS_FPREGDEF_H
  15. #define _SYS_FPREGDEF_H
  16. /* Commonalities first, individualities next... */
  17. #define fv0 $f0 /* return value */
  18. #define fv1 $f2
  19. #if _MIPS_SIM == _ABIO32 || _MIPS_SIM == _ABIN32
  20. #define fs0 $f20 /* callee saved */
  21. #define fs1 $f22
  22. #define fs2 $f24
  23. #define fs3 $f26
  24. #define fs4 $f28
  25. #define fs5 $f30
  26. #endif /* _MIPS_SIM == _ABIO32 || _MIPS_SIM == _ABIN32 */
  27. #if _MIPS_SIM == _ABI64 || _MIPS_SIM == _ABIN32
  28. #define fa0 $f12 /* argument registers */
  29. #define fa1 $f13
  30. #define fa2 $f14
  31. #define fa3 $f15
  32. #define fa4 $f16
  33. #define fa5 $f17
  34. #define fa6 $f18
  35. #define fa7 $f19
  36. #define ft0 $f4 /* caller saved */
  37. #define ft1 $f5
  38. #define ft2 $f6
  39. #define ft3 $f7
  40. #define ft4 $f8
  41. #define ft5 $f9
  42. #define ft6 $f10
  43. #define ft7 $f11
  44. #endif /* _MIPS_SIM == _ABI64 || _MIPS_SIM == _ABIN32 */
  45. #if _MIPS_SIM == _ABIO32
  46. #define fv0f $f1 /* return value, high part */
  47. #define fv1f $f3
  48. #define fa0 $f12 /* argument registers */
  49. #define fa0f $f13
  50. #define fa1 $f14
  51. #define fa1f $f15
  52. #define ft0 $f4 /* caller saved */
  53. #define ft0f $f5
  54. #define ft1 $f6
  55. #define ft1f $f7
  56. #define ft2 $f8
  57. #define ft2f $f9
  58. #define ft3 $f10
  59. #define ft3f $f11
  60. #define ft4 $f16
  61. #define ft4f $f17
  62. #define ft5 $f18
  63. #define ft5f $f19
  64. #define fs0f $f21 /* callee saved, high part */
  65. #define fs1f $f23
  66. #define fs2f $f25
  67. #define fs3f $f27
  68. #define fs4f $f29
  69. #define fs5f $f31
  70. #endif /* _MIPS_SIM == _ABIO32 */
  71. #if _MIPS_SIM == _ABI64
  72. #define ft8 $f20 /* caller saved */
  73. #define ft9 $f21
  74. #define ft10 $f22
  75. #define ft11 $f23
  76. #define ft12 $f1
  77. #define ft13 $f3
  78. #define fs0 $f24 /* callee saved */
  79. #define fs1 $f25
  80. #define fs2 $f26
  81. #define fs3 $f27
  82. #define fs4 $f28
  83. #define fs5 $f29
  84. #define fs6 $f30
  85. #define fs7 $f31
  86. #endif /* _MIPS_SIM == _ABI64 */
  87. #if _MIPS_SIM == _ABIN32
  88. #define ft8 $f21 /* caller saved */
  89. #define ft9 $f23
  90. #define ft10 $f25
  91. #define ft11 $f27
  92. #define ft12 $f29
  93. #define ft13 $f31
  94. #define ft14 $f1
  95. #define ft15 $f3
  96. #endif /* _MIPS_SIM == _ABIN32 */
  97. #define fcr31 $31 /* FPU status register */
  98. #endif /* sys/fpregdef.h */