summaryrefslogtreecommitdiff
path: root/6
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-08-07 01:03:52 -0400
committerOri Bernstein <ori@eigenstate.org>2012-08-07 01:03:52 -0400
commitda7a658feb3f1d785fc557747baf9557c7926520 (patch)
treed5410566a08b138b6f691864dd5222d172b3bba5 /6
parentd42ef53f3c986c1999a7e4cba96f75f4a8137fc9 (diff)
downloadmc-da7a658feb3f1d785fc557747baf9557c7926520.tar.gz
Rename ModeS to ModeW.
I had the wrong name. Oops.
Diffstat (limited to '6')
-rw-r--r--6/asm.h2
-rw-r--r--6/isel.c4
-rw-r--r--6/regs.def32
3 files changed, 19 insertions, 19 deletions
diff --git a/6/asm.h b/6/asm.h
index 2941e81..feca78c 100644
--- a/6/asm.h
+++ b/6/asm.h
@@ -38,7 +38,7 @@ typedef enum {
typedef enum {
ModeNone,
ModeB, /* byte */
- ModeS, /* short */
+ ModeW, /* short */
ModeL, /* long */
ModeQ, /* quad */
ModeF, /* float32 */
diff --git a/6/isel.c b/6/isel.c
index d685c66..cf3abd1 100644
--- a/6/isel.c
+++ b/6/isel.c
@@ -25,7 +25,7 @@ char *insnfmts[] = {
char modenames[] = {
[ModeB] = 'b',
- [ModeS] = 's',
+ [ModeW] = 'w',
[ModeL] = 'l',
[ModeQ] = 'q',
[ModeF] = 'f',
@@ -67,7 +67,7 @@ static Mode mode(Node *n)
return ModeQ;
switch (size(n)) {
case 1: return ModeB; break;
- case 2: return ModeS; break;
+ case 2: return ModeW; break;
case 4: return ModeL; break;
case 8: return ModeQ; break;
}
diff --git a/6/regs.def b/6/regs.def
index 0f97e0e..7e481fd 100644
--- a/6/regs.def
+++ b/6/regs.def
@@ -24,22 +24,22 @@ Reg(Rdh, "%dh", ModeB)
Reg(Rbh, "%bh", ModeB)
/* short regs */
-Reg(Rax, "%ax", ModeS)
-Reg(Rbx, "%bx", ModeS)
-Reg(Rcx, "%cx", ModeS)
-Reg(Rdx, "%dx", ModeS)
-Reg(Rsi, "%si", ModeS)
-Reg(Rdi, "%di", ModeS)
-Reg(Rsp, "%sp", ModeS)
-Reg(Rbp, "%bp", ModeS)
-Reg(R8w, "%r8w", ModeS)
-Reg(R9w, "%r9w", ModeS)
-Reg(R10w, "%r10w", ModeS)
-Reg(R11w, "%r11w", ModeS)
-Reg(R12w, "%r12w", ModeS)
-Reg(R13w, "%r13w", ModeS)
-Reg(R14w, "%r14w", ModeS)
-Reg(R15w, "%r15w", ModeS)
+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 */