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

Add BPF ISA v5 and UHMUL, SHMUL instructions

Binutils GAS now supports BPF ISA version 5 with new UHMUL and SHMUL instructions.

This commit introduces support for BPF ISA version 5 by adding the UHMUL (unsigned high-half 64-bit multiply) and SHMUL (signed high-half 64-bit multiply) instructions. These instructions are encoded as variants of the ALU64 MUL instruction. The assembler and disassembler now default to BPF ISA v5, and new test cases are included.

In Details

Introduces BPF ISA v5 support in gas and binutils, including the UHMUL and SHMUL instructions which are variants of ALU64 MUL, distinguished by specific values in the offset16 field. Updates tc-bpf.c, bpf.h, and opcode definitions. The default ISA specification for gas/bpf is advanced to v5.

For Context
BPF
Berkeley Packet Filter, a technology to run sandboxed programs in the Linux kernel without changing kernel source code. Used for networking, tracing, and security.
ISA
Instruction Set Architecture. Defines the set of instructions that a processor can execute.
UHMUL
Unsigned High-half 64-bit Multiply instruction for BPF.
SHMUL
Signed High-half 64-bit Multiply instruction for BPF.
gas
The GNU Assembler, part of the binutils package, responsible for converting assembly code into machine code.
Filed Under: bpfisaassemblerinstructions