]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
RISC-V: reduce redundancy in sign/zero extension macro insn handling
authorJan Beulich <jbeulich@suse.com>
Fri, 24 Nov 2023 08:53:55 +0000 (09:53 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 Nov 2023 08:53:55 +0000 (09:53 +0100)
commiteb5e952f95423bc6ae18457ccc359c8b6c0fa387
tree994586ba8306938b1ce354c07585987ef5d3dec0
parent27b33966b18ed8bf1701a60999448224b1d28273
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>
gas/config/tc-riscv.c
include/opcode/riscv.h
opcodes/riscv-opc.c