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

s390: Treat signed/unsigned immediate operands in .insn pseudo-mnemonics as either

Ensures s390 .insn immediate operands accept both signed and unsigned values.

This change modifies the s390 assembler to treat immediate operands within .insn pseudo-mnemonics as accepting both signed and unsigned values. This ensures that the full range of possible values, from the minimum signed to the maximum unsigned, is considered valid. A new PSEUDO_MNEMONIC flag and updated fixup data handling in s390_insert_operand facilitate this mixed-range checking.

In Details

The s390 gas assembler now treats immediate operands in .insn pseudo-mnemonics as potentially signed or unsigned, accepting values in the combined range of [-min_signed, max_unsigned]. This is achieved by introducing a PSEUDO_MNEMONIC instruction flag and modifying s390_insert_operand and the fixup mechanism (s390_fix_data) to correctly store and apply opcode/operand pointers for this extended range checking. This avoids defining new instruction formats for mixed immediate types.

For Context
.insn
An assembler directive used to specify machine instructions directly, often with specific formats and operands.
pseudo-mnemonic
A symbolic name used in assembly language that represents an instruction or a sequence of instructions, but is not a direct machine code opcode.
immediate operands
Operands whose values are directly encoded within the instruction itself, rather than referring to a register or memory location.
fixup
A placeholder in an object file that indicates a value needs to be adjusted or filled in by the linker.
Filed Under: s390assemblerinstruction-setinteger-types