https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113560
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Status|UNCONFIRMED |NEW Component|c++ |target Ever confirmed|0 |1 Last reconfirmed| |2024-01-23 Target| |x86_64-*-* --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- GCC thinks the multiplication bu the constant is cheaper this way - are you sure otherwise? I see g using a highpart multiply while f uses a widening multiply.