]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/compiler-rt/lib/builtins/arm/aeabi_memmove.S
Import tzdata 2019a
[FreeBSD/FreeBSD.git] / contrib / compiler-rt / lib / builtins / arm / aeabi_memmove.S
1 //===-- aeabi_memmove.S - EABI memmove 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_memmove(void *dest, void *src, size_t n) { memmove(dest, src, n); }
13
14         .p2align 2
15 DEFINE_COMPILERRT_FUNCTION(__aeabi_memmove)
16 #ifdef USE_THUMB_1
17         push    {r7, lr}
18         bl      memmove
19         pop     {r7, pc}
20 #else
21         b       memmove
22 #endif
23 END_COMPILERRT_FUNCTION(__aeabi_memmove)
24
25 DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memmove4, __aeabi_memmove)
26 DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memmove8, __aeabi_memmove)
27
28 NO_EXEC_STACK_DIRECTIVE
29