summaryrefslogtreecommitdiff
path: root/lib/builtins/arm/aeabi_memmove.S
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2014-02-14 09:20:33 +0000
committerAlexey Samsonov <samsonov@google.com>2014-02-14 09:20:33 +0000
commit53aa4fda49f94920139300227786ac47c393f1ce (patch)
tree6d022d04ee279fe1afd89668f346e28a9e3e1559 /lib/builtins/arm/aeabi_memmove.S
parent6d999e478fecb10dc43f20b85385d25cc239db0a (diff)
downloadcompiler-rt-53aa4fda49f94920139300227786ac47c393f1ce.tar.gz
Move original compiler-rt functions (libgcc replacement) to lib/builtins directory
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201393 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/builtins/arm/aeabi_memmove.S')
-rw-r--r--lib/builtins/arm/aeabi_memmove.S20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/builtins/arm/aeabi_memmove.S b/lib/builtins/arm/aeabi_memmove.S
new file mode 100644
index 000000000..f3d6b0e1a
--- /dev/null
+++ b/lib/builtins/arm/aeabi_memmove.S
@@ -0,0 +1,20 @@
+//===-- aeabi_memmove.S - EABI memmove implementation --------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===---------------------------------------------------------------------===//
+
+#include "../assembly.h"
+
+// void __aeabi_memmove(void *dest, void *src, size_t n) { memmove(dest, src, n); }
+
+ .align 2
+DEFINE_COMPILERRT_FUNCTION(__aeabi_memmove)
+ b memmove
+END_COMPILERRT_FUNCTION(__aeabi_memmove)
+
+DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memmove4, __aeabi_memmove)
+DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memmove8, __aeabi_memmove)