mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
target/loongarch: Implement vaddi/vsubi
This patch includes: - VADDI.{B/H/W/D}U; - VSUBI.{B/H/W/D}U. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Song Gao <gaosong@loongson.cn> Message-Id: <20230504122810.4094787-6-gaosong@loongson.cn>
This commit is contained in:
parent
57b4f1ac18
commit
d8be64c1c5
3 changed files with 62 additions and 0 deletions
|
@ -797,6 +797,11 @@ static void output_vvv(DisasContext *ctx, arg_vvv *a, const char *mnemonic)
|
|||
output(ctx, mnemonic, "v%d, v%d, v%d", a->vd, a->vj, a->vk);
|
||||
}
|
||||
|
||||
static void output_vv_i(DisasContext *ctx, arg_vv_i *a, const char *mnemonic)
|
||||
{
|
||||
output(ctx, mnemonic, "v%d, v%d, 0x%x", a->vd, a->vj, a->imm);
|
||||
}
|
||||
|
||||
INSN_LSX(vadd_b, vvv)
|
||||
INSN_LSX(vadd_h, vvv)
|
||||
INSN_LSX(vadd_w, vvv)
|
||||
|
@ -807,3 +812,12 @@ INSN_LSX(vsub_h, vvv)
|
|||
INSN_LSX(vsub_w, vvv)
|
||||
INSN_LSX(vsub_d, vvv)
|
||||
INSN_LSX(vsub_q, vvv)
|
||||
|
||||
INSN_LSX(vaddi_bu, vv_i)
|
||||
INSN_LSX(vaddi_hu, vv_i)
|
||||
INSN_LSX(vaddi_wu, vv_i)
|
||||
INSN_LSX(vaddi_du, vv_i)
|
||||
INSN_LSX(vsubi_bu, vv_i)
|
||||
INSN_LSX(vsubi_hu, vv_i)
|
||||
INSN_LSX(vsubi_wu, vv_i)
|
||||
INSN_LSX(vsubi_du, vv_i)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue