binutils Newspaper
JUNE 15, 2026
aarch64 Proposed

Aarch64: Remove unused operand SM3_IMM2

Removes the unused `AARCH64_OPND_SM3_IMM2` operand from the AArch64 assembler, simplifying the codebase.

This patch removes the AARCH64_OPND_SM3_IMM2 operand, which was intended for use with the sm3tt* instructions, but was ultimately unused. The operand is removed from the enum aarch64_opnd and related code in the assembler. This simplifies the code and removes a potential source of confusion.

In Details

This patch removes AARCH64_OPND_SM3_IMM2 from include/opcode/aarch64.h and related code in gas/config/tc-aarch64.c and opcodes/aarch64-asm-2.c. This operand was intended for SM3 instructions but was never used.

For Context

binutils is a collection of binary tools such as the assembler, linker, etc. This patch modifies the assembler (gas) for the AArch64 architecture. The assembler translates human-readable assembly code into machine code that a computer can execute. This patch removes an unused operand, simplifying the code.

Filed Under: aarch64assemblerunused operandcode cleanup