aeabi_memcmp.S 883 B

1234567891011121314151617181920212223242526272829
  1. //===-- aeabi_memcmp.S - EABI memcmp 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_memcmp(void *dest, void *src, size_t n) { memcmp(dest, src, n); }
  10. .syntax unified
  11. .p2align 2
  12. DEFINE_COMPILERRT_FUNCTION(__aeabi_memcmp)
  13. #ifdef USE_THUMB_1
  14. push {r7, lr}
  15. bl memcmp
  16. pop {r7, pc}
  17. #else
  18. b memcmp
  19. #endif
  20. END_COMPILERRT_FUNCTION(__aeabi_memcmp)
  21. DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memcmp4, __aeabi_memcmp)
  22. DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memcmp8, __aeabi_memcmp)
  23. NO_EXEC_STACK_DIRECTIVE