[PATCH] D24071: [compiler-rt] [builtins] Allow building the necessary ARM builtins for MSVC mode with cmake

James Molloy via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 31 03:07:02 PDT 2016

jmolloy added a subscriber: jmolloy.
jmolloy added a comment.


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?

Modulo can be emitted as a division + multiply-subtract - in fact one of our engineers is working on such a patch right now - it could be extended to work in windows-on-arm mode too perhaps?

I think I really need to know what the expected code should be for modulo.



More information about the llvm-commits mailing list