From a1b3e82dc9290b604151fed3682618bc09fca9cc Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Mon, 7 Sep 2015 22:11:43 -0400 Subject: turn test files in one function definition --- lisc/test/max.ssa | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'lisc/test/max.ssa') diff --git a/lisc/test/max.ssa b/lisc/test/max.ssa index 7f97de0..e2a5c87 100644 --- a/lisc/test/max.ssa +++ b/lisc/test/max.ssa @@ -5,20 +5,22 @@ # b input array # a output max -@start -@loop +function $test { + @start + @loop %max =w phi @start -1, @new %byt, @old %max %loc =l phi @start $b, @new %loc1, @old %loc1 %byt =w loadub %loc %loc1 =l add 1, %loc jnz %byt, @iter, @end -@iter + @iter %cmp =w csle %max, %byt jnz %cmp, @new, @old -@new + @new jmp @loop -@old + @old jmp @loop -@end + @end storew %max, $a ret +} -- cgit 1.4.1