Landing: 5a47f17d1d82

Project / Subsystem

binutils / binutils/gas/risc-v

Date

2026-06-05

Author

Jan Beulich <jbeulich@sourceware.org>

Commit

5a47f17d1d82edf037e156f921d0c4b3c37fce6a

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
binutils/gas/risc-v
patch_id
commit_hash
5a47f17d1d82edf037e156f921d0c4b3c37fce6a
source_type
public_inbox
headline
RISC-V `O4` operand descriptor renames to `O7` for clarity.
tldr
Binutils RISC-V assembler's `.insn` operand descriptor `O4` has been renamed to `O7` to accurately reflect its 7-bit field size, improving consistency.
author
Jan Beulich <jbeulich@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • risc-v
  • assembler
  • naming-convention
  • code-clarity
discussion_id_link
bugzilla_pr
date
2026-06-05T00:00:00.000Z

The RISC-V assembler’s .insn directive previously used the O4 operand descriptor to represent a 7-bit field. This descriptor has been renamed to O7 to align with the field’s actual width, consistent with existing O<n> and F<n> descriptors that denote bit-field sizes. This change improves the clarity and long-term maintainability of the assembler’s operand handling.