[PATCH v2 04/47] s390: Correct documentation of instruction formats

Jens Remus jremus@linux.ibm.com
Fri Nov 6 15:56:54 GMT 2026


In the RIS instruction format [1] the second opcode field is in
bits 40-47.  The RSI instruction format [1] length is 4 bytes.

[1]: IBM z/Architecture Principles of Operation, SA22-7832-14, IBM z17,
     https://www.ibm.com/docs/en/module_1678991624569/pdf/SA22-7832-14.pdf

gas/
	* doc/c-s390.texi (RIS): Second opcode field starts at bit 40.
	(RSI): Instruction length is 4 bytes.

Signed-off-by: Jens Remus <jremus@linux.ibm.com>
---
 gas/doc/c-s390.texi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/gas/doc/c-s390.texi b/gas/doc/c-s390.texi
index 858c617a6a91..9f0620c8d85d 100644
--- a/gas/doc/c-s390.texi
+++ b/gas/doc/c-s390.texi
@@ -398,7 +398,7 @@ with the @samp{.insn} pseudo directive:
 +--------+----+----+----+-------------+--------+--------+
 | OpCode | R1 | M3 | B4 |     D4      |   I2   | Opcode |
 +--------+----+----+----+-------------+--------+--------+
-0        8    12   16   20            32       36      47
+0        8    12   16   20            32       40      47
 @end verbatim
 
 @item RR format: <insn> R1,R2
@@ -451,10 +451,10 @@ with the @samp{.insn} pseudo directive:
 
 @item RSI format: <insn> R1,R3,I2
 @verbatim
-+--------+----+----+------------------------------------+
-| OpCode | R1 | R3 |                  I2                |
-+--------+----+----+------------------------------------+
-0        8    12   16                                  47
++---------+----+----+-------------------+
+| OpCode  | R1 | R3 |         I2        |
++---------+----+----+-------------------+
+0         8    12   16                 31
 @end verbatim
 
 @item RSY format: <insn> R1,R3,D2(B2)
-- 
2.53.0



More information about the Binutils mailing list