[PATCH] D31721: Add __ffssi2 implementation to compiler-rt builtins
Dimitry Andric via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 5 13:19:55 PDT 2017
dim created this revision.
Herald added subscribers: mgorny, dberris.
During MIPS implementation work for FreeBSD, John Baldwin (jhb at FreeBSD.org)
found that gcc 6.x emits calls to __ffssi2() when compiling libc and some
userland programs in the base system.
He added it to compiler-rt's builtins, based off of the existing __ffsdi2()
implementation in https://reviews.freebsd.org/rS316511 .
I promised to submit this upstream, so here it is, including CMake updates and a
test case. Is anything else required?
https://reviews.llvm.org/D31721
Files:
lib/builtins/CMakeLists.txt
lib/builtins/README.txt
lib/builtins/ffssi2.c
test/builtins/Unit/ffssi2_test.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31721.94273.patch
Type: text/x-patch
Size: 3572 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170405/78caf8f2/attachment.bin>
More information about the llvm-commits
mailing list