summary refs log tree commit diff
path: root/lisc/test/fix1.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/fix1.ssa
parent87ab8941edb69a84979068fe74718f8a12b43262 (diff)
downloadroux-a1b3e82dc9290b604151fed3682618bc09fca9cc.tar.gz
turn test files in one function definition
Diffstat (limited to 'lisc/test/fix1.ssa')
-rw-r--r--lisc/test/fix1.ssa12
1 files changed, 7 insertions, 5 deletions
diff --git a/lisc/test/fix1.ssa b/lisc/test/fix1.ssa
index 61b6395..d0695c9 100644
--- a/lisc/test/fix1.ssa
+++ b/lisc/test/fix1.ssa
@@ -1,13 +1,15 @@
-@start
+function $test {
+ @start
 	%x =w copy 1
-@loop
+ @loop
 	jnz %x, @noz, @isz
-@noz
+ @noz
 	%x =w copy 0
 	jmp @end
-@isz
+ @isz
 	%x =w copy 1
 	jmp @loop
-@end
+ @end
 	%z =w add 10, %x
 	ret
+}