[PATCH 19/23] aarch64: Return QLF_ERR for error conditions

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

  • Changes the return value of `vectype_to_qualifier` and `get_qualifier_from_partial_encoding` in error cases, which might affect code relying on the previous behavior.
  • Introduces a more explicit error signaling mechanism, potentially improving debugging and error handling.

All attributes

project
binutils
subsystem
aarch64
patch_id
discussion_id
4742b057-d883-26cf-cd2d-957013b5e92c@e124511.cambridge.arm.com
source_type
public_inbox
title
[PATCH 19/23] aarch64: Return QLF_ERR for error conditions
headline
Aarch64: Return QLF_ERR for error conditions
tldr
Modify `vectype_to_qualifier` and `get_qualifier_from_partial_encoding` to return `AARCH64_OPND_QLF_ERR` instead of `AARCH64_OPND_QLF_NIL` on errors.
proposer
Alice Carlotti <alice.carlotti@arm.com>
consensus
Proposed
outcome
proposed
sentiment_score
technical_tradeoffs
  • Changes the return value of `vectype_to_qualifier` and `get_qualifier_from_partial_encoding` in error cases, which might affect code relying on the previous behavior.
  • Introduces a more explicit error signaling mechanism, potentially improving debugging and error handling.
series_id
binutils:aarch64: return qlf_err for error conditions
series_role
reply
series_parts
[]
tags
  • aarch64
  • assembler
  • qualifier
  • error handling
bugzilla_url
date
2026-05-07T00:00:00.000Z

[PATCH 19/23] aarch64: Return QLF_ERR for error conditions

This patch changes the functions vectype_to_qualifier and get_qualifier_from_partial_encoding to return AARCH64_OPND_QLF_ERR instead of AARCH64_OPND_QLF_NIL when an error condition is encountered. This makes error handling more explicit and consistent within the AArch64 assembly code, which helps catch errors earlier and could simplify debugging.