s390: Add .insn pseudo-mnemonics rrf_a/b/c/d/e

Note that pseudo-mnemonics rrf_a/b/c/d/e are special.  This is
because instruction format RRF is the only format where the
specification explicitly defines an operand order as well as optional
operands in a programming note.  Add a note to the documentation.

Instruction format RRF, including the variants RRF-a/b/c/d/e, predate
IBM z900.  They later got extended with an optional M4 mask field.
Therefore do not specify a minimum architecture/CPU level.

Note that the assembler does not evaluate or enforce the specified mode
and minimum architecture/CPU level for .insn pseudo-mnemonics.

While at it fix the operands in the ESA/390 .insn rrf test and add a
z/Architecture test for .insn rrf.

opcodes/
	* s390-opc.c (INSTR_RRF_0URR, MASK_RRF_0URR): Define
	instruction format for RRF-d with operands in order according
	to specification.
	(INSTR_RRF_UURR, MASK_RRF_UURR): Define instruction format for
	RRF-e with operands in order according to specification.
	(s390_opformats): Add pseudo-mnemonics rrf_a, rrf_b, rrf_c,
	rrf_d, and rrf_e with optional operands according to
	specification.

gas/
	* doc/c-s390.texi (s390 Formats): Document RRF-a/b/c/d/e
	operand order.

gas/testsuite/
	* gas/s390/esa-operands.d (rrf): Fix operands in test.  Add
	comment.
	* gas/s390/esa-operands.s (rrf): Likewise.
	* gas/s390/zarch-operands.d: Add tests for .insn rrf, rrf_a,
	rrf_b, rrf_c, rrf_d, and rrf_e.
	* gas/s390/zarch-operands.s: Likewise.

Signed-off-by: Jens Remus <jremus@linux.ibm.com>
6 files changed