summary refs log tree commit diff
path: root/lisc/isel.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-08-16 12:12:19 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-09-15 23:01:31 -0400
commitca8c320dec82df1700216a5a040768bfc2d81632 (patch)
treed913fcc9b98ecc3b884099eada8cbd4012c57694 /lisc/isel.c
parent16fe5c13668d9ccc8f3b14c6c20565dfe5a26d57 (diff)
downloadroux-ca8c320dec82df1700216a5a040768bfc2d81632.tar.gz
replace RMem refs with an OAddr opertation
Diffstat (limited to 'lisc/isel.c')
-rw-r--r--lisc/isel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisc/isel.c b/lisc/isel.c
index 41ff9f2..4f6b054 100644
--- a/lisc/isel.c
+++ b/lisc/isel.c
@@ -191,7 +191,7 @@ sel(Ins i, Fn *fn)
 	case OStoreb:
 	case OStores:
 		if (cpy[1].s) {
-			i.arg[1] = MEM(cpy[1].s);
+			i.arg[1] = SLOT(cpy[1].s);
 			cpy[1].s = 0;
 		}
 		n = i.op == OStorel;
@@ -202,7 +202,7 @@ sel(Ins i, Fn *fn)
 	case OLoadsb:
 	case OLoadub:
 		if (cpy[0].s) {
-			i.arg[0] = MEM(cpy[0].s);
+			i.arg[0] = SLOT(cpy[0].s);
 			cpy[0].s = 0;
 		}
 		n = 0;
@@ -261,7 +261,7 @@ Emit:
 
 	for (n=0; n<2; n++)
 		if (cpy[n].s)
-			emit(OCopy, cpy[n].r, MEM(cpy[n].s), R);
+			emit(OAddr, cpy[n].r, SLOT(cpy[n].s), R);
 }
 
 static Ins *
@@ -441,7 +441,7 @@ isel(Fn *fn)
 				s = rslot(p->arg[a], fn);
 				if (s) {
 					p->arg[a] = newtmp(TLong, fn);
-					emit(OCopy, p->arg[a], MEM(s), R);
+					emit(OAddr, p->arg[a], SLOT(s), R);
 				}
 			}
 		curi = &insb[NIns];