libqbe/test/_spill1.ssa

23 lines
335 B
Text
Raw Normal View History

2015-07-24 10:22:07 -04:00
# test with NReg == 3
2015-07-24 09:30:44 -04:00
# there must be a spill
2015-07-24 10:22:07 -04:00
# happening on %c
#
# if you replace the sub
2015-07-24 09:30:44 -04:00
# by an add or comment
# the two marked lines
# there should be no
2015-07-24 10:22:07 -04:00
# spill
#
2015-07-24 09:30:44 -04:00
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
%f =w copy 0 # here
%b =w copy 1
%c =w copy 2
%a =w sub %b, %c
%d =w copy %b
%e =w copy %f # and there
%g =w copy %a
2015-07-24 09:30:44 -04:00
ret
}