[PATCH] MIPS: Fix encoding of sigrie instruction

Henry Wong henry@stuffedcow.net
Fri Feb 2 21:34:00 GMT 2018


Hi,

The instruction encoding for the MIPS r6 sigrie instruction seems to be
incorrect. It's currently 0x4170xxxx (which overlaps with ei, di, evp,
and dvp), but should be 0x0417xxxx (See ISA reference,
https://www.mips.com/?do-download=the-mips32-instruction-set-v6-06, page
385 of the PDF)

The attached patch changes the MIPS opcode table and the tests that are
affected. I'm not entirely confident there aren't more changes elsewhere
that need to be made, but gas generates the changed opcode and objdump
also disassembles the changed opcode correctly.


Changes:

    opcodes/mips-opc.c: Update MIPS opcode table
    gas/testsuite/gas/mips/
        * r6.d
        * r6-n32.d
        * r6-n64.d    Update tests that use sigrie

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-MIPS-Fix-encoding-for-MIPSr6-sigrie-instruction.patch
Type: text/x-patch
Size: 2760 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20180202/0fe602c7/attachment.bin>


More information about the Binutils mailing list