brintos

brintos / llvm-project-archived public Read only

0
0
Text · 925 B · a72d52a Raw
32 lines · plain
1//===-- aeabi_memmove.S - EABI memmove implementation --------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===---------------------------------------------------------------------===//8 9#include "../assembly.h"10 11//  void __aeabi_memmove(void *dest, void *src, size_t n) { memmove(dest, src, n); }12 13        .p2align 214DEFINE_COMPILERRT_FUNCTION(__aeabi_memmove)15#ifdef USE_THUMB_116        push    {r7, lr}17        bl      memmove18        pop     {r7, pc}19#else20#if defined(__ARM_FEATURE_BTI_DEFAULT)21        bti22#endif23        b       memmove24#endif25END_COMPILERRT_FUNCTION(__aeabi_memmove)26 27DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memmove4, __aeabi_memmove)28DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memmove8, __aeabi_memmove)29 30NO_EXEC_STACK_DIRECTIVE31 32