Re: [RFC PATCH 43/43] target/loongarch: Implement vldi

2022-12-24 Thread Richard Henderson
On 12/24/22 00:16, Song Gao wrote: +static bool trans_vldi(DisasContext *ctx, arg_vldi *a) +{ +TCGv_i32 twd = tcg_constant_i32(a->vd); +TCGv_i32 tui = tcg_constant_i32(a->imm); + +CHECK_SXE; +gen_helper_vldi(cpu_env, twd, tui); +return true; +} + The constant should be expan

[RFC PATCH 43/43] target/loongarch: Implement vldi

2022-12-24 Thread Song Gao
This patch includes: - VLDI. Signed-off-by: Song Gao --- target/loongarch/disas.c| 7 + target/loongarch/helper.h | 2 + target/loongarch/insn_trans/trans_lsx.c.inc | 10 ++ target/loongarch/insns.decode | 4 + target/loongarch/lsx_helpe