MIPS/gas: Reject $0 as source register for DAUI instruction
authorFaraz Shahbazker <fshahbazker@wavecomp.com>
Tue, 14 May 2019 00:19:37 +0000 (17:19 -0700)
committerFaraz Shahbazker <fshahbazker@wavecomp.com>
Tue, 21 May 2019 16:28:24 +0000 (09:28 -0700)
commitcd4797ee054654160fe6c4b6fbecd636b7961e19
tree32ffbea3f566a32ed45fbb668a121a21bed2b820
parent3734320dc054bd9f6632607e9e5c901c57450791
MIPS/gas: Reject $0 as source register for DAUI instruction

The MIPS64R6 TRM requires that the source register for DAUI
not be r0.

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

gas/
* testsuite/gas/mips/r6-branch-constraints.s: Rename to ...
* testsuite/gas/mips/r6-reg-constraints.s: this and add test
case for DAUI.
* testsuite/gas/mips/r6-branch-constraints.l: Rename to ...
* testsuite/gas/mips/r6-reg-constraints.l: this and add test
for DAUI.
* testsuite/gas/mips/mips.exp: Rename test from
r6-branch-constraints to r6-reg-constraints.

opcodes/
* mips-opc.c (mips_builtin_opcodes): Change source register
constraint for DAUI.
gas/ChangeLog
gas/testsuite/gas/mips/mips.exp
gas/testsuite/gas/mips/r6-branch-constraints.l [deleted file]
gas/testsuite/gas/mips/r6-branch-constraints.s [deleted file]
gas/testsuite/gas/mips/r6-reg-constraints.l [new file with mode: 0644]
gas/testsuite/gas/mips/r6-reg-constraints.s [new file with mode: 0644]
opcodes/ChangeLog
opcodes/mips-opc.c