[PATCH] Improved udivmodsi4 with support for ARMv4

Joerg Sonnenberger joerg at NetBSD.org
Wed Jan 22 13:53:03 PST 2014


Hi t.p.northover, compnerd,

The attached patch is a slightly optimized version of NetBSD's unsigned divide. License is cleared with Matt Thomas. Unlike the existing code, it has correct compile time branches for clz and hwdiv support. The test-and-subtract loop is fully unrolled to make full use of conditional execution without explicit branching. The other functions would follow after review for this code.

http://llvm-reviews.chandlerc.com/D2595

Files:
  udivmodsi4.S
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2595.1.patch
Type: text/x-patch
Size: 5366 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140122/7ce674ec/attachment.bin>


More information about the llvm-commits mailing list