Re: [RFC PATCH 05/43] target/loongarch: Implement vadd/vsub

2022-12-24 Thread Richard Henderson
On 12/24/22 00:15, Song Gao wrote: +static bool gen_vvv(DisasContext *ctx, arg_vvv *a, +void (*func)(TCGv_ptr, TCGv_i32, TCGv_i32, TCGv_i32)) +{ +TCGv_i32 vd = tcg_constant_i32(a->vd); +TCGv_i32 vj = tcg_constant_i32(a->vj); +TCGv_i32 vk = tcg_constant_i32(a->vk);

[RFC PATCH 05/43] target/loongarch: Implement vadd/vsub

2022-12-24 Thread Song Gao
This patch includes: - VADD.{B/H/W/D/Q}; - VSUB.{B/H/W/D/Q}. Signed-off-by: Song Gao --- target/loongarch/disas.c| 23 ++ target/loongarch/helper.h | 12 +++ target/loongarch/insn_trans/trans_lsx.c.inc | 23 ++ target/loongarch/insns.decode