Re: [RFC][PATCH] parisc: Fix left-shift assembly to be PA1.1 compatible

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2018-10-19 2:26 AM, Helge Deller wrote:
And in the Linux kernel source (arch/parisc/include/asm/assembly.h) I see

          /* Shift Left - note the r and t can NOT be the same! */
          .macro shl r, sa, t
          dep,z   \r, 31-(\sa), 32-(\sa), \t
Should be zdep.
Ok.
What about the note "r and t can NOT be the same!" ?
Is that bogus or true for the dep case at least?
The comment is bogus.  The only limitation is the field specified by the position and length arguments  cannot extend beyond the leftmost bit.  The macro is equivalent to the shlw pseudo-operation (page 7-43 of PA 2.0 Architecture).  I believe the hardware uses temporary registers to do the manipulation.

Dave

--
John David Anglin  dave.anglin@xxxxxxxx




[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux