binutils Newspaper
OCTOBER 6, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
binutils/x86

Templatize AMX_INT8 TDPB* instructions

x86 assembler simplifies AMX_INT8 TDPB* instruction definitions using templates.

This commit refactors the definition of several AMX_INT8 TDPB* instructions in the x86 assembler. It uses a new template mechanism to reduce redundancy, making the opcode table definitions more concise and reusable for subsequent instructions like TOP4B*.

In Details

The opcode table entries for AMX_INT8 TDPB* instructions (TDPBUUD, TDPBUSD, TDPBSSD, TDPBSUD) are consolidated using a new template macro <tdpb>. This reduces code duplication and enables simpler definitions for related instructions, improving maintainability of the x86 opcode definitions.

For Context
AMX_INT8
A mode within AMD's Advanced Matrix Extensions (AMX) that operates on 8-bit integer matrices.
TDPB*
A family of AMX instructions for tile data packing and processing, operating on 8-bit integer data.
Opcode table
A data structure used by assemblers and disassemblers to map instruction mnemonics and operands to their binary machine code representations.
Filed Under: x86assembleramxoptimization