MIPS: Correct Toshiba TX39 MADD/MADDU HI/LO instruction flags

Toshiba TX39 integer multiply-add instructions suffer from a pipeline
hazard on the HI and LO registers[1]:

"The value of the HI and LO registers are undefined for the two
instructions immediately preceding a DIV or DIVU instruction.
Accordingly, do not place a DIV or DIVU instruction as the next
or next-but-one instruction after a MADD, MADDU, MFHI, or MFLO
instruction that reads the HI or LO registers."

This is further asserted in the instruction list for MADD[2]:

"To guarantee correct operation even if an interrupt occurs, neither of
the two instructions following MADD should be DIV or DIVU instructions
which modify the HI and LO register contents."

and similarly for MADDU[3].

In GAS we already handle this hazard correctly in `insns_between', which
works for MFHI and MFLO instructions via their INSN_READ_HI/INSN_READ_LO
flags, however TX39 MADD and MADDU instructions only have INSN_WRITE_HI
and INSN_WRITE_LO flags set.  Consequently the hazard is not observed.

Add the missing INSN_READ_HI/INSN_READ_LO flags then across the family,
so as to cause extra NOP instructions to be emitted as required to move
the instructions affected apart.  Add test coverage.

References:

[1] "32-Bit TX System RISC TX39 Family Architecture", Toshiba
    Corporation, Document Number 44137D-0001, Volume "Architecture",
    Section 4.9 "Restrictions on Instruction Placement", p. 4-9

[2] same, Appendix A "Instruction Set Details", p. A-60

[3] same, p. A-61
4 files changed