https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124838
Xi Ruoyao <xry111 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WONTFIX
Status|UNCONFIRMED |RESOLVED
CC| |xry111 at gcc dot gnu.org
--- Comment #2 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
Even without clzg you can simply write "max ? __builtin_clz(max) : 64". clzg
just expands to the same IR as that. GCC is able to optimize away the ?:
operation in case it's redundant.