[Bug tree-optimization/124946] New signed overflow introduced by vectorization with -march=x86-64-v4

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Apr 24 07:11:09 GMT 2026


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

--- Comment #3 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:78c277483b703383cf12d3a7937570a4314a7124

commit r17-53-g78c277483b703383cf12d3a7937570a4314a7124
Author: Richard Biener <rguenther@suse.de>
Date:   Tue Apr 21 09:54:31 2026 +0200

    tree-optimization/124946 - signed overflow with emulated mixed dot-prod

    When biasing the unsigned vector operand we have to perform that in
    an unsigned type to avoid possible signed overflow.

            PR tree-optimization/124946
            * tree-vect-loop.cc (vect_emulate_mixed_dot_prod): Perform the
            constant biasing in an unsigned type.


More information about the Gcc-bugs mailing list