|
From: | Richard Henderson |
Subject: | Re: [RFC PATCH v2 05/44] target/loongarch: Implement vadd/vsub |
Date: | Tue, 28 Mar 2023 12:50:51 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 |
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 <gaosong@loongson.cn> --- target/loongarch/disas.c | 23 ++++++++++++ target/loongarch/helper.h | 4 +++ target/loongarch/insn_trans/trans_lsx.c.inc | 40 +++++++++++++++++++++ target/loongarch/insns.decode | 22 ++++++++++++ target/loongarch/lsx_helper.c | 25 +++++++++++++ target/loongarch/translate.c | 7 ++++ 6 files changed, 121 insertions(+)
I did mention that you could use tcg_gen_{add,sub}2_i64 to perform the 128-bit arithmetic inline. But that could be improved later.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
[Prev in Thread] | Current Thread | [Next in Thread] |