qbe

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

_spill1.ssa (335B)


      1 # test with NReg == 3
      2 # there must be a spill
      3 # happening on %c
      4 #
      5 # if you replace the sub
      6 # by an add or comment
      7 # the two marked lines
      8 # there should be no
      9 # spill
     10 #
     11 
     12 function $test() {
     13 @start
     14 	%f =w copy 0      # here
     15 	%b =w copy 1
     16 	%c =w copy 2
     17 	%a =w sub %b, %c
     18 	%d =w copy %b
     19 	%e =w copy %f     # and there
     20 	%g =w copy %a
     21 	ret
     22 }