[LLVMdev] [ARM]__modsi3 call in android

Sumanth Gundapaneni sgundapa at codeaurora.org
Tue Jul 28 09:52:57 PDT 2015


Hi,

     I see there is an inconsistency in LLVM libc calls.

 

For a modulo (reminder) operation, 

clang -target arm-none-linux-gnueabi generates "__modsi3".

clang -target arm-none-eabi generates "__aeabi_idivmod"

clang -target arm-linux-androideabi generates "__modsi3"

 

Android bionic libc doesn't provide a __modsi3, instead it provides
"__aeabi_idivmod".

I wonder why no one has seen this issue so far. Is this a known bug ?

If so, can I move head and push a custom lowering for SREM and UREM when
targeted for Android?

 

--Sumanth G

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150728/ede031fb/attachment.html>


More information about the llvm-dev mailing list