Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: mark.kettenis@xs4all.nl
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Handle sparc compare-and-branch
Date: Sat, 21 Apr 2012 22:29:00 -0000	[thread overview]
Message-ID: <20120421.150408.2228955493713501659.davem@davemloft.net> (raw)
In-Reply-To: <201204211011.q3LABYvY005548@glazunov.sibelius.xs4all.nl>

From: Mark Kettenis <mark.kettenis@xs4all.nl>
Date: Sat, 21 Apr 2012 12:11:34 +0200 (CEST)

>> Date: Fri, 20 Apr 2012 20:34:08 -0400 (EDT)
>> From: David Miller <davem@davemloft.net>
>> 
>> SPARC-T4 adds a "compare and branch" instruction which fuses
>> a compare and a branch instruction into one.  The branch
>> is non-delayed, there are no anulling facilities, and the
>> displacement is 10-bits.
> 
> Is this new instruction documented anywhere?

Not publicly at the current time, but such documents will be available
soon.

I've posted binutils patches the other day if you're interested in the
opcodes :-)

>> This also corrects the existing bit test for Branch on
>> Integer Register.  The distinguising characteristic between
>> Branch on Integer Register and Compare-and-Branch is bit
>> 28.  The existing code was checking bit 24 for zero, but
>> that's pointless because bit 24 is already covered by
>> the "X_OP2 (insn) == 3" test.
>> 
>> Ok to commit?
> 
> Makes sense to me, so please go ahead.

Thanks.


      reply	other threads:[~2012-04-21 19:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-21  2:22 David Miller
2012-04-21 17:10 ` Mark Kettenis
2012-04-21 22:29   ` David Miller [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=20120421.150408.2228955493713501659.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=gdb-patches@sourceware.org \
    --cc=mark.kettenis@xs4all.nl \
    /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