mips16-pic-4c.s 654 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. .abicalls
  2. .option pic0
  3. .set noreorder
  4. # Create a call stub for f2. We pretend that f2 takes floating-point
  5. # arguments but doesn't return a floating-point value.
  6. .section .mips16.call.f2, "ax", @progbits
  7. .ent __call
  8. __call:
  9. la $25,f2
  10. jr $25
  11. nop
  12. .end __call
  13. # Create a call stub for f3. We pretend that f3 returns a
  14. # floating-point value.
  15. .section .mips16.call.fp.f3, "ax", @progbits
  16. .ent __call_fp
  17. __call_fp:
  18. la $25,f3
  19. jr $25
  20. nop
  21. .end __call_fp
  22. # Make sure that f2 and f3 are called from MIPS16 code.
  23. .set mips16
  24. .text
  25. .global __start
  26. .type __start,@function
  27. .ent __start
  28. __start:
  29. jal f2
  30. nop
  31. jal f3
  32. nop
  33. .end __start