brintos

brintos / llvm-project-archived public Read only

0
0
Text · 941 B · fa6a586 Raw
33 lines · plain
1//===-- aeabi_memcpy.S - EABI memcpy 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_memcpy(void *dest, void *src, size_t n) { memcpy(dest, src, n); }12 13        .syntax unified14        .p2align 215DEFINE_COMPILERRT_FUNCTION(__aeabi_memcpy)16#ifdef USE_THUMB_117        push    {r7, lr}18        bl      memcpy19        pop     {r7, pc}20#else21#if defined(__ARM_FEATURE_BTI_DEFAULT)22        bti23#endif24        b       memcpy25#endif26END_COMPILERRT_FUNCTION(__aeabi_memcpy)27 28DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memcpy4, __aeabi_memcpy)29DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memcpy8, __aeabi_memcpy)30 31NO_EXEC_STACK_DIRECTIVE32 33