binutils Newspaper
OCTOBER 6, 2026
s390 — Proposed

s390: Make I2 operand optional in .insn pseudo-mnemonic si

Makes the I2 immediate operand optional for the .insn si pseudo-mnemonic in the s390 assembler.

This patch makes the I2 immediate operand optional for the .insn si pseudo-mnemonic in the s390 assembler, aligning with the SI instruction format’s optional I2 field. This change improves flexibility in assembly coding. It includes documentation updates and new test cases for both ESA/390 and z/Architecture operand formats.

In the Thread 1 participant
  1. Jens Remus <jremus@linux.ibm.com> proposer

    Makes the I2 operand optional for the .insn si pseudo-mnemonic and adds corresponding tests and documentation.

    “The SI instruction format has an optional I2 field. Make the I2 operand in the .insn pseudo-mnemonic si optional.”

In Details

This patch enhances the s390 support in GNU Assembler (gas) by making the I2 immediate operand optional for the .insn si (Store Immediate) pseudo-mnemonic. This change aligns the assembler's behavior with the SI instruction format's specification, which allows for an optional I2 field. It involves updating opcode definitions, assembler documentation, and adding test cases to ensure correct handling of both optional and required I2 operands.

Filed Under: s390assemblerinstruction-formatoptional-operand