summary refs log tree commit diff
path: root/lisc/test/loop.ssa
blob: 1b55e02310613156b2f32cd685ba28488c82202c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# simple looping program
# sums all integers from 100 to 0

@start

@loop
	%s  =w phi @start 100, @loop %s1
	%n  =w phi @start   0, @loop %n1
	%n1 =w sub %n, 1
	%s1 =w add %s, %n
	jez %n1, @end, @loop

@end
	ret