[PATCH 0/3] ARM with only 32-bit floats do not have fast 64-bit FMA
Keith Packard
keithp@keithp.com
Mon Sep 7 22:23:42 GMT 2020
Brian Inglis <Brian.Inglis@SystematicSw.ab.ca> writes:
> Can't the "super-smart" compiler use that information to work around your
> careful approach by conditionally skipping the FMA and conditionally return just
> z, or even unconditionally return z, as C makes no guarantees?
> And couldn't the "super-smart" instruction scheduler do similar at the hardware
> level?
I don't think that would be in conformance with the C specification
which says that arithmetic follows IEC 60559 that defines the various
exceptions and results. Now, if you enable -ffast-math, all bets are off...
--
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/newlib/attachments/20200907/50a1ab18/attachment.sig>
More information about the Newlib
mailing list