[Bug tree-optimization/119186] Using __builtin_ctz results in a error result.

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 10 11:50:41 GMT 2025


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119186

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
In __builtin_ctzg(mask, 16); form (or whatever other value you want in case of
mask being 0).  __builtin_ctzg(mask) still has UB when mask is 0.


More information about the Gcc-bugs mailing list