https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116831
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|needs-bisection |
Status|UNCONFIRMED |NEW
Last reconfirmed| |2024-09-26
Ever confirmed|0 |1
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Applying pattern match.pd:5354, gimple-match-3.cc:2427
Applying pattern match.pd:6669, gimple-match-3.cc:2452
gimple_simplified to _203 = vect_cst__182 % vect_cst__183;
Different pattern but similar issue:
/* x / y * y == x -> x % y == 0. */
(simplify
(eq:c (mult:c (trunc_div:s @0 @1) @1) @0)
(if (TREE_CODE (TREE_TYPE (@0)) != COMPLEX_TYPE)
(eq (trunc_mod @0 @1) { build_zero_cst (TREE_TYPE (@0)); })))