[RFC PATCH 20/43] target/loongarch: Implement vsigncov
This patch includes: - VSIGNCOV.{B/H/W/D}. Signed-off-by: Song Gao --- target/loongarch/disas.c| 5 target/loongarch/helper.h | 5 target/loongarch/insn_trans/trans_lsx.c.inc | 5 target/loongarch/insns.decode | 5 targe
Re: [RFC PATCH 20/43] target/loongarch: Implement vsigncov
On 12/24/22 00:16, Song Gao wrote: +static void do_vsigncov(vec_t *Vd, vec_t *Vj, vec_t *Vk, int bit, int n) +{ +switch (bit) { +case 8: +Vd->B[n] = (Vj->B[n] == 0x0) ? 0 : + (Vj->B[n] < 0) ? -Vk->B[n] : Vk->B[n]; +break; +case 16: +Vd->H[n] =