summary refs log tree commit diff
path: root/lisc
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-07-11 16:11:36 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-09-15 23:01:27 -0400
commit476e54c5d5c2834171b38b7b7a831df3ee7cc3b2 (patch)
tree7327195fcb95840a7a12224305d974b93dbcc02c /lisc
parentafb46fe317fc7dc49aef5449dedc82435ee81f7f (diff)
downloadroux-476e54c5d5c2834171b38b7b7a831df3ee7cc3b2.tar.gz
change example to hypothetical syntax
Diffstat (limited to 'lisc')
-rw-r--r--lisc/test/loop.ssa9
1 files changed, 2 insertions, 7 deletions
diff --git a/lisc/test/loop.ssa b/lisc/test/loop.ssa
index 37d9478..39d74e4 100644
--- a/lisc/test/loop.ssa
+++ b/lisc/test/loop.ssa
@@ -1,18 +1,13 @@
 # simple looping program
 # sums all integers from 100 to 0
 
-
 @start
-	%n0 = copy 100
-	%s0 = copy 0
 
 @loop
-	%s  = phi %s0, %s1
-	%n  = phi %n0, %n1
-
+	%s  = phi @start 100, @loop %s1
+	%n  = phi @start   0, @loop %n1
 	%n1 = sub %n, 1
 	%s1 = add %s, %n
-
 	jez %n1, @end, @loop
 
 @end