libqbe/test/_live.ssa

22 lines
351 B
Text
Raw Normal View History

2015-07-16 02:56:29 -04:00
# this control flow graph is irreducible
# yet, we expecet the liveness analysis
# to work properly and make %x live in
# the block @left
#
# nothing should ever be live at the entry
2015-09-18 12:27:50 -04:00
function $test() {
2015-09-14 18:06:29 -04:00
@start
2015-08-01 18:17:06 -04:00
%b =w copy 0
%x =w copy 10
jnz 0, @loop, @left
2015-09-14 18:06:29 -04:00
@left
2015-07-16 02:56:29 -04:00
jmp @inloop
2015-09-14 18:06:29 -04:00
@loop
2015-08-01 18:17:06 -04:00
%x1 =w add %x, 1
2015-09-14 18:06:29 -04:00
@inloop
2015-08-01 18:17:06 -04:00
%b1 =w add %b, 1
2015-09-14 18:06:29 -04:00
@endloop
2015-07-16 02:56:29 -04:00
jmp @loop
}