regdef.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. /*
  2. * Copyright (C) 2026 Waldemar Brodkorb <wbx@uclibc-ng.org>
  3. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  4. */
  5. /* Register Macro definitions
  6. Copyright (C) 2022-2026 Free Software Foundation, Inc.
  7. The GNU C Library is free software; you can redistribute it and/or
  8. modify it under the terms of the GNU Lesser General Public
  9. License as published by the Free Software Foundation; either
  10. version 2.1 of the License, or (at your option) any later version.
  11. The GNU C Library is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. Lesser General Public License for more details.
  15. You should have received a copy of the GNU Lesser General Public
  16. License along with the GNU C Library. If not, see
  17. <https://www.gnu.org/licenses/>. */
  18. #ifndef _SYS_REGDEF_H
  19. #define _SYS_REGDEF_H
  20. #define zero $r0
  21. #define ra $r1
  22. #define tp $r2
  23. #define sp $r3
  24. #define a0 $r4
  25. #define a1 $r5
  26. #define a2 $r6
  27. #define a3 $r7
  28. #define a4 $r8
  29. #define a5 $r9
  30. #define a6 $r10
  31. #define a7 $r11
  32. #define v0 $r4
  33. #define v1 $r5
  34. #define t0 $r12
  35. #define t1 $r13
  36. #define t2 $r14
  37. #define t3 $r15
  38. #define t4 $r16
  39. #define t5 $r17
  40. #define t6 $r18
  41. #define t7 $r19
  42. #define t8 $r20
  43. #define x $r21
  44. #define fp $r22
  45. #define s0 $r23
  46. #define s1 $r24
  47. #define s2 $r25
  48. #define s3 $r26
  49. #define s4 $r27
  50. #define s5 $r28
  51. #define s6 $r29
  52. #define s7 $r30
  53. #define s8 $r31
  54. #define fa0 $f0
  55. #define fa1 $f1
  56. #define fa2 $f2
  57. #define fa3 $f3
  58. #define fa4 $f4
  59. #define fa5 $f5
  60. #define fa6 $f6
  61. #define fa7 $f7
  62. #define fv0 $f0
  63. #define fv1 $f1
  64. #define ft0 $f8
  65. #define ft1 $f9
  66. #define ft2 $f10
  67. #define ft3 $f11
  68. #define ft4 $f12
  69. #define ft5 $f13
  70. #define ft6 $f14
  71. #define ft7 $f15
  72. #define ft8 $f16
  73. #define ft9 $f17
  74. #define ft10 $f18
  75. #define ft11 $f19
  76. #define ft12 $f20
  77. #define ft13 $f21
  78. #define ft14 $f22
  79. #define ft15 $f23
  80. #define fs0 $f24
  81. #define fs1 $f25
  82. #define fs2 $f26
  83. #define fs3 $f27
  84. #define fs4 $f28
  85. #define fs5 $f29
  86. #define fs6 $f30
  87. #define fs7 $f31
  88. #define fcc0 $fcc0
  89. #define fcc1 $fcc1
  90. #define fcc2 $fcc2
  91. #define fcc3 $fcc3
  92. #define fcc4 $fcc4
  93. #define fcc5 $fcc5
  94. #define fcc6 $fcc6
  95. #define fcc7 $fcc7
  96. #define fcsr0 $fcsr0
  97. #define vr0 $vr0
  98. #define vr1 $vr1
  99. #define vr2 $vr2
  100. #define vr3 $vr3
  101. #define vr4 $vr4
  102. #define vr5 $vr5
  103. #define vr6 $vr6
  104. #define vr7 $vr7
  105. #define vr8 $vr8
  106. #define vr9 $vr9
  107. #define vr10 $vr10
  108. #define vr11 $vr11
  109. #define vr12 $vr12
  110. #define vr13 $vr13
  111. #define vr14 $vr14
  112. #define vr15 $vr15
  113. #define vr16 $vr16
  114. #define vr17 $vr17
  115. #define vr18 $vr18
  116. #define vr19 $vr19
  117. #define vr20 $vr20
  118. #define vr21 $vr21
  119. #define vr22 $vr22
  120. #define vr23 $vr23
  121. #define vr24 $vr24
  122. #define vr25 $vr25
  123. #define vr26 $vr26
  124. #define vr27 $vr27
  125. #define vr28 $vr28
  126. #define vr29 $vr29
  127. #define vr30 $vr30
  128. #define vr31 $vr31
  129. #define xr0 $xr0
  130. #define xr1 $xr1
  131. #define xr2 $xr2
  132. #define xr3 $xr3
  133. #define xr4 $xr4
  134. #define xr5 $xr5
  135. #define xr6 $xr6
  136. #define xr7 $xr7
  137. #define xr7 $xr7
  138. #define xr8 $xr8
  139. #define xr9 $xr9
  140. #define xr10 $xr10
  141. #define xr11 $xr11
  142. #define xr12 $xr12
  143. #define xr13 $xr13
  144. #define xr14 $xr14
  145. #define xr15 $xr15
  146. #define xr16 $xr16
  147. #define xr17 $xr17
  148. #define xr18 $xr18
  149. #define xr19 $xr19
  150. #define xr20 $xr20
  151. #define xr21 $xr21
  152. #define xr22 $xr22
  153. #define xr23 $xr23
  154. #define xr24 $xr24
  155. #define xr25 $xr25
  156. #define xr26 $xr26
  157. #define xr27 $xr27
  158. #define xr28 $xr28
  159. #define xr29 $xr29
  160. #define xr30 $xr30
  161. #define xr31 $xr31
  162. #endif /* _SYS_REGDEF_H */