summary refs log tree commit diff
path: root/lisc/test
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-08-20 11:51:59 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-09-15 23:01:32 -0400
commitfd31290dd37cfd8f7ba765eb330d719bafba42f0 (patch)
treecebcbcb82fc538d64ab2e48d54937c422b187ec6 /lisc/test
parent328cdc448ca7ab6dd7efbf595472a0d49da3651a (diff)
downloadroux-fd31290dd37cfd8f7ba765eb330d719bafba42f0.tar.gz
fix emit(OCopy) and use pointers in max.ssa
Diffstat (limited to 'lisc/test')
-rw-r--r--lisc/test/max.ssa5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisc/test/max.ssa b/lisc/test/max.ssa
index f054a6a..7f97de0 100644
--- a/lisc/test/max.ssa
+++ b/lisc/test/max.ssa
@@ -8,10 +8,9 @@
 @start
 @loop
 	%max =w phi @start -1, @new %byt, @old %max
-	%id0 =l phi @start 0,  @new %id1, @old %id1
-	%loc =l add $b, %id0
+	%loc =l phi @start $b,  @new %loc1, @old %loc1
 	%byt =w loadub %loc
-	%id1 =l add 1, %id0
+	%loc1 =l add 1, %loc
 	jnz %byt, @iter, @end
 @iter
 	%cmp =w csle %max, %byt