Landing: 175c54561d4f
Project / Subsystem
binutils / binutils/risc-v
Date
2026-06-05
Author
Jan Beulich <jbeulich@sourceware.org>
Commit
175c54561d4f9f5bae4064d0bdac5a228243589f
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- binutils/risc-v
- patch_id
- —
- commit_hash
- 175c54561d4f9f5bae4064d0bdac5a228243589f
- source_type
- public_inbox
- headline
- RISC-V `match_*()` functions improve macro instruction handling and consistency.
- tldr
- Binutils RISC-V `match_*()` functions no longer unconditionally invoke `match_opcode()` for macro instructions, preventing false negatives and improving code c…
- author
- Jan Beulich <jbeulich@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • risc-v
- • opcode-matching
- • bugfix
- • macro-instructions
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-06-05T00:00:00.000Z
The RISC-V match_*() functions have been updated to conditionally invoke match_opcode() only when processing non-macro instructions. This change rectifies a potential source of false negatives that could arise from the evolving enumeration of macro instructions. Additionally, an assertion has been added to match_rs1_nonzero() to confirm its exclusive use with macro instructions, and a superfluous attribute was removed from match_rs1_nonzero_rs2_even() for improved code cleanliness.