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] PowerPC multiply-add (was patch: rs6000 specific)


Dale Johannesen <dalej@apple.com> writes:

> On Tuesday, December 4, 2001, at 02:46 PM, David Edelsohn wrote:
> > 	My biggest problem with the FMA patch is why GCC does not perform
> > this transformation itself.  It seems sort of sad that we need to insert
> > all of these variants instead of GCC canonicalizing the form itself.
> 
> It is sad, but of course the machine-independent parts currently have
> no concept of multiply-add; these patterns arise from combine.

... however, the same is true of (for instance) the mask insert
instruction, but we still canonify combinations of NOT, AND, and OR,
because even though combine has no specific knowledge about what
instructions are available, it does know that if there is an
instruction, it'll be

(not (and (reg ...) (reg ...)))
and not
(or (not (reg ...)) (not (reg ...)))

-- 
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>


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