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?