Re: [RFC PATCH 06/43] target/loongarch: Implement vaddi/vsubi

2022-12-24 Thread Richard Henderson
On 12/24/22 00:15, Song Gao wrote: +static bool gen_vv_i(DisasContext *ctx, arg_vv_i *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 imm =

[RFC PATCH 06/43] target/loongarch: Implement vaddi/vsubi

2022-12-24 Thread Song Gao
This patch includes: - VADDI.{B/H/W/D}U; - VSUBI.{B/H/W/D}U. Signed-off-by: Song Gao --- target/loongarch/disas.c| 14 + target/loongarch/helper.h | 9 +++ target/loongarch/insn_trans/trans_lsx.c.inc | 21 +++ target/loongarch/insns.decode