This is the mail archive of the gcc-patches@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]

Re: [PATCH] Add fma support to the middle end and powerpc


On 10/13/2010 02:32 PM, Michael Meissner wrote:
> Since the rs6000 is the only port (so far) that provides fma and fmaf, it was
> simpler to define the macros in the backend, rather than come up with some
> callback mechanism where either c-cppbuiltin calls the rtl layer to ask if it
> has fma, or the rtl layer uses a target hook to define the macros if the
> preprocessor is loaded.

That's a bit short sighted.  There's plenty of ports that already have
fma instructions in their machine description.  Within the week I would
expect most of them to have been converted to your new interface.

Frankly I don't see what's so holy about c-cppbuiltin that it can't
have access to tm.h.

> +;; Fused multiply add.  By default expand the FMA into (plus (mult)) to help
> +;; loop unrolling. 

Er.. Really?  What does loop unrolling care?


r~


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