[PATCH v2] gas: Fix support for AL condition in Thumb-2 IT instruction
Project / Subsystem
binutils / gas
Date
2026-08-10
Proposer
Brendan Fletcher <calc84maniac@gmail.com>
Source type
public_inbox
Consensus
Proposed
Sentiment
—/10
All attributes
- project
- binutils
- subsystem
- gas
- patch_id
- —
- discussion_id
- 20260810215933.1215107-2-calc84maniac@gmail.com
- source_type
- public_inbox
- title
- [PATCH v2] gas: Fix support for AL condition in Thumb-2 IT instruction
- headline
- gas: Fix support for AL condition in Thumb-2 IT instruction
- tldr
- Patch allows unconditional instructions within IT AL blocks in GAS for Thumb-2, fixing incorrect rejection.
- proposer
- Brendan Fletcher <calc84maniac@gmail.com>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- —
- technical_tradeoffs
- []
- series_id
- —
- series_role
- standalone
- series_parts
- []
- tags
- []
- bugzilla_url
- —
- date
- 2026-08-10T00:00:00.000Z
[PATCH v2] gas: Fix support for AL condition in Thumb-2 IT instruction
This patch addresses an issue in GAS where unconditional instructions following an IT AL (Always) instruction in Thumb-2 were incorrectly rejected. The change allows these unconditional instructions, as they are designed to not affect flags and can be encoded as 16-bit instructions. It also adds error handling for illegal Else conditions within IT AL blocks.