[Bug middle-end/122687] Vectorization requires -fassociative-math when it shouldn't

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Nov 14 15:58:21 GMT 2025


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
The multiplications are re-associated, we compute ((ref[1] - x[1])*(ref[3] -
x[3])* ...) * ((ref[2] - x[2]) * (ref[4] - x[4]) * ...) with VF == 2.


More information about the Gcc-bugs mailing list