[PATCH 4/4] x86: Add AVX10_BMM option support
Haochen Jiang
haochen.jiang@intel.com
Mon Nov 30 06:05:49 GMT 2026
New in v2.
---
AVX10_BMM uses the same instruction set as AVX512_BMM.
The difference is with .avx10_bmm, it will enable all vector length,
not 512 bit only. Since it is under AVX10 umbrella. We will just simply
let AVX10_BMM imply both AVX10.1 and AVX512_BMM.
gas/ChangeLog:
* NEWS: Mention AVX10_BMM support.
* config/tc-i386.c: Add avx10_bmm.
* doc/c-i386.texi: Ditto.
opcodes/ChangeLog:
* i386-gen.c: Add avx10_bmm.
* i386-opc.h: Ditto.
* i386-init.h: Regenerated.
* i386-tbl.h: Ditto.
---
gas/NEWS | 2 +
gas/config/tc-i386.c | 1 +
gas/doc/c-i386.texi | 5 +-
opcodes/i386-gen.c | 3 +
opcodes/i386-init.h | 990 +++++++++++----------
opcodes/i386-opc.h | 3 +
opcodes/i386-tbl.h | 2002 +++++++++++++++++++++---------------------
7 files changed, 1519 insertions(+), 1487 deletions(-)
diff --git a/gas/NEWS b/gas/NEWS
index fe6aa0ec409..0c5ddf10335 100644
--- a/gas/NEWS
+++ b/gas/NEWS
@@ -1,5 +1,7 @@
-*- text -*-
+* Add support for the x86 AVX10_BMM option.
+
* Add support for the x86 AVX10.3 instructions.
* Add support for the x86 USER_DOITM/SUP_DOITM instructions.
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 7c5d900c071..9d468b67ef1 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -1261,6 +1261,7 @@ static const arch_entry cpu_arch[] =
VECARCH (avx10.2, AVX10_2, ANY_AVX10_2, set),
VECARCH (avx10v2aux, AVX10_V2_AUX, ANY_AVX10_V2_AUX, set),
VECARCH (avx10.3, AVX10_3, ANY_AVX10_3, set),
+ VECARCH (avx10_bmm, AVX10_BMM, ANY_AVX10_BMM, set),
VECARCH (avx10_vpmldsabflydq, VPMLDSABFLYDQ, ANY_VPMLDSABFLYDQ,
reset),
SUBARCH (user_msr, USER_MSR, USER_MSR, false),
diff --git a/gas/doc/c-i386.texi b/gas/doc/c-i386.texi
index 6f589acf518..57f3f2d4a09 100644
--- a/gas/doc/c-i386.texi
+++ b/gas/doc/c-i386.texi
@@ -235,6 +235,7 @@ accept various extension mnemonics. For example,
@code{avx10.2/128},
@code{avx10v2aux},
@code{avx10.3},
+@code{avx10_bmm},
@code{avx10_vpmldsabflydq},
@code{movrs},
@code{doitm},
@@ -1731,8 +1732,8 @@ supported on the CPU specified. The choices for @var{cpu_type} are:
@item @samp{.avx512_bitalg} @tab @samp{.avx512_bf16} @tab @samp{.avx512_vp2intersect}
@item @samp{.tdx} @tab @samp{.avx_vnni} @tab @samp{.avx512_fp16} @tab @samp{avx512_bmm}
@item @samp{.avx10.1} @tab @samp{.avx10.1aux} @tab @samp{.avx10v1aux} @tab @samp{.avx10.2}
-@item @samp{.avx10v2aux} @tab @samp{.avx10.3} @tab @samp{.avx10_vpmldsabflydq}
-@item @samp{.clwb}
+@item @samp{.avx10v2aux} @tab @samp{.avx10.3} @tab @samp{.avx10_bmm}
+@item @samp{.avx10_vpmldsabflydq} @tab @samp{.clwb}
@item @samp{.rdpid} @tab @samp{.ptwrite} @tab @samp{.ibt} @tab @samp{.prefetchi}
@item @samp{.cmpccxadd} @tab @samp{.wrmsrns} @tab @samp{.msrlist} @tab @samp{.se1}
@item @samp{.avx_ne_convert} @tab @samp{.rao_int} @tab @samp{.fred} @tab @samp{.lkgs}
diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c
index 13662fe0732..49246c4d013 100644
--- a/opcodes/i386-gen.c
+++ b/opcodes/i386-gen.c
@@ -255,6 +255,8 @@ static const dependency isa_dependencies[] =
"AVX10_1" },
{ "AVX10_3",
"AVX10_2|AVX10_V2_AUX" },
+ { "AVX10_BMM",
+ "AVX10_1|AVX512_BMM" },
{ "VPMLDSABFLYDQ",
"AVX10_1" },
{ "SEV_ES",
@@ -470,6 +472,7 @@ static bitfield cpu_flags[] =
BITFIELD (AVX10_2),
BITFIELD (AVX10_V2_AUX),
BITFIELD (AVX10_3),
+ BITFIELD (AVX10_BMM),
BITFIELD (VPMLDSABFLYDQ),
BITFIELD (MOVRS),
BITFIELD (DOITM),
diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h
index 15b3df532a6..e27e5661f7d 100644
--- a/opcodes/i386-opc.h
+++ b/opcodes/i386-opc.h
@@ -215,6 +215,8 @@ enum i386_cpu
CpuAVX10_V2_AUX,
/* x86 AVX10.3 Instructions support required. */
CpuAVX10_3,
+ /* x86 AVX10_BMM Instructions support required. */
+ CpuAVX10_BMM,
/* AVX10_VPMLDSABFLYDQ Instructions support required. */
CpuVPMLDSABFLYDQ,
/* TDX Instructions support required. */
@@ -531,6 +533,7 @@ typedef union i386_cpu_flags
unsigned int cpuavx10_1_aux:1;
unsigned int cpuavx10_v2_aux:1;
unsigned int cpuavx10_3:1;
+ unsigned int cpuavx10_bmm:1;
unsigned int cpuvpmldsabflydq:1;
unsigned int cputdx:1;
unsigned int cpuavx_vnni:1;
--
2.31.1
More information about the Binutils
mailing list