binutils Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
gas/s390

s390 assembler: VRX instruction's M3 operand made optional

The M3 mask operand is now optional for the `.insn` pseudo-mnemonic VRX format in the s390 assembler.

This commit modifies the GNU assembler (GAS) for s390 to make the M3 mask operand optional in the .insn pseudo-mnemonic for the VRX instruction format. This change aligns the assembler’s pseudo-mnemonic with the actual VRX instruction format, which includes an optional M3 field. Documentation and test cases have been updated accordingly.

In Details

The s390 VRX instruction format includes an optional M3 mask field. This commit updates the s390-opc.c to reflect this by making the M3 operand optional in the .insn pseudo-mnemonic definition. Test cases in gas/testsuite/gas/s390/zarch-operands.d and gas/testsuite/gas/s390/zarch-operands.s, as well as documentation in gas/doc/c-s390.texi, are updated to support and document this change.

For Context
gas
The GNU Assembler, part of the GNU Binutils package, responsible for converting assembly language code into machine code.
s390
A mainframe computer architecture developed by IBM.
VRX
Vector Register-to-Register Extension, a type of instruction in the s390 architecture.
M3 operand
A specific field within certain s390 instructions, often used as a mask.
.insn
A pseudo-mnemonic in GAS used to specify raw machine instructions by their opcode and operands, bypassing standard mnemonic parsing.
pseudo-mnemonic
An assembly language directive that acts like an instruction but is processed by the assembler to generate machine code or perform specific assembly-time actions.
Filed Under: gass390assemblerinstruction-format