public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Henderson <rth@redhat.com>
To: Mohamed Shafi <shafitvm@gmail.com>
Cc: GCC <gcc@gcc.gnu.org>
Subject: Re: Supporting FP cmp lib routines
Date: Mon, 14 Sep 2009 14:49:00 -0000	[thread overview]
Message-ID: <4AAE580A.4080109@redhat.com> (raw)
In-Reply-To: <ba0bd44d0909140659u84447c2x32705cd72ce9d73a@mail.gmail.com>

On 09/14/2009 06:59 AM, Mohamed Shafi wrote:
> Is there a way to let GCC know that the result for FP compare
> are stored in the Status Register so that GCC generates directly a
> jump operation? How can i implement this?

There is no way to do this via the standard libcall sequence.

In order to implement this, you'll want to build the function
calls yourself, directly from the cbranch expanders.  Have a
look at alpha_emit_xfloating_libcall for ideas.

You'll want to make sure that that your status register is set
up as the return value of the call pattern, i.e.

   (set (reg:CC status-reg)
        (call:CC (mem (symbol_ref "fp-compare-routine"))))


That should be about all you need to get things working.


r~

  reply	other threads:[~2009-09-14 14:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-14 13:59 Mohamed Shafi
2009-09-14 14:49 ` Richard Henderson [this message]
2009-09-14 16:03   ` Richard Henderson
2009-10-23 14:32     ` Mohamed Shafi
2009-10-23 14:40       ` Joern Rennecke

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=4AAE580A.4080109@redhat.com \
    --to=rth@redhat.com \
    --cc=gcc@gcc.gnu.org \
    --cc=shafitvm@gmail.com \
    /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).