https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110921
--- Comment #4 from Hongtao.liu <crazylht at gmail dot com> --- (In reply to Hongtao.liu from comment #3) > But there's difference between TZCNT and BSF > > The key difference between TZCNT and BSF instruction is that TZCNT provides > operand size as output when source operand is zero while in the case of BSF > instruction. > > Clang looks correct since it also handle zero case, ICC seems wrong, it just > generates > https://godbolt.org/z/WvrsTrjWr MSCV seems wrong either.