Re: [RFC PATCH 21/43] target/loongarch: Implement vmskltz/vmskgez/vmsknz
On 12/24/22 00:16, Song Gao wrote: +static void do_vmskltz(vec_t *Vd, vec_t *Vj, int bit, int n) +{ +switch (bit) { +case 8: +Vd->H[0] |= ((0x80 & Vj->B[n]) == 0) << n; +break; +case 16: +Vd->H[0] |= ((0x8000 & Vj->H[n]) == 0) << n; +break; +case 32
[RFC PATCH 21/43] target/loongarch: Implement vmskltz/vmskgez/vmsknz
This patch includes: - VMSKLTZ.{B/H/W/D}; - VMSKGEZ.B; - VMSKNZ.B. Signed-off-by: Song Gao --- target/loongarch/disas.c| 7 +++ target/loongarch/helper.h | 7 +++ target/loongarch/insn_trans/trans_lsx.c.inc | 7 +++ target/loongarch/insns.decode