This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]