mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
target/loongarch: Implement xvneg
This patch includes: - XVNEG.{B/H/W/D}. Signed-off-by: Song Gao <gaosong@loongson.cn> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230914022645.1151356-18-gaosong@loongson.cn>
This commit is contained in:
parent
342004214b
commit
760f964717
3 changed files with 30 additions and 4 deletions
|
@ -1718,6 +1718,11 @@ static void output_vv_i_x(DisasContext *ctx, arg_vv_i *a, const char *mnemonic)
|
|||
output(ctx, mnemonic, "x%d, x%d, 0x%x", a->vd, a->vj, a->imm);
|
||||
}
|
||||
|
||||
static void output_vv_x(DisasContext *ctx, arg_vv *a, const char *mnemonic)
|
||||
{
|
||||
output(ctx, mnemonic, "x%d, x%d", a->vd, a->vj);
|
||||
}
|
||||
|
||||
INSN_LASX(xvadd_b, vvv)
|
||||
INSN_LASX(xvadd_h, vvv)
|
||||
INSN_LASX(xvadd_w, vvv)
|
||||
|
@ -1738,6 +1743,11 @@ INSN_LASX(xvsubi_hu, vv_i)
|
|||
INSN_LASX(xvsubi_wu, vv_i)
|
||||
INSN_LASX(xvsubi_du, vv_i)
|
||||
|
||||
INSN_LASX(xvneg_b, vv)
|
||||
INSN_LASX(xvneg_h, vv)
|
||||
INSN_LASX(xvneg_w, vv)
|
||||
INSN_LASX(xvneg_d, vv)
|
||||
|
||||
INSN_LASX(xvreplgr2vr_b, vr)
|
||||
INSN_LASX(xvreplgr2vr_h, vr)
|
||||
INSN_LASX(xvreplgr2vr_w, vr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue