shithub: mc

ref: 4931139165780ca410fe5ab41cac6d1af0af059e
dir: /6/regs.def/

View raw version
Reg(Rnone, "%NOREG", ModeB)
/* byte regs */
Reg(Ral, "%al", ModeB)
Reg(Rcl, "%cl", ModeB)
Reg(Rdl, "%dl", ModeB)
Reg(Rbl, "%bl", ModeB)
Reg(Rsil, "%sil", ModeB)
Reg(Rdil, "%dil", ModeB)
Reg(Rspl, "%spl", ModeB)
Reg(Rbpl, "%bpl", ModeB)
Reg(R8b, "%r8b", ModeB)
Reg(R9b, "%r9b", ModeB)
Reg(R10b, "%r10b", ModeB)
Reg(R11b, "%r11b", ModeB)
Reg(R12b, "%r12b", ModeB)
Reg(R13b, "%r13b", ModeB)
Reg(R14b, "%r14b", ModeB)
Reg(R15b, "%r15b", ModeB)

/* high byte regs. We *NEVER* allocate these */
Reg(Rah, "%ah", ModeB)
Reg(Rch, "%ch", ModeB)
Reg(Rdh, "%dh", ModeB)
Reg(Rbh, "%bh", ModeB)

/* short regs */
Reg(Rax, "%ax", ModeW)
Reg(Rbx, "%bx", ModeW)
Reg(Rcx, "%cx", ModeW)
Reg(Rdx, "%dx", ModeW)
Reg(Rsi, "%si", ModeW)
Reg(Rdi, "%di", ModeW)
Reg(Rsp, "%sp", ModeW)
Reg(Rbp, "%bp", ModeW)
Reg(R8w, "%r8w", ModeW)
Reg(R9w, "%r9w", ModeW)
Reg(R10w, "%r10w", ModeW)
Reg(R11w, "%r11w", ModeW)
Reg(R12w, "%r12w", ModeW)
Reg(R13w, "%r13w", ModeW)
Reg(R14w, "%r14w", ModeW)
Reg(R15w, "%r15w", ModeW)


/* long regs */
Reg(Reax, "%eax", ModeL)
Reg(Recx, "%ecx", ModeL)
Reg(Redx, "%edx", ModeL)
Reg(Rebx, "%ebx", ModeL)
Reg(Resi, "%esi", ModeL)
Reg(Redi, "%edi", ModeL)
Reg(Resp, "%esp", ModeL)
Reg(Rebp, "%ebp", ModeL)
Reg(R8d, "%r8d", ModeL)
Reg(R9d, "%r9d", ModeL)
Reg(R10d, "%r10d", ModeL)
Reg(R11d, "%r11d", ModeL)
Reg(R12d, "%r12d", ModeL)
Reg(R13d, "%r13d", ModeL)
Reg(R14d, "%r14d", ModeL)
Reg(R15d, "%r15d", ModeL)

/* quad regs */
Reg(Rrax, "%rax", ModeQ)
Reg(Rrcx, "%rcx", ModeQ)
Reg(Rrdx, "%rdx", ModeQ)
Reg(Rrbx, "%rbx", ModeQ)
Reg(Rrsi, "%rsi", ModeQ)
Reg(Rrdi, "%rdi", ModeQ)
Reg(Rrsp, "%rsp", ModeQ)
Reg(Rrbp, "%rbp", ModeQ)
Reg(R8, "%r8", ModeQ)
Reg(R9, "%r9", ModeQ)
Reg(R10, "%r10", ModeQ)
Reg(R11, "%r11", ModeQ)
Reg(R12, "%r12", ModeQ)
Reg(R13, "%r13", ModeQ)
Reg(R14, "%r14", ModeQ)
Reg(R15, "%r15", ModeQ)

Reg(Rrip, "%rip", ModeQ)