|
From: | gaosong |
Subject: | Re: [RFC PATCH v2 33/44] target/loongarch: Implement vfrstp |
Date: | Mon, 3 Apr 2023 10:27:53 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
在 2023/4/2 下午1:17, Richard Henderson 写道:
On 3/27/23 20:06, Song Gao wrote:This patch includes: - VFRSTP[I].{B/H}. Signed-off-by: Song Gao<gaosong@loongson.cn> --- target/loongarch/disas.c | 5 +++ target/loongarch/helper.h | 5 +++ target/loongarch/insn_trans/trans_lsx.c.inc | 5 +++ target/loongarch/insns.decode | 5 +++ target/loongarch/lsx_helper.c | 41 +++++++++++++++++++++ 5 files changed, 61 insertions(+)This one's obscure. Find first negative element in Vj, store that value in Vd element indexed by Vk?
Yes, but the value is the first negative element index or max index + 1. e.g vfrstp.b vd, vj, vk. idx = 0; for i in range(16); if Vj->B[i] < 0; break; idx = idx +1; m = Vk->B(0) % 16; Vd->B(m) = idx; Thanks. Song Gao
[Prev in Thread] | Current Thread | [Next in Thread] |