brintos

brintos / llvm-project-archived public Read only

0
0
Text · 883 B · 4163728 Raw
30 lines · plain
1//===-- aeabi_memcmp.S - EABI memcmp 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_memcmp(void *dest, void *src, size_t n) { memcmp(dest, src, n); }12 13        .syntax unified14        .p2align 215DEFINE_COMPILERRT_FUNCTION(__aeabi_memcmp)16#ifdef USE_THUMB_117        push    {r7, lr}18        bl      memcmp19        pop     {r7, pc}20#else21        b       memcmp22#endif23END_COMPILERRT_FUNCTION(__aeabi_memcmp)24 25DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memcmp4, __aeabi_memcmp)26DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memcmp8, __aeabi_memcmp)27 28NO_EXEC_STACK_DIRECTIVE29 30