[Pixman] [PATCH 4/9] armv7: Simplify constant load

Siarhei Siamashka siarhei.siamashka at gmail.com
Mon Apr 18 10:10:24 UTC 2016


On Wed, 13 Apr 2016 21:24:07 +0900
Mizuki Asakura <ed6e117f at gmail.com> wrote:

> Hi.
> 
> In aarch64, I cannot find corresponding instruction of this patch,
> but
> 
> > movi v2.2s, 0xff, lsl #24  
> 
> works well as your modification.

Thanks for finding the AArch64 equivalent for this particular
instruction. This looks like a yet another minor syntax sugar
difference between the 32-bit and the 64-bit variants of the
GNU assembler.

> On 11 April 2016 at 21:26, Ben Avison <bavison at riscosopen.org> wrote:
> > A minor point, but 0xFF000000 is already a valid immediate constant for
> > NEON, there's no need to construct it in two steps.
> >
> > Signed-off-by: Ben Avison <bavison at riscosopen.org>
> > ---
> >  pixman/pixman-arm-neon-asm.S |    3 +--
> >  1 files changed, 1 insertions(+), 2 deletions(-)
> >
> > diff --git a/pixman/pixman-arm-neon-asm.S b/pixman/pixman-arm-neon-asm.S
> > index 9a5d85a..97315d4 100644
> > --- a/pixman/pixman-arm-neon-asm.S
> > +++ b/pixman/pixman-arm-neon-asm.S
> > @@ -1186,8 +1186,7 @@ generate_composite_function \
> >  .endm
> >
> >  .macro pixman_composite_src_x888_8888_init
> > -    vmov.u8  q2, #0xFF
> > -    vshl.u32 q2, q2, #24
> > +    vmov.u32 q2, #0xFF000000
> >  .endm
> >
> >  generate_composite_function \
> > --
> > 1.7.5.4
> >

-- 
Best regards,
Siarhei Siamashka


More information about the Pixman mailing list