[Bug middle-end/64225] -funsafe-math-optimizations generates call to pow where multiply instruction would do

ktkachov at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Dec 8 15:16:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64225

ktkachov at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ktkachov at gcc dot gnu.org

--- Comment #2 from ktkachov at gcc dot gnu.org ---
(In reply to Bernard Ogden from comment #1)
> Created attachment 34218 [details]
> -v output

Hmm, I get the good sequence:
        ldr     d1, .LC0
        fmul    d1, d0, d1
        fmul    d0, d1, d0

with current FSF 4.8.4, 4.9.3 and latest 5.0 with just -O1 without having to
specify -funsafe-math-optimisations or -ffast-math



More information about the Gcc-bugs mailing list