RISC-V: reduce redundancy in load/store macro insn handling
authorJan Beulich <jbeulich@suse.com>
Fri, 3 Nov 2023 09:03:36 +0000 (10:03 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 3 Nov 2023 09:03:36 +0000 (10:03 +0100)
commitc76820a017db5f7267d3e86851af41dd8adcbebf
tree1dcc804422e08959e41631bf10061afe9f4544c8
parent0afb0215bdcdccba701eaa35e10f4923888e5ad1
RISC-V: reduce redundancy in load/store macro insn handling

Within the groups L{B,BU,H,HU,W,WU,D}, S{B,H,W,D}, FL{H,W,D,Q}, and
FS{H,W,D,Q} the sole difference between the handling is the insn
mnemonic passed to the common handling functions. The intended mnemonic,
however, can easily be retrieved. Furthermore leverags that Sx and FSx
are then handled identically, too, and hence their cases can also be
folded.
gas/config/tc-riscv.c
include/opcode/riscv.h
opcodes/riscv-opc.c