Re: [RFC PATCH 40/43] target/loongarch: Implement vreplve vpack vpick

2023-03-22 Thread Richard Henderson
On 3/22/23 01:32, gaosong wrote: 在 2023/3/21 下午11:55, Richard Henderson 写道: On 3/21/23 04:31, gaosong wrote: but for this case. e.g vreplve_b  vd vj, rk index  = gpr[rk] % (128/8); Vd->B(i) = Vj->B(index); tcg_gen_gvec_dup_mem(MO_8, vreg_full_offset(a->vd), offsetof(CPULoongArchState, fpr[a->

Re: [RFC PATCH 40/43] target/loongarch: Implement vreplve vpack vpick

2023-03-22 Thread gaosong
在 2023/3/21 下午11:55, Richard Henderson 写道: On 3/21/23 04:31, gaosong wrote: but for this case. e.g vreplve_b  vd vj, rk index  = gpr[rk] % (128/8); Vd->B(i) = Vj->B(index); tcg_gen_gvec_dup_mem(MO_8, vreg_full_offset(a->vd), offsetof(CPULoongArchState, fpr[a->vj].vreg.B(index))), 16, 16 );

Re: [RFC PATCH 40/43] target/loongarch: Implement vreplve vpack vpick

2023-03-21 Thread Richard Henderson
On 3/21/23 04:31, gaosong wrote: but for this case. e.g vreplve_b  vd vj, rk index  = gpr[rk] % (128/8); Vd->B(i) = Vj->B(index); tcg_gen_gvec_dup_mem(MO_8, vreg_full_offset(a->vd), offsetof(CPULoongArchState, fpr[a->vj].vreg.B(index))), 16, 16 ); How can we get the index with cpu_env? or  nee

Re: [RFC PATCH 40/43] target/loongarch: Implement vreplve vpack vpick

2023-03-21 Thread gaosong
Hi, Richard 在 2022/12/25 上午5:12, Richard Henderson 写道: On 12/24/22 00:16, Song Gao wrote: +TRANS(vreplve_b, gen_vvr, gen_helper_vreplve_b) +TRANS(vreplve_h, gen_vvr, gen_helper_vreplve_h) +TRANS(vreplve_w, gen_vvr, gen_helper_vreplve_w) +TRANS(vreplve_d, gen_vvr, gen_helper_vreplve_d) +TRANS(vr

Re: [RFC PATCH 40/43] target/loongarch: Implement vreplve vpack vpick

2022-12-24 Thread Richard Henderson
On 12/24/22 00:16, Song Gao wrote: +TRANS(vreplve_b, gen_vvr, gen_helper_vreplve_b) +TRANS(vreplve_h, gen_vvr, gen_helper_vreplve_h) +TRANS(vreplve_w, gen_vvr, gen_helper_vreplve_w) +TRANS(vreplve_d, gen_vvr, gen_helper_vreplve_d) +TRANS(vreplvei_b, gen_vv_i, gen_helper_vreplvei_b) +TRANS(vreplve

[RFC PATCH 40/43] target/loongarch: Implement vreplve vpack vpick

2022-12-24 Thread Song Gao
This patch includes: - VREPLVE[I].{B/H/W/D}; - VBSLL.V, VBSRL.V; - VPACK{EV/OD}.{B/H/W/D}; - VPICK{EV/OD}.{B/H/W/D}. Signed-off-by: Song Gao --- target/loongarch/disas.c| 35 +++ target/loongarch/helper.h | 30 +++ target/loongarch/insn_trans/trans_lsx.c.i