public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: "Maciej W. Rozycki" <macro@codesourcery.com>
To: Richard Sandiford <rdsandiford@googlemail.com>
Cc: binutils@sourceware.org
Subject: Re: [PATCH] MIPS/GAS: Disable branch relaxation for BPOSGE32/64
Date: Mon, 28 Feb 2011 16:30:00 -0000	[thread overview]
Message-ID: <alpine.DEB.1.10.1102281613140.3904@tp.orcam.me.uk> (raw)
In-Reply-To: <87hbbrqgog.fsf@firetop.home>

On Sat, 26 Feb 2011, Richard Sandiford wrote:

> > 2011-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
> >
> > 	gas/
> > 	* config/tc-mips.c (append_insn): Disable branch relaxation for
> > 	DSP instructions.
> >
> > 	gas/testsuite/
> > 	* gas/mips/relax-bposge.l: New test for DSP branch relaxation.
> > 	* gas/mips/relax-bposge.s: Source for the new test.
> > 	* gas/mips/mips.exp: Run the new test.
> 
> OK.

 Checked in, thanks.

> For the record, I wasn't sure at first whether keying off ISA_DSP* was
> conceptually a good idea, because there doesn't seem to be anything
> inherent in the DSP extensions that would prevent complementing branches
> from being defined in DSPr3.  Of course, if that happened, the change is
> still conservatively correct.  We'd just lack a potential feature for
> those branches.  But I was wondering whether it would be better to have
> a separate flag for branches without complements.

 I've been somewhat conservative about new flag consumption through the 
course of recent development.  Long-term I think it may make sense to add 
a flag for these branches though, for two reasons.  First is this issue 
and second is the DSP_VOLA flag -- it disables reordering of the affected 
instructions into delay slots of any branches even though only these two 
have a data dependency.  It looks to me two flags will be needed though 
and I don't plan to investigate it any further now.

> I agree that that's probably overkill as things stand though.
> If we ever need to use the condition elsewhere, or if more branches
> of this kind are added, then we can add a separate flag at that stage.

 Indeed, I don't think a specific flag for branches with no complements is 
really needed now (as opposed to one for DSP braches) -- these two are an 
exception rather than the rule and I gather only because of the 
asymmetrical nature of DSP programming specifics.  I wouldn't expect more 
such branches to be added and certainly not outside some future revision 
of the DSP ASE.  And if complements are indeed added, then we can relax 
this restriction.

  Maciej

      reply	other threads:[~2011-02-28 16:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-25  0:57 Maciej W. Rozycki
2011-02-26  9:38 ` Richard Sandiford
2011-02-28 16:30   ` Maciej W. Rozycki [this message]

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=alpine.DEB.1.10.1102281613140.3904@tp.orcam.me.uk \
    --to=macro@codesourcery.com \
    --cc=binutils@sourceware.org \
    --cc=rdsandiford@googlemail.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).