On Tue, Jun 14, 2022 at 02:31:01PM +1000, Michael Ellerman wrote:
> Segher Boessenkool writes:
> > On Sat, Jun 11, 2022 at 08:42:27AM +, Christophe Leroy wrote:
> >> I'd have a preference for using a verb, for instance ZEROISE_REGS or
> >> CLEAR_REGS
> >
> > "Zero" is a verb as well (as well
Segher Boessenkool writes:
> On Sat, Jun 11, 2022 at 08:42:27AM +, Christophe Leroy wrote:
>> Le 10/06/2022 à 05:32, Rohan McLure a écrit :
>> > .macro ZERO_REGS start, end
>> >.Lreg=\start
>> >.rept (\end - \start + 1)
>> >li .Lreg, 0
>> >.Lreg=.Lreg+1
>> >.endr
>> >
On Sat, Jun 11, 2022 at 08:42:27AM +, Christophe Leroy wrote:
> Le 10/06/2022 à 05:32, Rohan McLure a écrit :
> > .macro ZERO_REGS start, end
> > .Lreg=\start
> > .rept (\end - \start + 1)
> > li .Lreg, 0
> > .Lreg=.Lreg+1
> > .endr
> > .endm
>
> I'd have a preference
Le 10/06/2022 à 05:32, Rohan McLure a écrit :
>> On 2 Jun 2022, at 2:00 am, Segher Boessenkool
>> wrote:
>>
>> Hi!
>>
>> On Wed, Jun 01, 2022 at 03:48:45PM +1000, Rohan McLure wrote:
>>> +.macro BINOP_REGS op, rhs, start, end
>>> + .Lreg=\start
>>> + .rept (\end - \start + 1)
>>> + \op .L
Hi!
On Fri, Jun 10, 2022 at 01:32:58PM +1000, Rohan McLure wrote:
> > On 2 Jun 2022, at 2:00 am, Segher Boessenkool
> > wrote:
> > This is for unary operations, not binary operations (there is only one
> > item on the RHS). You can in principle put a string "a,b" in the rhs
> > parameter, but i
> On 2 Jun 2022, at 2:00 am, Segher Boessenkool
> wrote:
>
> Hi!
>
> On Wed, Jun 01, 2022 at 03:48:45PM +1000, Rohan McLure wrote:
>> +.macro BINOP_REGS op, rhs, start, end
>> +.Lreg=\start
>> +.rept (\end - \start + 1)
>> +\op .Lreg, \rhs
>> +.Lreg=.Lreg+1
>> +.endr
>> +.en
Hi!
On Wed, Jun 01, 2022 at 03:48:45PM +1000, Rohan McLure wrote:
> +.macro BINOP_REGS op, rhs, start, end
> + .Lreg=\start
> + .rept (\end - \start + 1)
> + \op .Lreg, \rhs
> + .Lreg=.Lreg+1
> + .endr
> +.endm
This is for unary operations, not binary operations (there is only
Le 01/06/2022 à 07:48, Rohan McLure a écrit :
> [You don't often get email from rmcl...@linux.ibm.com. Learn why this is
> important at https://aka.ms/LearnAboutSenderIdentification ]
>
> Macros for restoring saving registers to and from the stack exist.
> Provide a macro for simply zeroing a r
Macros for restoring saving registers to and from the stack exist.
Provide a macro for simply zeroing a range of gprs, or an individual
gpr.
Signed-off-by: Rohan McLure
---
arch/powerpc/include/asm/ppc_asm.h | 17 +
1 file changed, 17 insertions(+)
diff --git a/arch/powerpc/incl