This is an archive of the discontinued LLVM Phabricator instance.

Add __ffssi2 implementation to compiler-rt builtins
ClosedPublic

Authored by dim on Apr 5 2017, 1:19 PM.

Details

Summary

During MIPS implementation work for FreeBSD, John Baldwin (jhb@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?

Diff Detail

Repository
rL LLVM

Event Timeline

dim created this revision.Apr 5 2017, 1:19 PM
weimingz accepted this revision.Apr 5 2017, 1:47 PM

LGTM.

This revision is now accepted and ready to land.Apr 5 2017, 1:47 PM
This revision was automatically updated to reflect the committed changes.