call_apsr.S 818 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //===-- call_apsr.S - Helpers for ARM EABI floating point tests -----------===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is dual licensed under the MIT and the University of Illinois Open
  6. // Source Licenses. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. //
  10. // This file implements helpers for ARM EABI floating point tests for the
  11. // compiler_rt library.
  12. //
  13. //===-
  14. #include "pico/asm_helper.S"
  15. pico_default_asm_setup
  16. .align 2
  17. .global call_apsr_f
  18. .type call_apsr_f,%function
  19. .thumb_func
  20. call_apsr_f:
  21. push {lr}
  22. blx r2
  23. mrs r0, apsr
  24. pop {pc}
  25. .global call_apsr_d
  26. .type call_apsr_d,%function
  27. .thumb_func
  28. call_apsr_d:
  29. push {r4, lr}
  30. ldr r4, [sp, #8]
  31. blx r4
  32. mrs r0, apsr
  33. pop {r4, pc}