qbe

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

commit a3e217c58fa4f9e065d68ad546f2f470e85fc511
parent a40982bb2a9572c242dfdc4192d552ed8f805da5
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Fri,  3 Jul 2015 15:11:36 -0400

add a sample program

Diffstat:
Alisc/test/loop.ssa | 19+++++++++++++++++++
1 file changed, 19 insertions(+), 0 deletions(-)

diff --git a/lisc/test/loop.ssa b/lisc/test/loop.ssa @@ -0,0 +1,19 @@ +# simple looping program +# sums all integers from 100 to 0 + + +@start + %n0 = copy 100 + %s0 = copy 0 + +@loop + %s = phi %s0, %s1 + %n = phi %n0, %n1 + + %n1 = sub %n, 1 + %s1 = add %s, %n + + cnd %n1, @end, @loop + +@end + ret