https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128089
--- Comment #6 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:354649551eef48f58ceb00633d56daee23139413 commit r17-5512-g354649551eef48f58ceb00633d56daee23139413 Author: Richard Biener <[email protected]> Date: Fri Oct 23 15:14:11 2026 +0200 tree-optimization/128089 - fix bad linearization in reassoc When undistribute_ops_list calls linearize_expr with an outer RDIV_EXPR we fail to consider that RDIV_EXPR is not associative and end up linearizing the RHS. PR tree-optimization/128089 * tree-ssa-reassoc.cc (linearize_expr_tree): Do not make binrhsisreassoc true unless is_associative. * gcc.dg/pr128089.c: New testcase.
