1 //===-- aeabi_ldivmod.S - EABI ldivmod implementation ---------------------===//
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-exception
7 //===----------------------------------------------------------------------===//
9 #include "../assembly.h"
11 // struct { int64_t quot, int64_t rem}
12 // __aeabi_ldivmod(int64_t numerator, int64_t denominator) {
14 // quot = __divmoddi4(numerator, denominator, &rem);
15 // return {quot, rem};
18 #if defined(__MINGW32__)
19 #define __aeabi_ldivmod __rt_sdiv64
24 DEFINE_COMPILERRT_FUNCTION(__aeabi_ldivmod)
29 #if defined(__MINGW32__)
37 bl SYMBOL_NAME(__divmoddi4)
42 END_COMPILERRT_FUNCTION(__aeabi_ldivmod)
44 NO_EXEC_STACK_DIRECTIVE