[PATCH] D27309: builtins: Add ARM Thumb1 implementation for uidiv and uidivmod

Weiming Zhao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 1 10:19:15 PST 2016


weimingz created this revision.
weimingz added reviewers: rengolin, jmolloy.
weimingz added a subscriber: llvm-commits.
Herald added a subscriber: aemerson.

The current uidiv supports archs without clz. However, the asm is for thumb2/arm.
For uidivmod, the existing code calls the C version of uidivmodsi4, which then calls uidiv. The extra push/pop/bl makes it less efficient.


https://reviews.llvm.org/D27309

Files:
  lib/builtins/arm/aeabi_uidivmod.S
  lib/builtins/arm/udivsi3.S
  lib/builtins/assembly.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27309.79943.patch
Type: text/x-patch
Size: 5158 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161201/f20d1a5f/attachment-0001.bin>


More information about the llvm-commits mailing list