Re: [PATCH 11/12] target/loongarch: Use generic hrev64_i32() in REVB.2H opcode

2023-08-22 Thread Richard Henderson
On 8/22/23 09:11, Philippe Mathieu-Daudé wrote: -static void gen_revb_2h(TCGv dest, TCGv src1) -{ -    TCGv mask = tcg_constant_tl(0x00FF00FF); -    TCGv t0 = tcg_temp_new(); -    TCGv t1 = tcg_temp_new(); - -    tcg_gen_shri_tl(t0, src1, 8); -    tcg_gen_and_tl(t0, t0, mask); -    tcg_gen_and_tl

Re: [PATCH 11/12] target/loongarch: Use generic hrev64_i32() in REVB.2H opcode

2023-08-22 Thread Philippe Mathieu-Daudé
On 22/8/23 15:30, Philippe Mathieu-Daudé wrote: On 22/8/23 14:52, Philippe Mathieu-Daudé wrote: Signed-off-by: Philippe Mathieu-Daudé ---   target/loongarch/insn_trans/trans_bit.c.inc | 15 +--   1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/target/loongarch/insn_tran

Re: [PATCH 11/12] target/loongarch: Use generic hrev64_i32() in REVB.2H opcode

2023-08-22 Thread Philippe Mathieu-Daudé
On 22/8/23 14:52, Philippe Mathieu-Daudé wrote: Signed-off-by: Philippe Mathieu-Daudé --- target/loongarch/insn_trans/trans_bit.c.inc | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/target/loongarch/insn_trans/trans_bit.c.inc b/target/loongarch/insn_trans/

[PATCH 11/12] target/loongarch: Use generic hrev64_i32() in REVB.2H opcode

2023-08-22 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- target/loongarch/insn_trans/trans_bit.c.inc | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/target/loongarch/insn_trans/trans_bit.c.inc b/target/loongarch/insn_trans/trans_bit.c.inc index c04806dc21..9d564a0999 100644