2012-01-30 18:21:23 +08:00
|
|
|
//===-- aeabi_memmove.S - EABI memmove implementation --------------------===//
|
|
|
|
//
|
2019-01-19 18:56:40 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2012-01-30 18:21:23 +08:00
|
|
|
//
|
|
|
|
//===---------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "../assembly.h"
|
|
|
|
|
|
|
|
// void __aeabi_memmove(void *dest, void *src, size_t n) { memmove(dest, src, n); }
|
|
|
|
|
2014-05-12 23:23:37 +08:00
|
|
|
.p2align 2
|
2012-01-30 18:21:23 +08:00
|
|
|
DEFINE_COMPILERRT_FUNCTION(__aeabi_memmove)
|
2017-11-10 01:32:57 +08:00
|
|
|
#ifdef USE_THUMB_1
|
|
|
|
push {r7, lr}
|
|
|
|
bl memmove
|
|
|
|
pop {r7, pc}
|
|
|
|
#else
|
2012-01-30 18:21:23 +08:00
|
|
|
b memmove
|
2017-11-10 01:32:57 +08:00
|
|
|
#endif
|
2014-01-24 22:33:42 +08:00
|
|
|
END_COMPILERRT_FUNCTION(__aeabi_memmove)
|
2012-01-30 18:21:23 +08:00
|
|
|
|
|
|
|
DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memmove4, __aeabi_memmove)
|
|
|
|
DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memmove8, __aeabi_memmove)
|
2016-06-23 06:09:42 +08:00
|
|
|
|
|
|
|
NO_EXEC_STACK_DIRECTIVE
|
|
|
|
|