_spill1.ssa 335 B

12345678910111213141516171819202122
  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. function $test() {
  12. @start
  13. %f =w copy 0 # here
  14. %b =w copy 1
  15. %c =w copy 2
  16. %a =w sub %b, %c
  17. %d =w copy %b
  18. %e =w copy %f # and there
  19. %g =w copy %a
  20. ret
  21. }