summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-11-30 10:18:03 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-11-30 10:18:03 -0500
commit5097cf1d42e0778991e6c8874b4c46d83297fbf3 (patch)
treecfb5d96dba384dd9eaecf24cd51d86e1f37ffc7e
parente198fe6c40f745a3a94a52debe187a6a5c2d3ba5 (diff)
downloadroux-5097cf1d42e0778991e6c8874b4c46d83297fbf3.tar.gz
stores becomes storeh
-rw-r--r--lisc/emit.c2
-rw-r--r--lisc/isel.c6
-rw-r--r--lisc/lisc.h2
-rw-r--r--lisc/parse.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/lisc/emit.c b/lisc/emit.c
index 8e69780..f21629e 100644
--- a/lisc/emit.c
+++ b/lisc/emit.c
@@ -252,7 +252,7 @@ eins(Ins i, Fn *fn, FILE *f)
 		break;
 	case OStorel:
 	case OStorew:
-	case OStores:
+	case OStoreh:
 	case OStoreb:
 		emitf(fn, f, "mov%t %R, %M",
 			i.op - OStorel, i.arg[0], i.arg[1]);
diff --git a/lisc/isel.c b/lisc/isel.c
index fbbef26..a267024 100644
--- a/lisc/isel.c
+++ b/lisc/isel.c
@@ -180,8 +180,8 @@ sel(Ins i, ANum *an, Fn *fn)
 		break;
 	case OStorel:
 	case OStorew:
+	case OStoreh:
 	case OStoreb:
-	case OStores:
 		seladdr(&i.arg[1], an, fn);
 		goto Emit;
 	case_OLoad:
@@ -265,8 +265,8 @@ flagi(Ins *i0, Ins *i)
 		case OCopy: /* flag-transparent */
 		case OStorel:
 		case OStorew:
-		case OStoreb:
-		case OStores:;
+		case OStoreh:
+		case OStoreb:;
 		}
 	return 0;
 }
diff --git a/lisc/lisc.h b/lisc/lisc.h
index 2c91fb8..6e0abe5 100644
--- a/lisc/lisc.h
+++ b/lisc/lisc.h
@@ -171,7 +171,7 @@ enum Op {
 	OCmp1 = OCmp + NCmp-1,
 	OStorel,
 	OStorew,
-	OStores,
+	OStoreh,
 	OStoreb,
 	OLoad,
 	OLoad1 = OLoad + NTy-1,
diff --git a/lisc/parse.c b/lisc/parse.c
index a5c6040..9384b4b 100644
--- a/lisc/parse.c
+++ b/lisc/parse.c
@@ -11,7 +11,7 @@ OpDesc opdesc[NOp] = {
 	[OAnd]    = { "and",    2 },
 	[OStorel] = { "storel", 0 },
 	[OStorew] = { "storew", 0 },
-	[OStores] = { "stores", 0 },
+	[OStoreh] = { "storeh", 0 },
 	[OStoreb] = { "storeb", 0 },
 	[OCopy]   = { "copy",   1 },
 	[ONop]    = { "nop",    0 },