diff options
author | Jan Beulich <jbeulich@suse.com> | 2023-09-05 10:03:35 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2023-09-05 10:03:35 +0200 |
commit | d4868004365e6bc4232a1b8ebd4b328fc5bec8b1 (patch) | |
tree | be93d389ab6a0ce5be44b077c447209fefcd6f82 /opcodes | |
parent | 404def8928b5746573e24dc31c6fd6ec5b07d97f (diff) | |
download | gdb-d4868004365e6bc4232a1b8ebd4b328fc5bec8b1.zip gdb-d4868004365e6bc4232a1b8ebd4b328fc5bec8b1.tar.gz gdb-d4868004365e6bc4232a1b8ebd4b328fc5bec8b1.tar.bz2 |
RISC-V: fold duplicate code in vector_macro()
There's no need to have almost identical code twice. Do away with
M_VMSGEU and instead simply use an unused (for these macros) field to
tell apart both variants.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/riscv-opc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/riscv-opc.c b/opcodes/riscv-opc.c index 39da5f8..243ec66 100644 --- a/opcodes/riscv-opc.c +++ b/opcodes/riscv-opc.c @@ -1620,8 +1620,8 @@ const struct riscv_opcode riscv_opcodes[] = {"vmsge.vx", 0, INSN_CLASS_V, "Vd,Vt,sVm", 0, (int) M_VMSGE, match_never, INSN_MACRO }, {"vmsge.vx", 0, INSN_CLASS_V, "Vd,Vt,s,VM,VT", 0, (int) M_VMSGE, match_never, INSN_MACRO }, -{"vmsgeu.vx", 0, INSN_CLASS_V, "Vd,Vt,sVm", 0, (int) M_VMSGEU, match_never, INSN_MACRO }, -{"vmsgeu.vx", 0, INSN_CLASS_V, "Vd,Vt,s,VM,VT", 0, (int) M_VMSGEU, match_never, INSN_MACRO }, +{"vmsgeu.vx", 0, INSN_CLASS_V, "Vd,Vt,sVm", 1, (int) M_VMSGE, match_never, INSN_MACRO }, +{"vmsgeu.vx", 0, INSN_CLASS_V, "Vd,Vt,s,VM,VT", 1, (int) M_VMSGE, match_never, INSN_MACRO }, {"vminu.vv", 0, INSN_CLASS_V, "Vd,Vt,VsVm", MATCH_VMINUVV, MASK_VMINUVV, match_opcode, 0}, {"vminu.vx", 0, INSN_CLASS_V, "Vd,Vt,sVm", MATCH_VMINUVX, MASK_VMINUVX, match_opcode, 0}, |