insn-constants.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /* Generated automatically by the program `genconstants'
  2. from the machine description file `md'. */
  3. #ifndef GCC_INSN_CONSTANTS_H
  4. #define GCC_INSN_CONSTANTS_H
  5. #define S2_REGNUM 18
  6. #define S1_REGNUM 9
  7. #define MCAUSE_REGNUM 0x342
  8. #define MSTATUS_MIE_BIT 8
  9. #define S0_REGNUM 8
  10. #define NORMAL_RETURN 0
  11. #define MSCRATCHCSW_REGNUM 0x348
  12. #define T1_REGNUM 6
  13. #define RETURN_ADDR_REGNUM 1
  14. #define EXCEPTION_RETURN 2
  15. #define GP_REGNUM 3
  16. #define SIBCALL_RETURN 1
  17. #define T0_REGNUM 5
  18. #define MSTATUS_REGNUM 0x300
  19. #define MEPC_REGNUM 0x341
  20. enum unspec {
  21. UNSPEC_EH_RETURN = 0,
  22. UNSPEC_ADDRESS_FIRST = 1,
  23. UNSPEC_PCREL = 2,
  24. UNSPEC_LOAD_GOT = 3,
  25. UNSPEC_TLS = 4,
  26. UNSPEC_TLS_LE = 5,
  27. UNSPEC_TLS_IE = 6,
  28. UNSPEC_TLS_GD = 7,
  29. UNSPEC_AUIPC = 8,
  30. UNSPEC_FLT_QUIET = 9,
  31. UNSPEC_FLE_QUIET = 10,
  32. UNSPEC_COPYSIGN = 11,
  33. UNSPEC_LRINT = 12,
  34. UNSPEC_LROUND = 13,
  35. UNSPEC_TIE = 14,
  36. UNSPEC_COMPARE_AND_SWAP = 15,
  37. UNSPEC_SYNC_OLD_OP = 16,
  38. UNSPEC_SYNC_EXCHANGE = 17,
  39. UNSPEC_ATOMIC_STORE = 18,
  40. UNSPEC_MEMORY_BARRIER = 19
  41. };
  42. #define NUM_UNSPEC_VALUES 20
  43. extern const char *const unspec_strings[];
  44. enum unspecv {
  45. UNSPECV_GPR_SAVE = 0,
  46. UNSPECV_GPR_RESTORE = 1,
  47. UNSPECV_FRFLAGS = 2,
  48. UNSPECV_FSFLAGS = 3,
  49. UNSPECV_CSR_READ = 4,
  50. UNSPECV_CSR_READ_SET_BITS = 5,
  51. UNSPECV_CSR_READ_CLEAR_BITS = 6,
  52. UNSPECV_CSR_READ_WRITE = 7,
  53. UNSPECV_CSR_WRITE = 8,
  54. UNSPECV_MRET = 9,
  55. UNSPECV_SRET = 10,
  56. UNSPECV_URET = 11,
  57. UNSPECV_BLOCKAGE = 12,
  58. UNSPECV_FENCE = 13,
  59. UNSPECV_FENCE_I = 14
  60. };
  61. #define NUM_UNSPECV_VALUES 15
  62. extern const char *const unspecv_strings[];
  63. #endif /* GCC_INSN_CONSTANTS_H */