diff options
author | Jan Beulich <jbeulich@suse.com> | 2023-11-24 09:53:55 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2023-11-24 09:53:55 +0100 |
commit | eb5e952f95423bc6ae18457ccc359c8b6c0fa387 (patch) | |
tree | 994586ba8306938b1ce354c07585987ef5d3dec0 /include/opcode | |
parent | 27b33966b18ed8bf1701a60999448224b1d28273 (diff) | |
download | gdb-eb5e952f95423bc6ae18457ccc359c8b6c0fa387.zip gdb-eb5e952f95423bc6ae18457ccc359c8b6c0fa387.tar.gz gdb-eb5e952f95423bc6ae18457ccc359c8b6c0fa387.tar.bz2 |
RISC-V: reduce redundancy in sign/zero extension macro insn handling
Fold M_{S,Z}EXTH, deriving signed-ness from the incoming mnemonic. Fold
riscv_ext()'s calls md_assemblef(), the first of which were entirely
identical, while the other pair differed in just a single character.
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'include/opcode')
-rw-r--r-- | include/opcode/riscv.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/opcode/riscv.h b/include/opcode/riscv.h index 3099c9e..2548686 100644 --- a/include/opcode/riscv.h +++ b/include/opcode/riscv.h @@ -558,10 +558,9 @@ enum M_CALL, M_J, M_LI, - M_ZEXTH, + M_EXTH, M_ZEXTW, M_SEXTB, - M_SEXTH, M_VMSGE, M_NUM_MACROS }; |