[PATCH] D24071: [compiler-rt] [builtins] Allow building the necessary ARM builtins for MSVC mode with cmake
Martin Storsjö via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 31 03:18:08 PDT 2016
mstorsjo added a comment.
In https://reviews.llvm.org/D24071#530102, @jmolloy wrote:
> Hi,
>
> So I guess the problem is that we emit the "correct" libcalls for UDIV/SDIV but not for UREM/SREM. I can't seem to find a libcall in Windows for modulo - what is the expected behaviour here?
The existing lib functions, __rt_div etc, return both the quotient and the remainder via some sort of custom return ABI. (For the 32 bit functions, the quotient is in r0 and the remainder in r1, for 64 bit, the quotient is in r0 and r1, and the remainder in r2 and r3.)
https://reviews.llvm.org/D24071
More information about the llvm-commits
mailing list