summaryrefslogtreecommitdiff
path: root/6/regs.def
blob: b767d7a7739910982dc7a5b88b6b18782d14bcf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
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(Rr8b, "%r8b", ModeB)
Reg(Rr9b, "%r9b", ModeB)
Reg(Rr10b, "%r10b", ModeB)
Reg(Rr11b, "%r11b", ModeB)
Reg(Rr12b, "%r12b", ModeB)
Reg(Rr13b, "%r13b", ModeB)
Reg(Rr14b, "%r14b", ModeB)
Reg(Rr15b, "%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(Rr8w, "%r8w", ModeW)
Reg(Rr9w, "%r9w", ModeW)
Reg(Rr10w, "%r10w", ModeW)
Reg(Rr11w, "%r11w", ModeW)
Reg(Rr12w, "%r12w", ModeW)
Reg(Rr13w, "%r13w", ModeW)
Reg(Rr14w, "%r14w", ModeW)
Reg(Rr15w, "%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(Rr8d, "%r8d", ModeL)
Reg(Rr9d, "%r9d", ModeL)
Reg(Rr10d, "%r10d", ModeL)
Reg(Rr11d, "%r11d", ModeL)
Reg(Rr12d, "%r12d", ModeL)
Reg(Rr13d, "%r13d", ModeL)
Reg(Rr14d, "%r14d", ModeL)
Reg(Rr15d, "%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(Rr8, "%r8", ModeQ)
Reg(Rr9, "%r9", ModeQ)
Reg(Rr10, "%r10", ModeQ)
Reg(Rr11, "%r11", ModeQ)
Reg(Rr12, "%r12", ModeQ)
Reg(Rr13, "%r13", ModeQ)
Reg(Rr14, "%r14", ModeQ)
Reg(Rr15, "%r15", ModeQ)

Reg(Rrip, "%rip", ModeQ)