[Bug middle-end/123575] [14/15/16 Regression] internal compiler error: in prepare_cmp_insn, at optabs.cc:4589

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 28 13:56:42 GMT 2026


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

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

https://gcc.gnu.org/g:26723879292eda8a9b606b3c2b968941ec4fd9ef

commit r16-7116-g26723879292eda8a9b606b3c2b968941ec4fd9ef
Author: Richard Biener <rguenther@suse.de>
Date:   Wed Jan 28 13:39:14 2026 +0100

    middle-end/123575 - fix ABS_EXPR folding for vectors

    Folding away a conversion requires an optab check for vectors.

            PR middle-end/123575
            * match.pd (abs ((T)x) -> absu (x)): For vector type
            arguments require the resulting operation is supported.

            * g++.dg/pr123575.C: New testcase.


More information about the Gcc-bugs mailing list