efriedma added a comment. __clzsi2 is provided by libgcc/compiler-rt, so it should be generally available. I guess it might be possible to construct an environment where it isn't, but I'm not sure how. Repository: rL LLVM https://reviews.llvm.org/D47917