https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78037
--- Comment #8 from Nicolas Le Scouarnec <nlescoua at gmail dot com> --- The same problem may be present in lzcnt which is also expanded as __builtin_clz which is also undefined if 0. http://www.felixcloutier.com/x86/LZCNT.html