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

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:4a80eaefd93c2f1f7c9b71dbc1b97783214b7b2f

commit r16-1202-g4a80eaefd93c2f1f7c9b71dbc1b97783214b7b2f
Author: Richard Biener <rguent...@suse.de>
Date:   Thu Jun 5 14:23:06 2025 +0200

    tree-optimization/120032 - CLZ matching, fallback for missing range-info

    The following allows us to emit a conditional move when the value
    of the table based CLZ/CLZ implementation at zero differs from what
    the target implementation guarantees or we cannot easily fixup
    otherwise.  In that case emit a val == 0 ? table-based-zero-result : ...

            PR tree-optimization/120032
            * tree-ssa-forwprop.cc (simplify_count_zeroes): When we cannot use
            the IFN to determine the result at zero use a conditional move
            to reproduce the correct result from the table-based
            algorithm.

            * gcc.target/i386/pr120032-3.c: New testcase.

Reply via email to