2012-01-30 10:21:23 +00:00
|
|
|
//===-- aeabi_memcpy.S - EABI memcpy implementation -----------------------===//
|
|
|
|
//
|
2019-01-19 10:56:40 +00: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 10:21:23 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "../assembly.h"
|
|
|
|
|
|
|
|
// void __aeabi_memcpy(void *dest, void *src, size_t n) { memcpy(dest, src, n); }
|
|
|
|
|
2016-07-13 14:01:15 +00:00
|
|
|
.syntax unified
|
2014-05-12 15:23:37 +00:00
|
|
|
.p2align 2
|
2012-01-30 10:21:23 +00:00
|
|
|
DEFINE_COMPILERRT_FUNCTION(__aeabi_memcpy)
|
2017-11-09 17:32:57 +00:00
|
|
|
#ifdef USE_THUMB_1
|
|
|
|
push {r7, lr}
|
|
|
|
bl memcpy
|
|
|
|
pop {r7, pc}
|
|
|
|
#else
|
2012-01-30 10:21:23 +00:00
|
|
|
b memcpy
|
2017-11-09 17:32:57 +00:00
|
|
|
#endif
|
2014-01-24 14:33:42 +00:00
|
|
|
END_COMPILERRT_FUNCTION(__aeabi_memcpy)
|
2012-01-30 10:21:23 +00:00
|
|
|
|
|
|
|
DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memcpy4, __aeabi_memcpy)
|
|
|
|
DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memcpy8, __aeabi_memcpy)
|
2016-06-22 22:09:42 +00:00
|
|
|
|
|
|
|
NO_EXEC_STACK_DIRECTIVE
|
|
|
|
|