[PATCH 10/46] s390: Improve coding of .insn pseudo-mnemonics without operands

Project / Subsystem

binutils / s390

Date

2026-10-05

Proposer

Jens Remus <jremus@linux.ibm.com>

Source type

public_inbox

Consensus

Proposed

Sentiment

—/10

Technical tradeoffs

  • • Slightly more flexible syntax.
  • • Backward compatible, existing code with trailing comma still works.

All attributes

project
binutils
subsystem
s390
patch_id
—
discussion_id
20261005153947.363053-58-jremus@linux.ibm.com
source_type
public_inbox
title
[PATCH 10/46] s390: Improve coding of .insn pseudo-mnemonics without operands
headline
s390: Improve coding of .insn pseudo-mnemonics without operands
tldr
Allows omitting the trailing comma in .insn pseudo-mnemonics when all operands are optional, improving syntax for s390 assembly.
proposer
Jens Remus <jremus@linux.ibm.com>
consensus
Proposed
outcome
proposed
sentiment_score
—
technical_tradeoffs
  • • Slightly more flexible syntax.
  • • Backward compatible, existing code with trailing comma still works.
series_id
binutils:s390: improve coding of .insn pseudo-mnemonics without operands
series_role
reply
series_parts
[]
tags
  • • binutils
  • • gas
  • • s390
  • • assembler
  • • syntax
bugzilla_url
—
date
2026-10-05T00:00:00.000Z

[PATCH 10/46] s390: Improve coding of .insn pseudo-mnemonics without operands

This patch enhances the s390 assembler’s handling of the .insn pseudo-mnemonic by allowing the omission of the trailing comma when all operands are optional and none are provided. Previously, a trailing comma was required even when no operands were specified (e.g., .insn INSN-FMT,OPCODE,). The change simplifies the syntax to .insn INSN-FMT,OPCODE, making it more natural and aligning with future changes to make all operands optional for rre and s mnemonics. It also generalizes the logic for handling .insn mnemonics with no operands.