MIPS/opcodes: Mark descriptive SYNC mnemonics as aliases
authorMaciej W. Rozycki <macro@imgtec.com>
Thu, 11 May 2017 23:46:45 +0000 (00:46 +0100)
committerMaciej W. Rozycki <macro@imgtec.com>
Thu, 11 May 2017 23:48:19 +0000 (00:48 +0100)
commit99e2d67a0edd1a8feca82036feb93709fee488fa
tree4e3f21a09ea6bb0e6775932390b1de07b2314563
parentf2c29a169242d0c564afb46ecaf160422b28bfbb
MIPS/opcodes: Mark descriptive SYNC mnemonics as aliases

Following the way how descriptive SYNC mnemonics have been defined in
the architecture[1][2] mark them as aliases, so that the generic SYNC
instruction can be alternatively disassembled along with its immediate
operand, as noted in the documents referred.

References:

[1] "MIPS Architecture For Programmers, Volume II-A: The MIPS32
    Instruction Set", MIPS Technologies, Inc., Document Number: MD00086,
    Revision 5.04, December 11, 2013, Table 4.7 "Encodings of the
    Bits[10:6] of the SYNC instruction; the SType Field", p. 305

[2] "MIPS Architecture for Programmers, Volume II-B: The microMIPS32
    Instruction Set", MIPS Technologies, Inc., Document Number: MD00582,
    Revision 5.04, January 15, 2014, Table 5.28 "Encodings of the
    Bits[10:6] of the SYNC instruction; the SType Field", p. 481

opcodes/
* mips-opc.c (mips_builtin_opcodes): Mark "synciobdma", "syncs",
"syncw", "syncws", "sync_acquire", "sync_mb", "sync_release",
"sync_rmb" and "sync_wmb" as aliases.
* micromips-opc.c (micromips_opcodes): Mark "sync_acquire",
"sync_mb", "sync_release", "sync_rmb" and "sync_wmb" as aliases.

gas/
* testsuite/gas/mips/mips32r2-sync-1.d: New test.
* testsuite/gas/mips/micromips@mips32r2-sync-1.d: New test.
* testsuite/gas/mips/mips.exp: Run the new tests.
gas/ChangeLog
gas/testsuite/gas/mips/micromips@mips32r2-sync-1.d [new file with mode: 0644]
gas/testsuite/gas/mips/mips.exp
gas/testsuite/gas/mips/mips32r2-sync-1.d [new file with mode: 0644]
opcodes/ChangeLog
opcodes/micromips-opc.c
opcodes/mips-opc.c
This page took 0.027463 seconds and 4 git commands to generate.