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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <[email protected]>:

https://gcc.gnu.org/g:cadbc011b9cf61738b3bbf409a285689c91d2223

commit r16-5147-gcadbc011b9cf61738b3bbf409a285689c91d2223
Author: Andrew Pinski <[email protected]>
Date:   Mon Nov 10 12:22:28 2025 -0800

    ifcvt: Fix factor_out_operators for BIT_FIELD_REF and BIT_INSERT_EXPR
[PR122629]

    So factor_out_operators will factor out some expressions but in the case
    of BIT_FIELD_REF and BIT_INSERT_EXPR, this only allowed for operand 0 as
the
    other operands need to be constant.

    Bootstrapped and tested on x86_64-linux-gnu.

            PR tree-optimization/122629

    gcc/ChangeLog:

            * tree-if-conv.cc (factor_out_operators): Reject
            BIT_FIELD_REF and BIT_INSERT_EXPR if operand other
            than 0 is different.

    gcc/testsuite/ChangeLog:

            * gcc.dg/torture/pr122629-1.c: New test.
            * gcc.dg/torture/pr122629-2.c: New test.
            * gcc.dg/tree-ssa/pr122629-1.c: New test.

    Signed-off-by: Andrew Pinski <[email protected]>

Reply via email to