[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 14/28] tcg/mips: Support bswap flags in tcg_out_bswap32
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH 14/28] tcg/mips: Support bswap flags in tcg_out_bswap32 |
Date: |
Mon, 14 Jun 2021 11:31:13 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 |
On 6/14/21 10:37 AM, Richard Henderson wrote:
> Merge tcg_out_bswap32 and tcg_out_bswap32s. Use the flags
> in the internal uses for loads and stores.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> tcg/mips/tcg-target.c.inc | 39 ++++++++++++++++-----------------------
> 1 file changed, 16 insertions(+), 23 deletions(-)
> -static void tcg_out_bswap32(TCGContext *s, TCGReg ret, TCGReg arg)
> +static void tcg_out_bswap32(TCGContext *s, TCGReg ret, TCGReg arg, int flags)
> {
> if (use_mips32r2_instructions) {
> tcg_out_opc_reg(s, OPC_WSBH, ret, 0, arg);
> tcg_out_opc_sa(s, OPC_ROTR, ret, ret, 16);
> + if (flags & TCG_BSWAP_OZ) {
> + tcg_out_opc_bf(s, OPC_DEXT, ret, ret, 31, 0);
Maybe mention the rotr -> ext32u mips32r2 simplification?
Otherwise:
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
- Re: [PATCH 08/28] tcg/ppc: Split out tcg_out_bswap32, (continued)
- [PATCH 07/28] tcg/ppc: Split out tcg_out_bswap16, Richard Henderson, 2021/06/14
- [PATCH 10/28] tcg/ppc: Support bswap flags, Richard Henderson, 2021/06/14
- [PATCH 13/28] tcg/mips: Support bswap flags in tcg_out_bswap16, Richard Henderson, 2021/06/14
- [PATCH 14/28] tcg/mips: Support bswap flags in tcg_out_bswap32, Richard Henderson, 2021/06/14
- Re: [PATCH 14/28] tcg/mips: Support bswap flags in tcg_out_bswap32,
Philippe Mathieu-Daudé <=
- [PATCH 17/28] tcg: Add flags argument to tcg_gen_bswap16_*, tcg_gen_bswap32_i64, Richard Henderson, 2021/06/14
- Re: [PATCH 17/28] tcg: Add flags argument to tcg_gen_bswap16_*, tcg_gen_bswap32_i64, Peter Maydell, 2021/06/21
[PATCH 18/28] tcg: Make use of bswap flags in tcg_gen_qemu_ld_*, Richard Henderson, 2021/06/14