ppc_asm.h 2.7 KB

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