Re: [PATCH] target/mips/translate: Simplify PCPYH using deposit/extract

2020-11-24 Thread Richard Henderson
On 11/24/20 9:28 AM, Richard Henderson wrote: >> +tcg_gen_extract_i64(t0, cpu_gpr[a->rt], 0, 16); >> +tcg_gen_deposit_i64(cpu_gpr[a->rd], cpu_gpr[a->rd], t0, 0, 16); >> +tcg_gen_deposit_i64(cpu_gpr[a->rd], cpu_gpr[a->rd], t0, 16, 16); >> +tcg_gen_deposit_i64(cpu_gpr[

Re: [PATCH] target/mips/translate: Simplify PCPYH using deposit/extract

2020-11-24 Thread Richard Henderson
On 11/24/20 2:38 AM, Philippe Mathieu-Daudé wrote: > Simplify (and optimize) the Parallel Copy Halfword > instruction using deposit() / extract() helpers. > > Ref: C790-Specific Instruction Set, Appendix B-63. > > Signed-off-by: Philippe Mathieu-Daudé > --- > target/mips/translate.c | 35 ++

[PATCH] target/mips/translate: Simplify PCPYH using deposit/extract

2020-11-24 Thread Philippe Mathieu-Daudé
Simplify (and optimize) the Parallel Copy Halfword instruction using deposit() / extract() helpers. Ref: C790-Specific Instruction Set, Appendix B-63. Signed-off-by: Philippe Mathieu-Daudé --- target/mips/translate.c | 35 ++- 1 file changed, 10 insertions(+), 25