]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/compiler-rt/lib/builtins/arm/aeabi_memcpy.S
Upgrade our copies of clang, llvm, lld, lldb, compiler-rt and libc++ to
[FreeBSD/FreeBSD.git] / contrib / compiler-rt / lib / builtins / arm / aeabi_memcpy.S
1 //===-- aeabi_memcpy.S - EABI memcpy implementation -----------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #include "../assembly.h"
11
12 //  void __aeabi_memcpy(void *dest, void *src, size_t n) { memcpy(dest, src, n); }
13
14         .syntax unified
15         .p2align 2
16 DEFINE_COMPILERRT_FUNCTION(__aeabi_memcpy)
17 #ifdef USE_THUMB_1
18         push    {r7, lr}
19         bl      memcpy
20         pop     {r7, pc}
21 #else
22         b       memcpy
23 #endif
24 END_COMPILERRT_FUNCTION(__aeabi_memcpy)
25
26 DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memcpy4, __aeabi_memcpy)
27 DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memcpy8, __aeabi_memcpy)
28
29 NO_EXEC_STACK_DIRECTIVE
30