https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77836
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2016-10-04 Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. The easy way to do this is to canonicalize the shift to a multiply or the multiply to a shift which is what it is done on the RTL level.