_spill3.ssa 368 B

123456789101112131415161718192021222324
  1. # make sure comparisons
  2. # never get their two
  3. # operands in memory
  4. # run with NReg == 3, or
  5. # adapt it!
  6. function $test() {
  7. @start
  8. %a =w loadw $a
  9. %b =w loadw $a
  10. @loop
  11. %c =w phi @start 0, @loop %f
  12. %d =w phi @start 0, @loop %g
  13. %e =w phi @start 0, @loop %h
  14. %f =w add %c, %d
  15. %g =w add %c, %e
  16. %h =w add %e, %d
  17. %x =w cslew %a, %b
  18. jnz %x, @loop, @end
  19. @end
  20. ret
  21. }