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

2023-03-29 Thread Richard Henderson
On 3/29/23 02:59, gaosong wrote: 在 2023/3/29 上午3:59, Richard Henderson 写道: On 3/27/23 20:05, Song Gao wrote: +    func(mop, vd_ofs, vj_ofs, vk_ofs, 16, 16); Oh, reading about ASXD and 256-bit vectors makes me wonder if it would be better to plan ahead and have a function, or DisasContext me

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

2023-03-29 Thread gaosong
在 2023/3/29 上午3:59, Richard Henderson 写道: On 3/27/23 20:05, Song Gao wrote: +    func(mop, vd_ofs, vj_ofs, vk_ofs, 16, 16); Oh, reading about ASXD and 256-bit vectors makes me wonder if it would be better to plan ahead and have a function, or DisasContext member, for the length of the vect

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

2023-03-28 Thread Richard Henderson
On 3/27/23 20:05, Song Gao wrote: +func(mop, vd_ofs, vj_ofs, vk_ofs, 16, 16); Oh, reading about ASXD and 256-bit vectors makes me wonder if it would be better to plan ahead and have a function, or DisasContext member, for the length of the vector. r~

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

2023-03-28 Thread Richard Henderson
On 3/27/23 20:05, Song Gao wrote: 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 | 4 +++ target/loongarch/insn_trans/trans_lsx.c.inc | 40 ++

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

2023-03-27 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 | 4 +++ target/loongarch/insn_trans/trans_lsx.c.inc | 40 + target/loongarch/i