diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-09-07 22:11:43 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-09-15 23:01:33 -0400 |
commit | a1b3e82dc9290b604151fed3682618bc09fca9cc (patch) | |
tree | 999ee363a73790a983dc51e1f5f5299178456b19 /lisc/test/max.ssa | |
parent | 87ab8941edb69a84979068fe74718f8a12b43262 (diff) | |
download | roux-a1b3e82dc9290b604151fed3682618bc09fca9cc.tar.gz |
turn test files in one function definition
Diffstat (limited to 'lisc/test/max.ssa')
-rw-r--r-- | lisc/test/max.ssa | 14 |
1 files changed, 8 insertions, 6 deletions
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 +} |