summary refs log tree commit diff
path: root/lisc/test/double.ssa
blob: 7c8cb2a800e7ca1d9e154deb68aae15e7788bb29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function $test() {
@start
	%x1 =d copy `0.1
	%x2 =d add `0.2, %x1
	%x3 =d sub %x2, `0.3

@loop
	%x4 =d phi @start %x3, @loop %x5
	%i1 =w phi @start 0, @loop %i2
	%x5 =d add %x4, %x4
	%i2 =w add %i1, 1
	%c0 =w cled %x5, `1
	jnz %c0, @loop, @end

@end
	storew %i2, $a
	ret
}