binutils Newspaper
JUNE 15, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
binutils/aarch64

AArch64: Remove redundant element size checks.

Element size checks are now redundant after qualifier equality check, so remove them to simplify code.

This commit removes redundant element size checks in AArch64 opcode processing. Since the code already verifies that qualifiers are equal, comparing their element sizes is unnecessary and this commit simplifies the code by removing the redundant checks.

In Details

The get_data_pattern function in opcodes/aarch64-opc.c had redundant checks on element sizes after checking for qualifier equality. This commit removes the redundant checks.

For Context

When the binutils are handling AArch64 assembly instructions, they need to perform checks to ensure that the operands are valid and compatible. This commit simplifies these checks by removing redundant comparisons of element sizes, because these comparisons are already covered by other checks. This makes the code cleaner and potentially more efficient.

Filed Under: aarch64opcodecode cleanup