[binutils-gdb] s390: Correct documentation of instruction formats

Jens Remus jremus@sourceware.org
Tue Nov 10 16:48:06 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d1f0229e06e73dfec9f24b9233f02912f4e5b25f

commit d1f0229e06e73dfec9f24b9233f02912f4e5b25f
Author: Jens Remus <jremus@linux.ibm.com>
Date:   Tue Nov 10 17:46:02 2026 +0100

    s390: Correct documentation of instruction formats
    
    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>

Diff:
---
 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 858c617a6a9..9f0620c8d85 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)


More information about the Binutils-cvs mailing list