binutils Newspaper
NOVEMBER 30, 2026
aarch64 — Proposed

aarch64: Fix incorrect F_ALIAS and F_HAS_ALIAS flags

Corrects the `F_ALIAS` and `F_HAS_ALIAS` flags for various AArch64 instructions.

This patch corrects the F_ALIAS and F_HAS_ALIAS flags for several AArch64 instructions in aarch64-asm-2.c. It removes F_HAS_ALIAS from instructions without aliases (like dsb, wfet, wfit), adds it to instructions that do have aliases (like b.c, msr, sysl), and adds F_ALIAS to instructions like smstart/smstop and GCS system instructions.

In Details

The patch addresses flag assignments in aarch64-asm-2.c. It corrects the F_HAS_ALIAS and F_ALIAS flags for various opcodes. F_HAS_ALIAS is removed from instructions that do not have aliases and added to those that do, such as conditional branches (b.c), msr (immediate), and sysl. F_ALIAS is added to smstart, smstop, and GCS system instructions, accurately reflecting their aliasing behavior.

For Context
F_ALIAS
A flag indicating that an opcode is an alias for another opcode.
F_HAS_ALIAS
A flag indicating that an opcode has one or more aliases associated with it.
b.c
A conditional branch instruction in AArch64.
msr
Move to Special Register, an AArch64 instruction used to write to system registers.
sysl
System instruction, likely for calling system service routines or managing system state in AArch64.
smstart/smstop
Instructions related to Scalable Matrix Extension (SME) state management.
Filed Under: aarch64binutilsassembleropcode