forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -538,23 +538,9 @@ enum
|
||||
M_LGA,
|
||||
M_LA_TLS_GD,
|
||||
M_LA_TLS_IE,
|
||||
M_LB,
|
||||
M_LBU,
|
||||
M_LH,
|
||||
M_LHU,
|
||||
M_LW,
|
||||
M_LWU,
|
||||
M_LD,
|
||||
M_SB,
|
||||
M_SH,
|
||||
M_SW,
|
||||
M_SD,
|
||||
M_FLW,
|
||||
M_FLD,
|
||||
M_FLQ,
|
||||
M_FSW,
|
||||
M_FSD,
|
||||
M_FSQ,
|
||||
M_Lx,
|
||||
M_FLx,
|
||||
M_Sx_FSx,
|
||||
M_CALL,
|
||||
M_J,
|
||||
M_LI,
|
||||
@@ -563,8 +549,6 @@ enum
|
||||
M_SEXTB,
|
||||
M_SEXTH,
|
||||
M_VMSGE,
|
||||
M_FLH,
|
||||
M_FSH,
|
||||
M_NUM_MACROS
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user