All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sven Schnelle <svens@stackframe.org>
To: Helge Deller <deller@gmx.de>
Cc: linux-parisc@vger.kernel.org,
	James Bottomley <James.Bottomley@hansenpartnership.com>,
	John David Anglin <dave.anglin@bell.net>
Subject: Re: [PATCH] parisc: Prevent using same register as soure and target in extru/shr
Date: Wed, 18 May 2022 08:57:36 +0200	[thread overview]
Message-ID: <87zgjfl44f.fsf@x1.stackframe.org> (raw)
In-Reply-To: <8b5c308a-f3ea-e07f-053a-ad086ce75c43@gmx.de> (Helge Deller's message of "Tue, 17 May 2022 14:54:44 +0200")

Helge Deller <deller@gmx.de> writes:

> On 5/17/22 14:49, Helge Deller wrote:
>> In 2004 Randolph added the shr() assembly macro and noted that the
>> source and target register could not be the same.
>>
>> I did not find any confindence in the docs for this restriction. Maybe
>> it's related that on PA2.0 the upper bits may be clobbered?
>
> Looking at the generated kernel code from C-files, I'll find all over usages of
> 	extru source, x,y,  target
> where source and target are the same register.
> So, at least for 32-bit this restriction can't be true.

I did a quick objdump on the 64 bit HP-UX kernel and that one also uses
extrd/extrw where target and source are the same register. So i don't
think that restriction is true.

  parent reply	other threads:[~2022-05-18  7:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-17 12:49 [PATCH] parisc: Prevent using same register as soure and target in extru/shr Helge Deller
2022-05-17 12:54 ` Helge Deller
2022-05-17 13:41   ` John David Anglin
2022-05-18  6:57   ` Sven Schnelle [this message]
2022-05-18  7:10     ` Helge Deller

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=87zgjfl44f.fsf@x1.stackframe.org \
    --to=svens@stackframe.org \
    --cc=James.Bottomley@hansenpartnership.com \
    --cc=dave.anglin@bell.net \
    --cc=deller@gmx.de \
    --cc=linux-parisc@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.