https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90070
Segher Boessenkool <segher at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2019-04-12 Ever confirmed|0 |1 --- Comment #2 from Segher Boessenkool <segher at gcc dot gnu.org> --- Another way to do it is as an FMA in float mode, which should be faster everywhere (everywhere that has FMA). Current GCC doesn't do that either, not if you write 5* (it does a mulli), nor if you write 5.0* (it does the calculation in double precision, and rounds to single precision afterwards; it would give the exact same result if it did the calculation in single precision directly, afaics, bot when using FMA and when not). Confirmed.