binutils Newspaper
OCTOBER 6, 2026
s390 — Proposed

s390: clcle operands R1 and R3 must be register pairs

Ensures the clcle instruction in binutils assembler correctly handles register pair operands.

This patch modifies the binutils assembler to enforce correct operand usage for the s390 ‘clcle’ instruction. It mandates that R1 and R3 operands must specify an even-numbered register, forming an even-odd pair, as required by the architecture specification to prevent specification exceptions. The changes include opcode definitions and gas test suite updates.

In Details

This patch corrects the binutils assembler's implementation for the s390 'clcle' instruction. It enforces the architectural requirement that operands R1 and R3 must be even-numbered registers, functioning as register pairs. This validation prevents potential specification exceptions on s390 hardware by ensuring correct instruction usage.

Filed Under: s390assemblerinstruction-validation