_fix3.ssa 225 B

1234567891011121314151617181920
  1. function w $test() {
  2. @start
  3. %x =w copy 100
  4. %s =w copy 0
  5. @l
  6. %c =w cslew %x, 10
  7. jnz %c, @a, @b
  8. @a
  9. %s =w add %s, %x
  10. %x =w sub %x, 1
  11. jmp @c
  12. @b
  13. %s =w sub %s, %x
  14. jmp @c
  15. @c
  16. %x =w sub %x, 1
  17. jnz %x, @l, @end
  18. @end
  19. ret %s
  20. }