aeabi_memcpy.S 883 B

1234567891011121314151617181920212223242526272829
  1. //===-- aeabi_memcpy.S - EABI memcpy implementation -----------------------===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. #include "../assembly.h"
  9. // void __aeabi_memcpy(void *dest, void *src, size_t n) { memcpy(dest, src, n); }
  10. .syntax unified
  11. .p2align 2
  12. DEFINE_COMPILERRT_FUNCTION(__aeabi_memcpy)
  13. #ifdef USE_THUMB_1
  14. push {r7, lr}
  15. bl memcpy
  16. pop {r7, pc}
  17. #else
  18. b memcpy
  19. #endif
  20. END_COMPILERRT_FUNCTION(__aeabi_memcpy)
  21. DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memcpy4, __aeabi_memcpy)
  22. DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memcpy8, __aeabi_memcpy)
  23. NO_EXEC_STACK_DIRECTIVE