binutils Newspaper
NOVEMBER 30, 2026
aarch64 — Proposed

aarch64: Avoid aarch64_find_real_opcode for non-F_CONV aliases.

Optimizes opcode encoding by only using aliased opcodes when F_CONV is set.

In aarch64_opcode_encode, this patch optimizes the process by only using aliased opcodes when the F_CONV flag is set. The lookup and flag check are reordered for efficiency. Unused non-F_CONV cases, including those that mapped opcodes to themselves, have been dropped from aarch64_find_real_opcode.

In Details

This patch refactors aarch64-asm-2.c. In aarch64_opcode_encode, it now only uses aarch64_find_real_opcode for aliases when the F_CONV flag is set. This simplifies the encoding logic. Consequently, unused mappings in aarch64_find_real_opcode for non-F_CONV cases (including identity mappings) are removed, reducing code size and complexity.

For Context
F_CONV
A flag indicating a specific type of conversion or alias behavior for an opcode, likely related to how it affects the data or its representation during encoding or decoding.
Filed Under: aarch64binutilsassembleropcode