[PATCH] EABI Divmod, take #1

Renato Golin renato.golin at linaro.org
Wed Jul 10 18:41:09 PDT 2013


Hi all,

The attached patch implements __eabi_*divmod calls when on EABI mode only.
It also allows for the contraction of div+mod and uses the correct ABI of
using R1, not the stack as in the GNU variant.

This patch does not test for 64-bit values correctness, yet, nor the use of
divmod for calculating only the remainder, which shall go on separate
patch(es). FIXMEs in place.

The test-suite buildbot is unaffected because it runs on
arm-linux-gnueabihf, not arm-none-eabi.

Please review.

cheers,
--renato
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130711/ac764a1a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: divmod.patch
Type: application/octet-stream
Size: 9429 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130711/ac764a1a/attachment.obj>


More information about the llvm-commits mailing list