ppc_asm.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. /* Copyright (C) 1999, 2001, 2002 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. #ifdef __ASSEMBLER__
  15. /* Symbolic names for the registers. The only portable way to write asm
  16. code is to use number but this produces really unreadable code.
  17. Therefore these symbolic names. */
  18. /* Integer registers. */
  19. #define r0 0
  20. #define r1 1
  21. #define r2 2
  22. #define r3 3
  23. #define r4 4
  24. #define r5 5
  25. #define r6 6
  26. #define r7 7
  27. #define r8 8
  28. #define r9 9
  29. #define r10 10
  30. #define r11 11
  31. #define r12 12
  32. #define r13 13
  33. #define r14 14
  34. #define r15 15
  35. #define r16 16
  36. #define r17 17
  37. #define r18 18
  38. #define r19 19
  39. #define r20 20
  40. #define r21 21
  41. #define r22 22
  42. #define r23 23
  43. #define r24 24
  44. #define r25 25
  45. #define r26 26
  46. #define r27 27
  47. #define r28 28
  48. #define r29 29
  49. #define r30 30
  50. #define r31 31
  51. /* Floating-point registers. */
  52. #define fp0 0
  53. #define fp1 1
  54. #define fp2 2
  55. #define fp3 3
  56. #define fp4 4
  57. #define fp5 5
  58. #define fp6 6
  59. #define fp7 7
  60. #define fp8 8
  61. #define fp9 9
  62. #define fp10 10
  63. #define fp11 11
  64. #define fp12 12
  65. #define fp13 13
  66. #define fp14 14
  67. #define fp15 15
  68. #define fp16 16
  69. #define fp17 17
  70. #define fp18 18
  71. #define fp19 19
  72. #define fp20 20
  73. #define fp21 21
  74. #define fp22 22
  75. #define fp23 23
  76. #define fp24 24
  77. #define fp25 25
  78. #define fp26 26
  79. #define fp27 27
  80. #define fp28 28
  81. #define fp29 29
  82. #define fp30 30
  83. #define fp31 31
  84. /* Condition code registers. */
  85. #define cr0 0
  86. #define cr1 1
  87. #define cr2 2
  88. #define cr3 3
  89. #define cr4 4
  90. #define cr5 5
  91. #define cr6 6
  92. #define cr7 7
  93. /* Vector registers. */
  94. #define v0 0
  95. #define v1 1
  96. #define v2 2
  97. #define v3 3
  98. #define v4 4
  99. #define v5 5
  100. #define v6 6
  101. #define v7 7
  102. #define v8 8
  103. #define v9 9
  104. #define v10 10
  105. #define v11 11
  106. #define v12 12
  107. #define v13 13
  108. #define v14 14
  109. #define v15 15
  110. #define v16 16
  111. #define v17 17
  112. #define v18 18
  113. #define v19 19
  114. #define v20 20
  115. #define v21 21
  116. #define v22 22
  117. #define v23 23
  118. #define v24 24
  119. #define v25 25
  120. #define v26 26
  121. #define v27 27
  122. #define v28 28
  123. #define v29 29
  124. #define v30 30
  125. #define v31 31
  126. #endif /* __ASSEMBLER__ */