[MIPS] Add RDHWR with the SEL field for MIPS R6.
authorRobert Suchanek <robert.suchanek@mips.com>
Tue, 9 Apr 2019 09:30:26 +0000 (17:30 +0800)
committerChenghua Xu <paul.hua.gm@gmail.com>
Tue, 9 Apr 2019 09:56:48 +0000 (09:56 +0000)
commit7e96e219a4fc703282ea5b0cc8845a96c01ca030
tree5407cdb45929c212b56e239ccf81dc933894fb61
parent2b0c8b019996b23fb4717687f5e7ac8c5620c089
[MIPS] Add RDHWR with the SEL field for MIPS R6.

In Release 6 of the MIPS architecture [1], instruction RDHWR supports
a 3rd operand to serve as the 3-bit select field for the hardware
register.

[1] "MIPS Architecture for Programmers Volume II-A: The MIPS32
    Instruction Set Manual", Imagination Technologies Ltd., Document
    Number: MD00086, Revision 6.06, December 15, 2016, Section 3.2
    "Alphabetical List of Instructions", pp. 332-334

opcodes/
* mips-opc.c (mips_builtin_opcodes): Add RDHWR rt rd sel.

gas/
* testsuite/gas/mips/mips.exp: Run hwr-names test.
* testsuite/gas/mips/hwr-names.s: Add test cases for RDHWR with
the SEL field.
* testsuite/gas/mips/mipsr6@hwr-names.d: New file.
gas/ChangeLog
gas/testsuite/gas/mips/hwr-names.s
gas/testsuite/gas/mips/mips.exp
gas/testsuite/gas/mips/mipsr6@hwr-names.d [new file with mode: 0644]
opcodes/ChangeLog
opcodes/mips-opc.c