summary refs log tree commit diff
path: root/lisc/test/eucl.ssa
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-09-07 22:11:43 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-09-15 23:01:33 -0400
commita1b3e82dc9290b604151fed3682618bc09fca9cc (patch)
tree999ee363a73790a983dc51e1f5f5299178456b19 /lisc/test/eucl.ssa
parent87ab8941edb69a84979068fe74718f8a12b43262 (diff)
downloadroux-a1b3e82dc9290b604151fed3682618bc09fca9cc.tar.gz
turn test files in one function definition
Diffstat (limited to 'lisc/test/eucl.ssa')
-rw-r--r--lisc/test/eucl.ssa8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisc/test/eucl.ssa b/lisc/test/eucl.ssa
index 25a2a0d..6a85bc3 100644
--- a/lisc/test/eucl.ssa
+++ b/lisc/test/eucl.ssa
@@ -3,14 +3,16 @@
 # ssa program because of the
 # swap of b and a
 
-@start
+function $test {
+ @start
 
-@loop
+ @loop
 	%a =w phi @start 380, @loop %r
 	%b =w phi @start 747, @loop %a
 	%r =w rem %b, %a
 	jnz %r, @loop, @end
 
-@end
+ @end
 	storew %a, $a
 	ret
+}