https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69624
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> --- If you are calling a function (__sw_hweight32) without letting gcc know you do that, are you sure that function call does not modify any registers other than "flags" and "rax"?