summaryrefslogtreecommitdiff
path: root/6
diff options
context:
space:
mode:
authorOri Bernstein <orib@google.com>2012-08-01 16:24:17 -0400
committerOri Bernstein <orib@google.com>2012-08-01 16:24:17 -0400
commite167f13dc955f93afddca65750e0c0be467bf344 (patch)
tree192e0a1ab2a43f0fd0187591cd0af07a4c4e8e3c /6
parent5f669e29c24c35a569ff01681a7df1420ded7a81 (diff)
downloadmc-e167f13dc955f93afddca65750e0c0be467bf344.tar.gz
Reformat coreg tables.
Diffstat (limited to '6')
-rw-r--r--6/locs.c65
1 files changed, 32 insertions, 33 deletions
diff --git a/6/locs.c b/6/locs.c
index c95ab7b..b9b2877 100644
--- a/6/locs.c
+++ b/6/locs.c
@@ -189,14 +189,14 @@ Loc *loclit(long val, Mode m)
Loc *coreg(Reg r, Mode m)
{
Reg crtab[][Nmode + 1] = {
- [Ral] = {Rnone, Ral, Rax, Reax, Rrax},
- [Rcl] = {Rnone, Rcl, Rcx, Recx, Rrcx},
- [Rdl] = {Rnone, Rdl, Rdx, Redx, Rrdx},
- [Rbl] = {Rnone, Rbl, Rbx, Rebx, Rrbx},
- [Rsil] = {Rnone, Rsil, Rsi, Resi, Rrsi},
- [Rdil] = {Rnone, Rdil, Rdi, Redi, Rrdi},
- [R8b] = {Rnone, R8b, R8w, R8d, R8},
- [R9b] = {Rnone, R9b, R9w, R9d, R9},
+ [Ral] = {Rnone, Ral, Rax, Reax, Rrax},
+ [Rcl] = {Rnone, Rcl, Rcx, Recx, Rrcx},
+ [Rdl] = {Rnone, Rdl, Rdx, Redx, Rrdx},
+ [Rbl] = {Rnone, Rbl, Rbx, Rebx, Rrbx},
+ [Rsil] = {Rnone, Rsil, Rsi, Resi, Rrsi},
+ [Rdil] = {Rnone, Rdil, Rdi, Redi, Rrdi},
+ [R8b] = {Rnone, R8b, R8w, R8d, R8},
+ [R9b] = {Rnone, R9b, R9w, R9d, R9},
[R10b] = {Rnone, R10b, R10w, R10d, R10},
[R11b] = {Rnone, R11b, R11w, R11d, R11},
[R12b] = {Rnone, R12b, R12w, R12d, R12},
@@ -204,14 +204,14 @@ Loc *coreg(Reg r, Mode m)
[R14b] = {Rnone, R14b, R14w, R14d, R14},
[R15b] = {Rnone, R15b, R15w, R15d, R15},
- [Rax] = {Rnone, Ral, Rax, Reax, Rrax},
- [Rcx] = {Rnone, Rcl, Rcx, Recx, Rrcx},
- [Rdx] = {Rnone, Rdl, Rdx, Redx, Rrdx},
- [Rbx] = {Rnone, Rbl, Rbx, Rebx, Rrbx},
- [Rsi] = {Rnone, Rsil, Rsi, Resi, Rrsi},
- [Rdi] = {Rnone, Rsil, Rdi, Redi, Rrdi},
- [R8w] = {Rnone, R8b, R8w, R8d, R8},
- [R9w] = {Rnone, R9b, R9w, R9d, R9},
+ [Rax] = {Rnone, Ral, Rax, Reax, Rrax},
+ [Rcx] = {Rnone, Rcl, Rcx, Recx, Rrcx},
+ [Rdx] = {Rnone, Rdl, Rdx, Redx, Rrdx},
+ [Rbx] = {Rnone, Rbl, Rbx, Rebx, Rrbx},
+ [Rsi] = {Rnone, Rsil, Rsi, Resi, Rrsi},
+ [Rdi] = {Rnone, Rsil, Rdi, Redi, Rrdi},
+ [R8w] = {Rnone, R8b, R8w, R8d, R8},
+ [R9w] = {Rnone, R9b, R9w, R9d, R9},
[R10w] = {Rnone, R10b, R10w, R10d, R10},
[R11w] = {Rnone, R11b, R11w, R11d, R11},
[R12w] = {Rnone, R12b, R12w, R12d, R12},
@@ -219,14 +219,14 @@ Loc *coreg(Reg r, Mode m)
[R14w] = {Rnone, R14b, R14w, R14d, R14},
[R15w] = {Rnone, R15b, R15w, R15d, R15},
- [Reax] = {Rnone, Ral, Rax, Reax},
- [Recx] = {Rnone, Rcl, Rcx, Recx},
- [Redx] = {Rnone, Rdl, Rdx, Redx},
- [Rebx] = {Rnone, Rbl, Rbx, Rebx},
- [Resi] = {Rnone, Rsil, Rsi, Resi},
- [Redi] = {Rnone, Rsil, Rdi, Redi},
- [R8d] = {Rnone, R8b, R8w, R8d, R8},
- [R9d] = {Rnone, R9b, R9w, R9d, R9},
+ [Reax] = {Rnone, Ral, Rax, Reax, Rrax},
+ [Recx] = {Rnone, Rcl, Rcx, Recx, Rrcx},
+ [Redx] = {Rnone, Rdl, Rdx, Redx, Rrdx},
+ [Rebx] = {Rnone, Rbl, Rbx, Rebx, Rrbx},
+ [Resi] = {Rnone, Rsil, Rsi, Resi, Rrsi},
+ [Redi] = {Rnone, Rsil, Rdi, Redi, Rrdi},
+ [R8d] = {Rnone, R8b, R8w, R8d, R8},
+ [R9d] = {Rnone, R9b, R9w, R9d, R9},
[R10d] = {Rnone, R10b, R10w, R10d, R10},
[R11d] = {Rnone, R11b, R11w, R11d, R11},
[R12d] = {Rnone, R12b, R12w, R12d, R12},
@@ -234,14 +234,14 @@ Loc *coreg(Reg r, Mode m)
[R14d] = {Rnone, R14b, R14w, R14d, R14},
[R15d] = {Rnone, R15b, R15w, R15d, R15},
- [Rrax] = {Rnone, Ral, Rax, Reax, Rrax},
- [Rrcx] = {Rnone, Rcl, Rcx, Recx, Rrcx},
- [Rrdx] = {Rnone, Rdl, Rdx, Redx, Rrdx},
- [Rrbx] = {Rnone, Rbl, Rbx, Rebx, Rrbx},
- [Rrsi] = {Rnone, Rsil, Rsi, Resi, Rrsi},
- [Rrdi] = {Rnone, Rsil, Rdi, Redi, Rrdi},
- [R8] = {Rnone, R8b, R8w, R8d, R8},
- [R9] = {Rnone, R9b, R9w, R9d, R9},
+ [Rrax] = {Rnone, Ral, Rax, Reax, Rrax},
+ [Rrcx] = {Rnone, Rcl, Rcx, Recx, Rrcx},
+ [Rrdx] = {Rnone, Rdl, Rdx, Redx, Rrdx},
+ [Rrbx] = {Rnone, Rbl, Rbx, Rebx, Rrbx},
+ [Rrsi] = {Rnone, Rsil, Rsi, Resi, Rrsi},
+ [Rrdi] = {Rnone, Rsil, Rdi, Redi, Rrdi},
+ [R8] = {Rnone, R8b, R8w, R8d, R8},
+ [R9] = {Rnone, R9b, R9w, R9d, R9},
[R10] = {Rnone, R10b, R10w, R10d, R10},
[R11] = {Rnone, R11b, R11w, R11d, R11},
[R12] = {Rnone, R12b, R12w, R12d, R12},
@@ -253,4 +253,3 @@ Loc *coreg(Reg r, Mode m)
assert(crtab[r][m] != Rnone);
return locphysreg(crtab[r][m]);
}
-