summary refs log tree commit diff
path: root/lisc/isel.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-08-24 17:36:31 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-09-15 23:01:32 -0400
commit0f0290c1db732716fd068c1ba24cf3fe4b530392 (patch)
treeb663363db399b08a412a6e2a2ef3c5a60dd5cbf4 /lisc/isel.c
parent7594f57a3ee4397ab4be078ba65f371daeb15afd (diff)
downloadroux-0f0290c1db732716fd068c1ba24cf3fe4b530392.tar.gz
the wide bit of OAddr matters!
Diffstat (limited to 'lisc/isel.c')
-rw-r--r--lisc/isel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisc/isel.c b/lisc/isel.c
index cceb128..a310d58 100644
--- a/lisc/isel.c
+++ b/lisc/isel.c
@@ -243,7 +243,7 @@ Emit:
 
 	for (n=0; n<2; n++)
 		if (cpy[n].s)
-			emit(OAddr, 0, cpy[n].r, SLOT(cpy[n].s), R);
+			emit(OAddr, 1, cpy[n].r, SLOT(cpy[n].s), R);
 }
 
 static Ins *
@@ -426,7 +426,7 @@ isel(Fn *fn)
 				s = rslot(p->arg[a], fn);
 				if (s) {
 					p->arg[a] = newtmp(fn);
-					emit(OAddr, 0, p->arg[a], SLOT(s), R);
+					emit(OAddr, 1, p->arg[a], SLOT(s), R);
 				}
 			}
 		curi = &insb[NIns];