From ca8c320dec82df1700216a5a040768bfc2d81632 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Sun, 16 Aug 2015 12:12:19 -0400 Subject: replace RMem refs with an OAddr opertation --- lisc/isel.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lisc/isel.c') 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]; -- cgit 1.4.1