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

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

https://gcc.gnu.org/g:960def556c5b7fdc72339748252b4f74be152cbf

commit r17-6595-g960def556c5b7fdc72339748252b4f74be152cbf
Author: Richard Biener <[email protected]>
Date:   Mon Nov 23 11:55:31 2026 +0100

    tree-optimization/128931 - fixed-point and TRUNC_DIV_EXPR in VN

    I assumed TRUNC_DIV_EXPR can only be used on integral types.  It
    can be used for fixed-point as well, where the -a/b -> -(a/b)
    probably doesn't hold anyway, so guard against that.

            PR tree-optimization/128931
            * tree-ssa-sccvn.cc (visit_nary_op): Defend against TRUNC_DIV_EXPR
            used on non-integral types.

            * gcc.dg/pr128931.c: New testcase.

Reply via email to