This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] [MIPS] Fix operands for microMIPS SW16, SH16 and SB16


Hi Richard,

This patch fixes a problem with the SW16, SH16 and SB16 microMIPS instructions.  GCC is incorrectly calculating the length of these instructions if $16 is used as the source operand.  The incorrect length calculation can cause a 32-bit instruction to be placed in a short delay slot.  The assembler does detect this and issues a warning.

This patch changes the allowable registers for the short store instructions to $0, $2-$7, and $17.

Okay to install?  Okay to install for 4.9?

Thanks,
Catherine


Attachment: umips-store.cl
Description: umips-store.cl

Attachment: umips-store.patch
Description: umips-store.patch


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]