x86: Support x86 Intel AVX10.3 INT4/FP4 instructions
Adds support for AVX10.3 INT4/FP4 instructions in binutils, refining assembler logic for down-converts.
This patch series introduces support for AVX10.3 INT4/FP4 instructions, which are part of the broader AVX10.3 specification. It updates the assembler’s configuration, documentation, and test suites, as well as the opcode definitions for the disassembler. A new macro, %HF, is introduced to correctly handle the W table skipping for down-converts, ensuring the correct source operand is placed in W0 for HF and W1 for BF16. The patch also refines opcode definitions and regenerates related tables.
In Details
This patch adds support for INT4/FP4 instructions within the AVX10.3 extension to binutils. It modifies config/tc-i386.c and opcodes/i386-opc.tbl to recognize these new instructions. A key change is the introduction of the %HF macro in opcodes/i386-dis.c to handle specific operand requirements for down-converts, ensuring HF source goes to W0 and BF16 to W1. The disassembler's EVEX prefix, width, and table definitions are also updated, and new test cases are added.
- AVX10.3
- A version of Intel's Advanced Vector Extensions instruction set, which includes enhancements over previous versions like AVX10.2.
- INT4/FP4
- Instructions operating on 4-bit integer and floating-point data types, part of the AVX10.3 instruction set extensions.
- W table
- Likely refers to a part of the disassembler's internal tables or logic used to determine instruction encoding details, such as operand size or type.
- HF
- Likely refers to the half-precision (FP16) floating-point format.
- BF16
- BFloat16 (Brain Floating Point), a 16-bit floating-point format optimized for machine learning.