binutils Newspaper
NOVEMBER 30, 2026
aarch64 — Proposed

aarch64: Enable partial splits in the decode tree

Shortens AArch64 instruction decode chains by enabling partial splits.

This patch enables partial splits in the AArch64 instruction decode tree. This optimization reduces the longest decode chain from 26 opcodes to 5, improving disassembly performance for complex instructions involving SIMD modified immediate and shift by immediate encoding groups. The change refines the decode logic by examining specific bits to distinguish these encoding groups.

In Details

This patch modifies opcodes/aarch64-dis-2.c to allow the AArch64 disassembler's decode tree to use partial splits. Previously, the decode tree required full splits, leading to long chains for certain instruction groups. By enabling partial splits, the tree can branch on subsets of bits, significantly reducing the depth of the decode chain and thus speeding up disassembly for complex instructions.

Filed Under: aarch64disassemblerperformancedecode tree