qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 2205930c370db90941dc6d49ed659cbfc24c786b
parent fb423f749cc0f6f0cceea7d8b77be5a0d807e26d
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Wed,  7 Oct 2015 22:32:58 -0400

store the byte array in max.ssa

Diffstat:
Mlisc/test/max.ssa | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lisc/test/max.ssa b/lisc/test/max.ssa @@ -2,14 +2,15 @@ # in a nul-terminated array # of unsigned bytes # -# b input array -# a output max +# the output is stored in $a + +data $arr = { b 10, b -60, b 10, b 100, b 200, b 0 } function $test() { @start @loop %max =w phi @start -1, @new %byt, @old %max - %loc =l phi @start $b, @new %loc1, @old %loc1 + %loc =l phi @start $arr, @new %loc1, @old %loc1 %byt =w loadub %loc %loc1 =l add 1, %loc jnz %byt, @iter, @end