[PATCH 10/23] aarch64: Add an assert to inherent_reg_qualifier
Project / Subsystem
binutils / aarch64
Date
2026-05-07
Proposer
Alice Carlotti <alice.carlotti@arm.com>
Source type
public_inbox
Consensus
Proposed
Sentiment
—/10
Technical tradeoffs
- • Improved code clarity and error detection during development.
- • No runtime performance impact, as the assert is only enabled during development builds.
All attributes
- project
- binutils
- subsystem
- aarch64
- patch_id
- —
- discussion_id
- dce49376-b6cb-2817-3e5c-3d15416a5a76@e124511.cambridge.arm.com
- source_type
- public_inbox
- title
- [PATCH 10/23] aarch64: Add an assert to inherent_reg_qualifier
- headline
- Aarch64: Add an assert to inherent_reg_qualifier
- tldr
- Adds an assert to the default case of `inherent_reg_qualifier` function in `tc-aarch64.c`, marking it as unreachable.
- proposer
- Alice Carlotti <alice.carlotti@arm.com>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- —
- technical_tradeoffs
-
- • Improved code clarity and error detection during development.
- • No runtime performance impact, as the assert is only enabled during development builds.
- series_id
- binutils:aarch64: add an assert to inherent_reg_qualifier
- series_role
- reply
- series_parts
- []
- tags
-
- • aarch64
- • assembler
- • assert
- • register qualifier
- url
- https://inbox.sourceware.org/binutils/dce49376-b6cb-2817-3e5c-3d15416a5a76@e124511.cambridge.arm.com
- bugzilla_url
- —
- date
- 2026-05-07T00:00:00.000Z
[PATCH 10/23] aarch64: Add an assert to inherent_reg_qualifier
This patch adds an assert to the default case of the inherent_reg_qualifier function, which should be unreachable. This change clarifies the code’s logic and helps catch potential errors during development by triggering an assertion if the default case is ever reached.