call_apsr.S 807 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. .syntax unified
  15. .cpu cortex-m0plus
  16. .thumb
  17. .align 2
  18. .global call_apsr_f
  19. .type call_apsr_f,%function
  20. .thumb_func
  21. call_apsr_f:
  22. push {lr}
  23. blx r2
  24. mrs r0, apsr
  25. pop {pc}
  26. .global call_apsr_d
  27. .type call_apsr_d,%function
  28. .thumb_func
  29. call_apsr_d:
  30. push {r4, lr}
  31. ldr r4, [sp, #8]
  32. blx r4
  33. mrs r0, apsr
  34. pop {r4, pc}