Browse Source

Update instruction vmandnot.mm, vmornot.mm -> vmandn.mm, vmorn.mm (#896)

Refer to rvv-spec v1.0-rc2
pull/898/head
Yueh-Ting (eop) Chen 5 years ago
committed by GitHub
parent
commit
d750d6a92b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      disasm/disasm.cc
  2. 12
      riscv/encoding.h
  3. 2
      riscv/insns/vmandn_mm.h
  4. 2
      riscv/insns/vmandnot_mm.h
  5. 2
      riscv/insns/vmorn_mm.h
  6. 2
      riscv/insns/vmornot_mm.h
  7. 4
      riscv/riscv.mk.in

4
disasm/disasm.cc

@ -1322,11 +1322,11 @@ disassembler_t::disassembler_t(int xlen)
DISASM_INSN("vcompress.vm", vcompress_vm, 0, {&vd, &vs2, &vs1});
DISASM_OPIV_M___INSN(vmandnot, 1);
DISASM_OPIV_M___INSN(vmandn, 1);
DISASM_OPIV_M___INSN(vmand, 1);
DISASM_OPIV_M___INSN(vmor, 1);
DISASM_OPIV_M___INSN(vmxor, 1);
DISASM_OPIV_M___INSN(vmornot, 1);
DISASM_OPIV_M___INSN(vmorn, 1);
DISASM_OPIV_M___INSN(vmnand, 1);
DISASM_OPIV_M___INSN(vmnor, 1);
DISASM_OPIV_M___INSN(vmxnor, 1);

12
riscv/encoding.h

@ -1899,16 +1899,16 @@
#define MASK_VSEXT_VF2 0xfc0ff07f
#define MATCH_VCOMPRESS_VM 0x5e002057
#define MASK_VCOMPRESS_VM 0xfe00707f
#define MATCH_VMANDNOT_MM 0x60002057
#define MASK_VMANDNOT_MM 0xfc00707f
#define MATCH_VMANDN_MM 0x60002057
#define MASK_VMANDN_MM 0xfc00707f
#define MATCH_VMAND_MM 0x64002057
#define MASK_VMAND_MM 0xfc00707f
#define MATCH_VMOR_MM 0x68002057
#define MASK_VMOR_MM 0xfc00707f
#define MATCH_VMXOR_MM 0x6c002057
#define MASK_VMXOR_MM 0xfc00707f
#define MATCH_VMORNOT_MM 0x70002057
#define MASK_VMORNOT_MM 0xfc00707f
#define MATCH_VMORN_MM 0x70002057
#define MASK_VMORN_MM 0xfc00707f
#define MATCH_VMNAND_MM 0x74002057
#define MASK_VMNAND_MM 0xfc00707f
#define MATCH_VMNOR_MM 0x78002057
@ -3891,11 +3891,11 @@ DECLARE_INSN(vsext_vf4, MATCH_VSEXT_VF4, MASK_VSEXT_VF4)
DECLARE_INSN(vzext_vf2, MATCH_VZEXT_VF2, MASK_VZEXT_VF2)
DECLARE_INSN(vsext_vf2, MATCH_VSEXT_VF2, MASK_VSEXT_VF2)
DECLARE_INSN(vcompress_vm, MATCH_VCOMPRESS_VM, MASK_VCOMPRESS_VM)
DECLARE_INSN(vmandnot_mm, MATCH_VMANDNOT_MM, MASK_VMANDNOT_MM)
DECLARE_INSN(vmandn_mm, MATCH_VMANDN_MM, MASK_VMANDN_MM)
DECLARE_INSN(vmand_mm, MATCH_VMAND_MM, MASK_VMAND_MM)
DECLARE_INSN(vmor_mm, MATCH_VMOR_MM, MASK_VMOR_MM)
DECLARE_INSN(vmxor_mm, MATCH_VMXOR_MM, MASK_VMXOR_MM)
DECLARE_INSN(vmornot_mm, MATCH_VMORNOT_MM, MASK_VMORNOT_MM)
DECLARE_INSN(vmorn_mm, MATCH_VMORN_MM, MASK_VMORN_MM)
DECLARE_INSN(vmnand_mm, MATCH_VMNAND_MM, MASK_VMNAND_MM)
DECLARE_INSN(vmnor_mm, MATCH_VMNOR_MM, MASK_VMNOR_MM)
DECLARE_INSN(vmxnor_mm, MATCH_VMXNOR_MM, MASK_VMXNOR_MM)

2
riscv/insns/vmandn_mm.h

@ -0,0 +1,2 @@
// vmandn.mm vd, vs2, vs1
VI_LOOP_MASK(vs2 & ~vs1);

2
riscv/insns/vmandnot_mm.h

@ -1,2 +0,0 @@
// vmandnot.mm vd, vs2, vs1
VI_LOOP_MASK(vs2 & ~vs1);

2
riscv/insns/vmorn_mm.h

@ -0,0 +1,2 @@
// vmorn.mm vd, vs2, vs1
VI_LOOP_MASK(vs2 | ~vs1);

2
riscv/insns/vmornot_mm.h

@ -1,2 +0,0 @@
// vmornot.mm vd, vs2, vs1
VI_LOOP_MASK(vs2 | ~vs1);

4
riscv/riscv.mk.in

@ -500,7 +500,7 @@ riscv_insn_ext_v_alu_int = \
vmadd_vv \
vmadd_vx \
vmand_mm \
vmandnot_mm \
vmandn_mm \
vmax_vv \
vmax_vx \
vmaxu_vv \
@ -516,7 +516,7 @@ riscv_insn_ext_v_alu_int = \
vmnand_mm \
vmnor_mm \
vmor_mm \
vmornot_mm \
vmorn_mm \
vmsbc_vv \
vmsbc_vx \
vmsbc_vvm \

Loading…
Cancel
Save