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>
This commit is contained in:
Jan Beulich
2023-11-24 09:53:55 +01:00
parent 27b33966b1
commit eb5e952f95
3 changed files with 8 additions and 20 deletions

View File

@@ -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
};