binutils Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
binutils/x86

Introduce <hl> template for x86 instruction patterns

Binutils adds a new instruction template for x86 opcodes.

Binutils introduces a new generic instruction template, <hl>, to simplify the definition of x86 opcodes. This template is intended to handle patterns similar to those seen with VPINTERLEAVE{H,L}{B,W} instructions, reducing redundancy in the opcode table definitions. The change refactors opcodes/i386-opc.tbl and opcodes/i386-tbl.h to use this new template.

In Details

This commit adds the <hl> template to opcodes/i386-opc.tbl and refactors opcodes/i386-tbl.h. The template is designed to generalize instruction patterns involving half-word (h) and whole-word (l) operations, particularly for byte/word interleaving instructions. It replaces specific opcode definitions with a more abstract representation, aiming to consolidate similar instruction formats and reduce maintenance effort within the x86 opcode tables.

For Context
opcode table
A data structure used by assemblers and disassemblers to map human-readable instruction mnemonics to their corresponding machine code representations (opcodes).
template
In this context, a placeholder or macro used within opcode table definitions to represent a class of similar instructions, simplifying the table's structure.
x86
A family of instruction set architectures (ISAs) widely used in desktop, laptop, and server computers.
VPINTERLEAVE
A specific AVX-512 instruction that interleaves elements of two vectors, used here as an example of patterns the new template aims to generalize.
Filed Under: binutilsx86assemblerdisassembler