From: Daniel Jacobowitz <drow@mvista.com>
To: Daniel Glastonbury <dang@ratbaggames.com>
Cc: gcc@gcc.gnu.org
Subject: Re: Teaching GCC about fmadd variant
Date: Mon, 22 Apr 2002 07:38:00 -0000 [thread overview]
Message-ID: <20020422103432.A3593@nevyn.them.org> (raw)
In-Reply-To: <082e01c1e9d6$197bc720$7d00a8c0@dang2>
On Mon, Apr 22, 2002 at 05:47:10PM +0930, Daniel Glastonbury wrote:
> Hi,
> I'm looking for some help in teaching gcc how to use the fmadd variants
> that my mips has. Unlike the mips IV madd instruction, this mips has a
> variant that goes something like this:
>
> mula fs, ft : ACC <- fs*ft
> madda fs, ft : ACC <- ACC + fs*ft
> madd fd, fs, ft: fd <- ACC + fs*ft
>
> The problem is there is no general way to move to/from the ACC register.
(Over my head, but) do you still get reasonable benefit from this if
you define simple-minded patterns to move from/to the accumulator?
i.e.:
load fs into ACC: load 1.0 into ft; mula fs, ft
load ACC into fd: load 0.0 into ft; madd fd, ft, ft
On the other hand, this won't help if you were actually seeing it use
the ACC unnecessarily. I believe that would need to be worked around
with costs. You're going to have problems with combine (discussed on
one GCC list, probably this one, a few weeks ago) getting fmadd to
work well, also.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2002-04-22 14:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-22 1:27 Daniel Glastonbury
2002-04-22 7:38 ` Daniel Jacobowitz [this message]
2002-04-23 5:43 ` Daniel Glastonbury
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020422103432.A3593@nevyn.them.org \
--to=drow@mvista.com \
--cc=dang@ratbaggames.com \
--cc=gcc@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).