summary refs log tree commit diff
path: root/lisc
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-08-15 17:25:41 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-09-15 23:01:31 -0400
commit4699fb7663961b3dab2591f2165be62fda47c3e8 (patch)
tree1f8783bd3493e3ae32548efa875935a998668d30 /lisc
parent670604e91f316383634b98b9c0c82de536335fa5 (diff)
downloadroux-4699fb7663961b3dab2591f2165be62fda47c3e8.tar.gz
fix bug in parallel moves code
Diffstat (limited to 'lisc')
-rw-r--r--lisc/rega.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisc/rega.c b/lisc/rega.c
index 703a93b..b31f7a4 100644
--- a/lisc/rega.c
+++ b/lisc/rega.c
@@ -232,7 +232,7 @@ dopm(Blk *b, Ins *i, RMap *m)
 			pmadd(rt, i->to);
 			if (i==b->ins
 			|| (i-1)->op!=OCopy
-			|| isreg((i-1)->to))
+			|| !isreg((i-1)->to))
 				break;
 		}
 	else if (isreg(i->arg[0]))
@@ -255,7 +255,7 @@ dopm(Blk *b, Ins *i, RMap *m)
 			BSET(m->b, r);
 			if (i==b->ins
 			|| (i-1)->op!=OCopy
-			|| isreg((i-1)->arg[0]))
+			|| !isreg((i-1)->arg[0]))
 				break;
 		}
 	else