https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112949 --- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Oh the definition of __builtin_clz does not have return value so the value is undefined to begin with.