[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 5/5] target/mips: Refactor and fix INSERT.<B|
From: |
Aleksandar Markovic |
Subject: |
Re: [Qemu-devel] [PATCH v4 5/5] target/mips: Refactor and fix INSERT.<B|H|W|D> instructions |
Date: |
Tue, 2 Apr 2019 20:50:47 +0000 |
> From: Mateja Marjanovic <address@hidden>
> Subject: [PATCH v4 5/5] target/mips: Refactor and fix INSERT.<B|H|W|D>
> instructions
>
> From: Mateja Marjanovic <address@hidden>
>
> The old version of the helper for the INSERT.<B|H|W|D> MSA instructions
> has been replaced with four helpers that don't use switch, and change
> the endianness of the given index, when executed on a big endian host.
>
> Signed-off-by: Mateja Marjanovic <address@hidden>
> ---
...
> + n %= 16;
Mateja, could you just clarify what is the purpose of this line (and
similar three lines involving "%=")? It looks to me that n is already
limited here to be between 0 and 15, isn't it? (that follows from the
source code of gen_msa_elm().) What made you insert this line,
as it stands?
Thanks,
Aleksandar
- [Qemu-devel] [PATCH v4 0/5] target/mips: Fix support for MSA instructions on a big endian host, Mateja Marjanovic, 2019/04/02
- [Qemu-devel] [PATCH v4 1/5] target/mips: Fix MSA instructions LD.<B|H|W|D> on big endian host, Mateja Marjanovic, 2019/04/02
- [Qemu-devel] [PATCH v4 2/5] target/mips: Fix MSA instructions ST.<B|H|W|D> on big endian host, Mateja Marjanovic, 2019/04/02
- [Qemu-devel] [PATCH v4 4/5] target/mips: Refactor and fix COPY_U.<B|H|W> instructions, Mateja Marjanovic, 2019/04/02
- [Qemu-devel] [PATCH v4 3/5] target/mips: Refactor and fix COPY_S.<B|H|W|D> instructions, Mateja Marjanovic, 2019/04/02
- [Qemu-devel] [PATCH v4 5/5] target/mips: Refactor and fix INSERT.<B|H|W|D> instructions, Mateja Marjanovic, 2019/04/02
- Re: [Qemu-devel] [PATCH v4 5/5] target/mips: Refactor and fix INSERT.<B|H|W|D> instructions,
Aleksandar Markovic <=