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

gas/aarch64: Enable MOVPRFX for BF16MM and FP16MM instructions

The assembler now correctly allows the MOVPRFX instruction prefix for BF16MM and FP16MM vector instructions on AArch64.

This commit corrects the AArch64 assembler’s instruction table to allow the MOVPRFX instruction prefix with the bfmmla and sve-f16mm fmmla instructions. These instructions were incorrectly marked as not supporting MOVPRFX. The change includes fixes to the instruction definitions and adds corresponding test cases to verify the correct assembly and disassembly.

In Details

Updates opcodes/aarch64-tbl.h to permit MOVPRFX as a prefix for BF16MM (bfmmla) and FP16MM (fmmla) instructions within the AArch64 gas assembler. Previously, these specific SVE2 (Scalable Vector Extension 2) and related FP/BF16 instructions were erroneously excluded from using MOVPRFX. New test cases are added to gas/testsuite/gas/aarch64/ to confirm correct assembly and disassembly.

For Context
gas
The GNU Assembler. It translates assembly language code into machine code.
AArch64
The 64-bit execution state of the ARM architecture (ARMv8-A and later). It uses the A64 instruction set.
MOVPRFX
A prefix instruction in ARM's SVE (Scalable Vector Extension) that conditionally copies elements from a source vector register to a destination vector register before the main instruction executes. It's used for predicated operations.
BF16MM
BFloat16 Matrix Multiply Accumulate. Refers to instructions that perform matrix multiplication using BFloat16 data types, often found in ARM's SVE extensions.
FP16MM
FP16 Matrix Multiply Accumulate. Refers to instructions that perform matrix multiplication using FP16 (half-precision floating-point) data types.
SVE
Scalable Vector Extension. An optional extension for ARMv8-A and later processors that provides vector processing capabilities with a variable vector length.
Filed Under: gasAArch64SVEassemblyinstruction set