https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124838
--- Comment #3 from Zoltan Hidvegi <zoltan at hidvegi dot com> --- Sorry, I haven't realized that I can use __builtin_clzg for that, it works great. The ? operator though expands to lzcnt/test/cmov instead of the single lzcnt instruction, so the two are not the same.
