2012-01-30 18:21:23 +08:00
|
|
|
//===-- aeabi_memcmp.S - EABI memcmp implementation -----------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is dual licensed under the MIT and the University of Illinois Open
|
|
|
|
// Source Licenses. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "../assembly.h"
|
|
|
|
|
|
|
|
// void __aeabi_memcmp(void *dest, void *src, size_t n) { memcmp(dest, src, n); }
|
|
|
|
|
2016-07-13 22:01:15 +08:00
|
|
|
.syntax unified
|
2014-05-12 23:23:37 +08:00
|
|
|
.p2align 2
|
2012-01-30 18:21:23 +08:00
|
|
|
DEFINE_COMPILERRT_FUNCTION(__aeabi_memcmp)
|
2017-11-10 01:32:57 +08:00
|
|
|
#ifdef USE_THUMB_1
|
|
|
|
push {r7, lr}
|
|
|
|
bl memcmp
|
|
|
|
pop {r7, pc}
|
|
|
|
#else
|
2012-01-30 18:21:23 +08:00
|
|
|
b memcmp
|
2017-11-10 01:32:57 +08:00
|
|
|
#endif
|
2014-01-24 22:33:42 +08:00
|
|
|
END_COMPILERRT_FUNCTION(__aeabi_memcmp)
|
2012-01-30 18:21:23 +08:00
|
|
|
|
|
|
|
DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memcmp4, __aeabi_memcmp)
|
|
|
|
DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memcmp8, __aeabi_memcmp)
|
2016-06-23 06:09:42 +08:00
|
|
|
|
|
|
|
NO_EXEC_STACK_DIRECTIVE
|
|
|
|
|