binutils Newspaper
JUNE 15, 2026
aarch64 Proposed

aarch64: Replace FLD_* macros in do_misc_{en|de}coding

This patch replaces FLD_* macros with explicit AARCH64_FIELD calls in do_misc_{en|de}coding for aarch64.

This patch replaces the FLD_* macros with explicit AARCH64_FIELD calls in the do_misc_encoding function within the aarch64 assembler. It also extends the comments to clarify which aliased instructions are involved. This is part of a series to improve the clarity and maintainability of the aarch64 opcode definitions.

In Details

This patch modifies the aarch64 assembler (opcodes/aarch64-asm.c) to replace the FLD_* macros with AARCH64_FIELD calls in the do_misc_encoding function. These macros are used to extract and insert fields within AArch64 instructions. The do_misc_encoding function handles encoding for various miscellaneous instructions, including some SVE aliases.

For Context

This patch modifies the binutils assembler for the AArch64 architecture. It replaces some macros (FLD_*) with more explicit function calls (AARCH64_FIELD) when encoding instructions. This change makes the code easier to understand and maintain.

Filed Under: aarch64assemblerbinutilsmacrosencoding