public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Alan Modra <amodra@bigpond.net.au>
To: Peter Bergner <bergner@vnet.ibm.com>
Cc: "binutils@sourceware.org" <binutils@sourceware.org>
Subject: Re: Handle extrdi and large register rotate values
Date: Sat, 29 Aug 2009 09:44:00 -0000	[thread overview]
Message-ID: <20090829020655.GL19523@bubble.grove.modra.org> (raw)
In-Reply-To: <1251494962.5257.77.camel@otta>

On Fri, Aug 28, 2009 at 04:29:22PM -0500, Peter Bergner wrote:
> On Fri, 2009-08-28 at 10:09 +0930, Alan Modra wrote:
> > {"extrdi",   4,	PPC64,	"rldicl %0,%1,((%2)+(%3))&((%2)+(%3)<>64),64-(%2)"},
> 
> This wouldn't allow something like:
> 
>   extrdi 10,24,6,60   (ie, want [60,61,62,63,0,1] bits)
> 
> which mine would correctly translate to:
> 
>   rldicl 10,24,2,58
> 
> Do we even want to support extrdi's like that or not?  If not, I'll whip
> up a patch using your patch idea and add some testcases.

I'd rather not support wrap around fields in the extended mnemonics.
On 64-bit hardware the 32-bit insns have some pitfalls for novice
programmers.

-- 
Alan Modra
Australia Development Lab, IBM

  reply	other threads:[~2009-08-29  2:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-28  0:02 Peter Bergner
2009-08-28  3:14 ` Alan Modra
2009-08-28  3:32   ` Alan Modra
2009-08-28 21:58     ` Peter Bergner
2009-08-29  9:44       ` Alan Modra [this message]
2009-09-08  9:03         ` Alan Modra

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=20090829020655.GL19523@bubble.grove.modra.org \
    --to=amodra@bigpond.net.au \
    --cc=bergner@vnet.ibm.com \
    --cc=binutils@sourceware.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).