[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Behaviour of jit_qrsh()
From: |
Paul Cercueil |
Subject: |
Re: Behaviour of jit_qrsh() |
Date: |
Tue, 03 Oct 2023 21:41:37 +0200 |
Hi Paulo,
Le mardi 03 octobre 2023 à 14:23 -0300, Paulo César Pereira de Andrade
a écrit :
> Em ter., 3 de out. de 2023 às 00:29, Paulo César Pereira de Andrade
> <paulo.cesar.pereira.de.andrade@gmail.com> escreveu:
>
> > > > > I'm trying to implement the q-shift operations on SH4.
> > > > >
> > > > > In the doc, jit_qrsh() is defined as this operation:
> > > > > O1 = O3 >> O4, O2 = O3 << (WORDSIZE - O4)
>
> Should be fixed now.
Great, thanks!
> On aarch64 and mips it relies on:
>
> rshr %r0 %r1 %r2
>
> with %r2 == wordsize setting %r0 with either 0 or -1 depending
> on the sign of %r1.
>
> On qemu alpha this is not true, so an extra test was added.
> For ia64 I just assumed it needs the same workaround.
>
> Thanks!
> Paulo
Cheers,
-Paul