Path: blob/main/contrib/llvm-project/compiler-rt/lib/builtins/arm/aeabi_memcmp.S
35291 views
//===-- aeabi_memcmp.S - EABI memcmp implementation -----------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "../assembly.h"910// void __aeabi_memcmp(void *dest, void *src, size_t n) { memcmp(dest, src, n); }1112.syntax unified13.p2align 214DEFINE_COMPILERRT_FUNCTION(__aeabi_memcmp)15#ifdef USE_THUMB_116push {r7, lr}17bl memcmp18pop {r7, pc}19#else20b memcmp21#endif22END_COMPILERRT_FUNCTION(__aeabi_memcmp)2324DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memcmp4, __aeabi_memcmp)25DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memcmp8, __aeabi_memcmp)2627NO_EXEC_STACK_DIRECTIVE28293031