binutils Newspaper
NOVEMBER 30, 2026
aarch64 — Proposed

aarch64: Remove pseudo opcodes from decode lists

Removes pseudo opcodes from decode lists as they are never disassembled.

This patch removes pseudo opcodes from the decode lists within aarch64_find_next_alias_opcode in aarch64-dis-2.c. Since pseudo instructions are never the target of disassembly, they should not be returned by this function, thus cleaning up the decoding logic.

In Details

This change in aarch64-dis-2.c removes pseudo-instruction mappings from the aarch64_find_next_alias_opcode function. The rationale is that the disassembler's role is to translate machine code into human-readable assembly, and pseudo-instructions (like directives) are not part of the machine code itself. Therefore, they should not appear in the output of a function designed to find the 'next' opcode in a sequence, especially when that sequence is part of an alias chain.

For Context
pseudo instruction
An instruction that is not a true machine code instruction but rather a directive or command for the assembler or compiler, often used for source-level control or metadata.
Filed Under: aarch64binutilsdisassembleropcode