binutils Newspaper
NOVEMBER 30, 2026
aarch64 — Proposed

aarch64: Narrow the opcode masks for SYS/SYSP/SYSL aliases

Patch narrows opcode masks for aarch64 SYS/SYSP/SYSL aliases, improving disassembly efficiency.

This patch refines the opcode masks for aarch64 SYS, SYSP, and SYSL instruction aliases. By narrowing these masks, the disassembler’s decode tree can more efficiently eliminate unnecessary opcode entries. While this change doesn’t affect assembly or disassembly output because operand bits are also checked, it optimizes the internal lookup process. The patch notes that the DC instruction has an irregular encoding space, still resulting in a decode chain of 11 opcodes.

In Details

This patch modifies the opcode decoding logic for the aarch64 architecture within binutils. It targets a set of aliases for system instruction-related opcodes (SYS, SYSP, SYSL). By adjusting the bitmasks used to identify these opcodes, the disassembler's internal decision tree can prune more branches earlier, potentially leading to faster disassembly. This is a refinement of the opcode matching mechanism.

For Context
opcode mask
A bitmask used to isolate specific bits within an instruction's binary representation to identify the instruction or its type.
aarch64
The 64-bit ARM architecture instruction set.
alias
In this context, an instruction that is a variation or shorthand for another, often differing in a few bits that control its specific behavior or target.
SYS/SYSP/SYSL
Instructions in the ARM architecture that interact with system registers or perform system-level operations. The 'L' suffix typically indicates 'long' or a specific operand variant.
decode tree
An internal data structure used by disassemblers to efficiently map instruction bit patterns to their corresponding symbolic names and properties.
Filed Under: binutilsaarch64disassembleropcodeperformance