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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Daniel Barboza <[email protected]>:

https://gcc.gnu.org/g:3f527492135e4bb5d89c24636c89f4d45617164e

commit r17-3800-g3f527492135e4bb5d89c24636c89f4d45617164e
Author: Daniel Barboza <[email protected]>
Date:   Mon Aug 31 12:34:24 2026 -0700

    tree-ssa-forwprop: do not handle COMPLEX types in
simplify_phi_result_movdiv [PR127163]

    If the div/mod statement is not an integral type the code will ICE in an
    integer_cst check.  The transformation being done in this function
    wasn't made with complex types in mind, so filter them out.

            PR tree-optimization/127163

    gcc/ChangeLog:

            * tree-ssa-forwprop.cc (simplify_phi_result_movdiv): check if
            the div/mod is using INTEGRAL_TYPE_P operands.

    gcc/testsuite/ChangeLog:

            * gcc.dg/torture/pr127163.c: New test.

Reply via email to