regdef.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef __alpha_regdef_h__
  2. #define __alpha_regdef_h__
  3. #define v0 $0 /* function return value */
  4. #define t0 $1 /* temporary registers (caller-saved) */
  5. #define t1 $2
  6. #define t2 $3
  7. #define t3 $4
  8. #define t4 $5
  9. #define t5 $6
  10. #define t6 $7
  11. #define t7 $8
  12. #define s0 $9 /* saved-registers (callee-saved registers) */
  13. #define s1 $10
  14. #define s2 $11
  15. #define s3 $12
  16. #define s4 $13
  17. #define s5 $14
  18. #define s6 $15
  19. #define fp s6 /* frame-pointer (s6 in frame-less procedures) */
  20. #define a0 $16 /* argument registers (caller-saved) */
  21. #define a1 $17
  22. #define a2 $18
  23. #define a3 $19
  24. #define a4 $20
  25. #define a5 $21
  26. #define t8 $22 /* more temps (caller-saved) */
  27. #define t9 $23
  28. #define t10 $24
  29. #define t11 $25
  30. #define ra $26 /* return address register */
  31. #define t12 $27
  32. #define pv t12 /* procedure-variable register */
  33. #define AT $at /* assembler temporary */
  34. #define gp $29 /* global pointer */
  35. #define sp $30 /* stack pointer */
  36. #define zero $31 /* reads as zero, writes are noops */
  37. #define r0 v0
  38. #define r1 a4
  39. #endif /* __alpha_regdef_h__ */