[PATCH 1/2] Support Intel ACEV2 instructions
Haochen Jiang
haochen.jiang@intel.com
Mon Nov 16 08:19:36 GMT 2026
This patch will support ACEv2 instructions. We could
reuse <dpw> from VNNI insts to reduce lines appended
into i386-opc.tbl.
gas/ChangeLog:
* config/tc-i386.c: Support ACEV2.
* doc/c-i386.texi: Document ACEV2.
* testsuite/gas/i386/x86-64.exp: Add ACEV2 tests.
* testsuite/gas/i386/x86-64-acev2-intel.d: New test.
* testsuite/gas/i386/x86-64-acev2.d: Ditto.
* testsuite/gas/i386/x86-64-acev2.s: Ditto.
opcodes/ChangeLog:
* i386-dis-evex-len.h: Add EVEX_LEN_0F3848_X86_64_W_0,
EVEX_LEN_0F3A8C_X86_64_W_0, EVEX_LEN_0F3A8E_X86_64_W_0.
* i386-dis-evex-prefix.h: Add PREFIX_EVEX_0F3848_W_0_L_2,
PREFIX_EVEX_0F3A8C_X86_64_W_0_L_2, PREFIX_EVEX_0F3A8E_X86_64_W_0_L_2.
Update PREFIX_EVEX_0F3A8F_X86_64_W_0_L_2.
* i386-dis-evex-w.h: Add EVEX_W_0F3848_X86_64,
EVEX_W_0F3A8C_X86_64, EVEX_W_0F3A8E_X86_64.
* i386-dis-evex-x86-64.h: Add X86_64_EVEX_0F3848, X86_64_EVEX_0F3A8C,
X86_64_EVEX_0F3A8E.
* i386-dis-evex.h: Update evex_table for ACEV2.
* i386-dis.c:
(PREFIX_EVEX_0F3848_W_0_L_2): New.
(PREFIX_EVEX_0F3A8C_X86_64_W_0_L_2): Ditto.
(PREFIX_EVEX_0F3A8E_X86_64_W_0_L_2): Ditto.
(X86_64_EVEX_0F3848): Ditto.
(X86_64_EVEX_0F3A8C): Ditto.
(X86_64_EVEX_0F3A8E): Ditto.
(EVEX_LEN_0F3848_X86_64_W_0): Ditto.
(EVEX_LEN_0F3A8C_X86_64_W_0): Ditto.
(EVEX_LEN_0F3A8E_X86_64_W_0): Ditto.
(EVEX_W_0F3848_X86_64): Ditto.
(EVEX_W_0F3A8C_X86_64): Ditto.
(EVEX_W_0F3A8E_X86_64): Ditto.
* i386-gen.c: Add ACEV2_FLAGS.
* i386-init.h: Regenerated.
* i386-mnem.h: Ditto.
* i386-opc.h: Add ACEV2.
* i386-opc.tbl: Support ACEV2 TOP.
* i386-tbl.h: Regenerated.
---
gas/NEWS | 2 +
gas/config/tc-i386.c | 1 +
gas/doc/c-i386.texi | 3 +-
gas/testsuite/gas/i386/x86-64-ace_v2-intel.d | 27 +
gas/testsuite/gas/i386/x86-64-ace_v2.d | 25 +
gas/testsuite/gas/i386/x86-64-ace_v2.s | 39 +
gas/testsuite/gas/i386/x86-64.exp | 2 +
opcodes/i386-dis-evex-len.h | 14 +
opcodes/i386-dis-evex-prefix.h | 18 +-
opcodes/i386-dis-evex-w.h | 8 +
opcodes/i386-dis-evex-x86-64.h | 10 +
opcodes/i386-dis-evex.h | 4 +-
opcodes/i386-dis.c | 8 +
opcodes/i386-gen.c | 3 +
opcodes/i386-init.h | 880 ++++++------
opcodes/i386-mnem.h | 1340 +++++++++---------
opcodes/i386-opc.h | 3 +
opcodes/i386-opc.tbl | 11 +-
opcodes/i386-tbl.h | 1301 +++++++++--------
19 files changed, 1977 insertions(+), 1722 deletions(-)
create mode 100644 gas/testsuite/gas/i386/x86-64-ace_v2-intel.d
create mode 100644 gas/testsuite/gas/i386/x86-64-ace_v2.d
create mode 100644 gas/testsuite/gas/i386/x86-64-ace_v2.s
diff --git a/gas/NEWS b/gas/NEWS
index ab6cd302158..244273bf340 100644
--- a/gas/NEWS
+++ b/gas/NEWS
@@ -1,5 +1,7 @@
-*- text -*-
+* Add support for the x86 ACE V2 instructions.
+
* 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 8c0142848a1..de89a937ce7 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -1208,6 +1208,7 @@ static const arch_entry cpu_arch[] =
SUBARCH (waitpkg, WAITPKG, WAITPKG, false),
SUBARCH (cldemote, CLDEMOTE, CLDEMOTE, false),
SUBARCH (ace_v1, ACE_V1, ANY_ACE_V1, false),
+ SUBARCH (ace_v2, ACE_V2, ANY_ACE_V2, false),
SUBARCH (amx_int8, AMX_INT8, ANY_AMX_INT8, false),
SUBARCH (amx_bf16, AMX_BF16, ANY_AMX_BF16, false),
SUBARCH (amx_fp16, AMX_FP16, ANY_AMX_FP16, false),
diff --git a/gas/doc/c-i386.texi b/gas/doc/c-i386.texi
index aa4e91781f0..d46169c420a 100644
--- a/gas/doc/c-i386.texi
+++ b/gas/doc/c-i386.texi
@@ -249,6 +249,7 @@ accept various extension mnemonics. For example,
@code{amx_avx512},
@code{amx_tile},
@code{ace_v1},
+@code{ace_v2},
@code{vmx},
@code{vmfunc},
@code{smx},
@@ -1745,7 +1746,7 @@ supported on the CPU specified. The choices for @var{cpu_type} are:
@item @samp{.amx_int8} @tab @samp{.amx_bf16} @tab @samp{.amx_fp16}
@item @samp{.amx_complex} @tab @samp{.amx_transpose} @tab @samp{.amx_tf32}
@item @samp{.amx_fp8} @tab @samp{.amx_movrs} @tab @samp{.amx_avx512}
-@item @samp{.amx_tile} @tab @samp{.ace_v1}
+@item @samp{.amx_tile} @tab @samp{.ace_v1} @tab @samp{.ace_v2}
@item @samp{.kl} @tab @samp{.widekl} @tab @samp{.uintr} @tab @samp{.hreset}
@item @samp{.3dnow} @tab @samp{.3dnowa} @tab @samp{.sse4a} @tab @samp{.sse5}
@item @samp{.syscall} @tab @samp{.rdtscp} @tab @samp{.svme}
diff --git a/gas/testsuite/gas/i386/x86-64-ace_v2-intel.d b/gas/testsuite/gas/i386/x86-64-ace_v2-intel.d
new file mode 100644
index 00000000000..b659cc423a2
--- /dev/null
+++ b/gas/testsuite/gas/i386/x86-64-ace_v2-intel.d
@@ -0,0 +1,27 @@
+#objdump: -dw -Mintel
+#name: x86_64 ACEv2 insns (Intel disassembly)
+#source: x86-64-ace_v2.s
+
+.*: +file format .*
+
+Disassembly of section \.text:
+
+#...
+[a-f0-9]+ <_intel>:
+[ ]*[a-f0-9]+:[ ]*62 93 1e 40 8f f5 7b[ ]*top4mxbsups tmm6,zmm29,zmm28,0x7b
+[ ]*[a-f0-9]+:[ ]*62 93 1e 40 8f dd 7b[ ]*top4mxbsups tmm3,zmm29,zmm28,0x7b
+[ ]*[a-f0-9]+:[ ]*62 93 1d 40 8f f5 7b[ ]*top4mxbusps tmm6,zmm29,zmm28,0x7b
+[ ]*[a-f0-9]+:[ ]*62 93 1d 40 8f dd 7b[ ]*top4mxbusps tmm3,zmm29,zmm28,0x7b
+[ ]*[a-f0-9]+:[ ]*62 93 1c 40 8f f5 7b[ ]*top4mxbuups tmm6,zmm29,zmm28,0x7b
+[ ]*[a-f0-9]+:[ ]*62 93 1c 40 8f dd 7b[ ]*top4mxbuups tmm3,zmm29,zmm28,0x7b
+[ ]*[a-f0-9]+:[ ]*62 93 1e 40 8c f5 7b[ ]*top8fmxbf4ps tmm6,zmm29,zmm28,0x7b
+[ ]*[a-f0-9]+:[ ]*62 93 1e 40 8c dd 7b[ ]*top8fmxbf4ps tmm3,zmm29,zmm28,0x7b
+[ ]*[a-f0-9]+:[ ]*62 93 1f 40 8e f5 7b[ ]*top8fmxnssps tmm6,zmm29,zmm28,0x7b
+[ ]*[a-f0-9]+:[ ]*62 93 1f 40 8e dd 7b[ ]*top8fmxnssps tmm3,zmm29,zmm28,0x7b
+[ ]*[a-f0-9]+:[ ]*62 93 1e 40 8e f5 7b[ ]*top8fmxnsups tmm6,zmm29,zmm28,0x7b
+[ ]*[a-f0-9]+:[ ]*62 93 1e 40 8e dd 7b[ ]*top8fmxnsups tmm3,zmm29,zmm28,0x7b
+[ ]*[a-f0-9]+:[ ]*62 93 1d 40 8e f5 7b[ ]*top8fmxnusps tmm6,zmm29,zmm28,0x7b
+[ ]*[a-f0-9]+:[ ]*62 93 1d 40 8e dd 7b[ ]*top8fmxnusps tmm3,zmm29,zmm28,0x7b
+[ ]*[a-f0-9]+:[ ]*62 93 1c 40 8e f5 7b[ ]*top8fmxnuups tmm6,zmm29,zmm28,0x7b
+[ ]*[a-f0-9]+:[ ]*62 93 1c 40 8e dd 7b[ ]*top8fmxnuups tmm3,zmm29,zmm28,0x7b
+#pass
diff --git a/gas/testsuite/gas/i386/x86-64-ace_v2.d b/gas/testsuite/gas/i386/x86-64-ace_v2.d
new file mode 100644
index 00000000000..bb85c81cde1
--- /dev/null
+++ b/gas/testsuite/gas/i386/x86-64-ace_v2.d
@@ -0,0 +1,25 @@
+#objdump: -dw
+#name: x86_64 ACEv2 insns
+
+.*: +file format .*
+
+Disassembly of section \.text:
+
+0+ <_start>:
+[ ]*[a-f0-9]+:[ ]*62 93 1e 40 8f f5 7b[ ]*top4mxbsups \$0x7b,%zmm28,%zmm29,%tmm6
+[ ]*[a-f0-9]+:[ ]*62 93 1e 40 8f dd 7b[ ]*top4mxbsups \$0x7b,%zmm28,%zmm29,%tmm3
+[ ]*[a-f0-9]+:[ ]*62 93 1d 40 8f f5 7b[ ]*top4mxbusps \$0x7b,%zmm28,%zmm29,%tmm6
+[ ]*[a-f0-9]+:[ ]*62 93 1d 40 8f dd 7b[ ]*top4mxbusps \$0x7b,%zmm28,%zmm29,%tmm3
+[ ]*[a-f0-9]+:[ ]*62 93 1c 40 8f f5 7b[ ]*top4mxbuups \$0x7b,%zmm28,%zmm29,%tmm6
+[ ]*[a-f0-9]+:[ ]*62 93 1c 40 8f dd 7b[ ]*top4mxbuups \$0x7b,%zmm28,%zmm29,%tmm3
+[ ]*[a-f0-9]+:[ ]*62 93 1e 40 8c f5 7b[ ]*top8fmxbf4ps \$0x7b,%zmm28,%zmm29,%tmm6
+[ ]*[a-f0-9]+:[ ]*62 93 1e 40 8c dd 7b[ ]*top8fmxbf4ps \$0x7b,%zmm28,%zmm29,%tmm3
+[ ]*[a-f0-9]+:[ ]*62 93 1f 40 8e f5 7b[ ]*top8fmxnssps \$0x7b,%zmm28,%zmm29,%tmm6
+[ ]*[a-f0-9]+:[ ]*62 93 1f 40 8e dd 7b[ ]*top8fmxnssps \$0x7b,%zmm28,%zmm29,%tmm3
+[ ]*[a-f0-9]+:[ ]*62 93 1e 40 8e f5 7b[ ]*top8fmxnsups \$0x7b,%zmm28,%zmm29,%tmm6
+[ ]*[a-f0-9]+:[ ]*62 93 1e 40 8e dd 7b[ ]*top8fmxnsups \$0x7b,%zmm28,%zmm29,%tmm3
+[ ]*[a-f0-9]+:[ ]*62 93 1d 40 8e f5 7b[ ]*top8fmxnusps \$0x7b,%zmm28,%zmm29,%tmm6
+[ ]*[a-f0-9]+:[ ]*62 93 1d 40 8e dd 7b[ ]*top8fmxnusps \$0x7b,%zmm28,%zmm29,%tmm3
+[ ]*[a-f0-9]+:[ ]*62 93 1c 40 8e f5 7b[ ]*top8fmxnuups \$0x7b,%zmm28,%zmm29,%tmm6
+[ ]*[a-f0-9]+:[ ]*62 93 1c 40 8e dd 7b[ ]*top8fmxnuups \$0x7b,%zmm28,%zmm29,%tmm3
+#pass
diff --git a/gas/testsuite/gas/i386/x86-64-ace_v2.s b/gas/testsuite/gas/i386/x86-64-ace_v2.s
new file mode 100644
index 00000000000..5a277361036
--- /dev/null
+++ b/gas/testsuite/gas/i386/x86-64-ace_v2.s
@@ -0,0 +1,39 @@
+# Check 64bit ACEv2 instructions
+
+ .text
+_start:
+ top4mxbsups $123, %zmm28, %zmm29, %tmm6
+ top4mxbsups $123, %zmm28, %zmm29, %tmm3
+ top4mxbusps $123, %zmm28, %zmm29, %tmm6
+ top4mxbusps $123, %zmm28, %zmm29, %tmm3
+ top4mxbuups $123, %zmm28, %zmm29, %tmm6
+ top4mxbuups $123, %zmm28, %zmm29, %tmm3
+ top8fmxbf4ps $123, %zmm28, %zmm29, %tmm6
+ top8fmxbf4ps $123, %zmm28, %zmm29, %tmm3
+ top8fmxnssps $123, %zmm28, %zmm29, %tmm6
+ top8fmxnssps $123, %zmm28, %zmm29, %tmm3
+ top8fmxnsups $123, %zmm28, %zmm29, %tmm6
+ top8fmxnsups $123, %zmm28, %zmm29, %tmm3
+ top8fmxnusps $123, %zmm28, %zmm29, %tmm6
+ top8fmxnusps $123, %zmm28, %zmm29, %tmm3
+ top8fmxnuups $123, %zmm28, %zmm29, %tmm6
+ top8fmxnuups $123, %zmm28, %zmm29, %tmm3
+
+_intel:
+ .intel_syntax noprefix
+ top4mxbsups tmm6, zmm29, zmm28, 123
+ top4mxbsups tmm3, zmm29, zmm28, 123
+ top4mxbusps tmm6, zmm29, zmm28, 123
+ top4mxbusps tmm3, zmm29, zmm28, 123
+ top4mxbuups tmm6, zmm29, zmm28, 123
+ top4mxbuups tmm3, zmm29, zmm28, 123
+ top8fmxbf4ps tmm6, zmm29, zmm28, 123
+ top8fmxbf4ps tmm3, zmm29, zmm28, 123
+ top8fmxnssps tmm6, zmm29, zmm28, 123
+ top8fmxnssps tmm3, zmm29, zmm28, 123
+ top8fmxnsups tmm6, zmm29, zmm28, 123
+ top8fmxnsups tmm3, zmm29, zmm28, 123
+ top8fmxnusps tmm6, zmm29, zmm28, 123
+ top8fmxnusps tmm3, zmm29, zmm28, 123
+ top8fmxnuups tmm6, zmm29, zmm28, 123
+ top8fmxnuups tmm3, zmm29, zmm28, 123
diff --git a/gas/testsuite/gas/i386/x86-64.exp b/gas/testsuite/gas/i386/x86-64.exp
index 540b27b3333..ce9056a1940 100644
--- a/gas/testsuite/gas/i386/x86-64.exp
+++ b/gas/testsuite/gas/i386/x86-64.exp
@@ -704,6 +704,8 @@ run_dump_test "x86-64-amx-intel"
run_dump_test "x86-64-amx-bad"
run_dump_test "x86-64-ace_v1"
run_dump_test "x86-64-ace_v1-intel"
+run_dump_test "x86-64-ace_v2"
+run_dump_test "x86-64-ace_v2-intel"
if { ![istarget "*-*-aix*"]
&& ![istarget "*-*-*bsd*"]
diff --git a/opcodes/i386-dis-evex-len.h b/opcodes/i386-dis-evex-len.h
index dc37746730a..8ca113c02be 100644
--- a/opcodes/i386-dis-evex-len.h
+++ b/opcodes/i386-dis-evex-len.h
@@ -219,6 +219,13 @@ static const struct dis386 evex_len_table[][3] = {
{ PREFIX_TABLE (PREFIX_EVEX_0F3A77_X86_64_W_0_L_2) },
},
+ /* EVEX_LEN_0F3A8C_X86_64_W_0 */
+ {
+ { Bad_Opcode },
+ { Bad_Opcode },
+ { PREFIX_TABLE (PREFIX_EVEX_0F3A8C_X86_64_W_0_L_2) },
+ },
+
/* EVEX_LEN_0F3A8D_X86_64_W_0 */
{
{ Bad_Opcode },
@@ -226,6 +233,13 @@ static const struct dis386 evex_len_table[][3] = {
{ PREFIX_TABLE (PREFIX_EVEX_0F3A8D_X86_64_W_0_L_2) },
},
+ /* EVEX_LEN_0F3A8E_X86_64_W_0 */
+ {
+ { Bad_Opcode },
+ { Bad_Opcode },
+ { PREFIX_TABLE (PREFIX_EVEX_0F3A8E_X86_64_W_0_L_2) },
+ },
+
/* EVEX_LEN_0F3A8F_X86_64_W_0 */
{
{ Bad_Opcode },
diff --git a/opcodes/i386-dis-evex-prefix.h b/opcodes/i386-dis-evex-prefix.h
index 85fa964bcdc..deeb50f7dab 100644
--- a/opcodes/i386-dis-evex-prefix.h
+++ b/opcodes/i386-dis-evex-prefix.h
@@ -445,6 +445,11 @@
{ Bad_Opcode },
{ "tcvtrowps2phl", { XM, Rtmm, Ib }, 0 },
},
+ /* PREFIX_EVEX_0F3A8C_X86_64_W_0_L_2 */
+ {
+ { Bad_Opcode },
+ { "top8fmxbf4ps", { TMM, EXx, Vex, Ib }, 0 },
+ },
/* PREFIX_EVEX_0F3A8D_X86_64_W_0_L_2 */
{
{ "top4mxbf8ps", { TMM, Ux, Vex, Ib }, 0 },
@@ -452,11 +457,18 @@
{ "top4mxhf8ps", { TMM, Ux, Vex, Ib }, 0 },
{ "top4mxbhf8ps", { TMM, Ux, Vex, Ib }, 0 },
},
+ /* PREFIX_EVEX_0F3A8E_X86_64_W_0_L_2 */
+ {
+ { "top8fmxnuups", { TMM, Ux, Vex, Ib }, 0 },
+ { "top8fmxnsups", { TMM, Ux, Vex, Ib }, 0 },
+ { "top8fmxnusps", { TMM, Ux, Vex, Ib }, 0 },
+ { "top8fmxnssps", { TMM, Ux, Vex, Ib }, 0 },
+ },
/* PREFIX_EVEX_0F3A8F_X86_64_W_0_L_2 */
{
- { Bad_Opcode },
- { Bad_Opcode },
- { Bad_Opcode },
+ { "top4mxbuups", { TMM, Ux, Vex, Ib }, 0 },
+ { "top4mxbsups", { TMM, Ux, Vex, Ib }, 0 },
+ { "top4mxbusps", { TMM, Ux, Vex, Ib }, 0 },
{ "top4mxbssps", { TMM, Ux, Vex, Ib }, 0 },
},
/* PREFIX_EVEX_0F3AC2 */
diff --git a/opcodes/i386-dis-evex-w.h b/opcodes/i386-dis-evex-w.h
index 68c743efbf3..b974dfcefc7 100644
--- a/opcodes/i386-dis-evex-w.h
+++ b/opcodes/i386-dis-evex-w.h
@@ -501,10 +501,18 @@
{
{ EVEX_LEN_TABLE (EVEX_LEN_0F3A77_X86_64_W_0) },
},
+ /* EVEX_W_0F3A8C_X86_64 */
+ {
+ { EVEX_LEN_TABLE (EVEX_LEN_0F3A8C_X86_64_W_0) },
+ },
/* EVEX_W_0F3A8D_X86_64 */
{
{ EVEX_LEN_TABLE (EVEX_LEN_0F3A8D_X86_64_W_0) },
},
+ /* EVEX_W_0F3A8E_X86_64 */
+ {
+ { EVEX_LEN_TABLE (EVEX_LEN_0F3A8E_X86_64_W_0) },
+ },
/* EVEX_W_0F3A8F_X86_64 */
{
{ EVEX_LEN_TABLE (EVEX_LEN_0F3A8F_X86_64_W_0) },
diff --git a/opcodes/i386-dis-evex-x86-64.h b/opcodes/i386-dis-evex-x86-64.h
index 5411da6d8e4..4c6ed924ef5 100644
--- a/opcodes/i386-dis-evex-x86-64.h
+++ b/opcodes/i386-dis-evex-x86-64.h
@@ -38,11 +38,21 @@
{ Bad_Opcode },
{ VEX_W_TABLE (EVEX_W_0F3A77_X86_64) },
},
+ /* X86_64_EVEX_0F3A8C */
+ {
+ { Bad_Opcode },
+ { VEX_W_TABLE (EVEX_W_0F3A8C_X86_64) },
+ },
/* X86_64_EVEX_0F3A8D */
{
{ Bad_Opcode },
{ VEX_W_TABLE (EVEX_W_0F3A8D_X86_64) },
},
+ /* X86_64_EVEX_0F3A8E */
+ {
+ { Bad_Opcode },
+ { VEX_W_TABLE (EVEX_W_0F3A8E_X86_64) },
+ },
/* X86_64_EVEX_0F3A8F */
{
{ Bad_Opcode },
diff --git a/opcodes/i386-dis-evex.h b/opcodes/i386-dis-evex.h
index 03a29c90430..09a21e62f2b 100644
--- a/opcodes/i386-dis-evex.h
+++ b/opcodes/i386-dis-evex.h
@@ -741,9 +741,9 @@ static const struct dis386 evex_table[][256] = {
{ Bad_Opcode },
{ Bad_Opcode },
{ Bad_Opcode },
- { Bad_Opcode },
+ { X86_64_TABLE (X86_64_EVEX_0F3A8C) },
{ X86_64_TABLE (X86_64_EVEX_0F3A8D) },
- { Bad_Opcode },
+ { X86_64_TABLE (X86_64_EVEX_0F3A8E) },
{ X86_64_TABLE (X86_64_EVEX_0F3A8F) },
/* 90 */
{ Bad_Opcode },
diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c
index 5070cfcd309..aa339d07473 100644
--- a/opcodes/i386-dis.c
+++ b/opcodes/i386-dis.c
@@ -1253,7 +1253,9 @@ enum
PREFIX_EVEX_0F3A66,
PREFIX_EVEX_0F3A67,
PREFIX_EVEX_0F3A77_X86_64_W_0_L_2,
+ PREFIX_EVEX_0F3A8C_X86_64_W_0_L_2,
PREFIX_EVEX_0F3A8D_X86_64_W_0_L_2,
+ PREFIX_EVEX_0F3A8E_X86_64_W_0_L_2,
PREFIX_EVEX_0F3A8F_X86_64_W_0_L_2,
PREFIX_EVEX_0F3AC2,
@@ -1436,7 +1438,9 @@ enum
X86_64_EVEX_0F3A07,
X86_64_EVEX_0F3A2F,
X86_64_EVEX_0F3A77,
+ X86_64_EVEX_0F3A8C,
X86_64_EVEX_0F3A8D,
+ X86_64_EVEX_0F3A8E,
X86_64_EVEX_0F3A8F,
X86_64_EVEX_MAP5_6F,
@@ -1660,7 +1664,9 @@ enum
EVEX_LEN_0F3A3B,
EVEX_LEN_0F3A43,
EVEX_LEN_0F3A77_X86_64_W_0,
+ EVEX_LEN_0F3A8C_X86_64_W_0,
EVEX_LEN_0F3A8D_X86_64_W_0,
+ EVEX_LEN_0F3A8E_X86_64_W_0,
EVEX_LEN_0F3A8F_X86_64_W_0,
EVEX_LEN_MAP5_6E,
@@ -1914,7 +1920,9 @@ enum
EVEX_W_0F3A70,
EVEX_W_0F3A72,
EVEX_W_0F3A77_X86_64,
+ EVEX_W_0F3A8C_X86_64,
EVEX_W_0F3A8D_X86_64,
+ EVEX_W_0F3A8E_X86_64,
EVEX_W_0F3A8F_X86_64,
EVEX_W_0F3ADC,
diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c
index 5ca14445090..ab19b4b7696 100644
--- a/opcodes/i386-gen.c
+++ b/opcodes/i386-gen.c
@@ -277,6 +277,8 @@ static const dependency isa_dependencies[] =
"XSAVE|64" },
{ "ACE_V1",
"TILE|AVX10_V2_AUX|AVX10_1_AUX" },
+ { "ACE_V2",
+ "ACE_V1" },
{ "AMX_TILE",
"TILE" },
{ "AMX_INT8",
@@ -490,6 +492,7 @@ static bitfield cpu_flags[] =
BITFIELD (UINTR),
BITFIELD (CLDEMOTE),
BITFIELD (ACE_V1),
+ BITFIELD (ACE_V2),
BITFIELD (AMX_INT8),
BITFIELD (AMX_BF16),
BITFIELD (AMX_FP16),
diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h
index ae3632c7b0a..eb4f034d5dd 100644
--- a/opcodes/i386-opc.h
+++ b/opcodes/i386-opc.h
@@ -266,6 +266,8 @@ enum i386_cpu
/* CET instructions support required */
CpuIBT,
CpuSHSTK,
+ /* ACE V2 instructions support required. */
+ CpuACE_V2,
/* AMX-INT8 instructions required */
CpuAMX_INT8,
/* AMX-BF16 instructions required */
@@ -557,6 +559,7 @@ typedef union i386_cpu_flags
unsigned int cpuptwrite:1;
unsigned int cpuibt:1;
unsigned int cpushstk:1;
+ unsigned int cpuace_v2:1;
unsigned int cpuamx_int8:1;
unsigned int cpuamx_bf16:1;
unsigned int cpuamx_fp16:1;
diff --git a/opcodes/i386-opc.tbl b/opcodes/i386-opc.tbl
index 4334a96514c..145a31791d9 100644
--- a/opcodes/i386-opc.tbl
+++ b/opcodes/i386-opc.tbl
@@ -2985,7 +2985,6 @@ vpdpw<dpw>d<vnni><sat>, 0x<dpw:pfx>d2|<sat:opc>, AVX<vnni:int16>, Modrm|Space0F3
// AVX-VNNI-INT16 instructions end.
-<dpw>
<dpb>
<vnni>
<sat>
@@ -3330,8 +3329,6 @@ tilemovrow, 0x664a, ACE_V1, Modrm|EVex512|Space0F38|VexW1|Src2VVVV|NoSuf, { Reg3
top2bf16ps, 0xf35c, ACE_V1, Modrm|EVex512|Space0F38|VexW0|Src2VVVV|NoSuf, { RegZMM, RegZMM, RegTMM }
top4b<tdpb>d, 0x<tdpb:pfx>5e, ACE_V1, Modrm|EVex512|Space0F38|VexW0|Src2VVVV|NoSuf, { RegZMM, RegZMM, RegTMM }
-<tdpb>
-
<top4:pfx, bf:, hf:66, hbf:f3, bhf:f2>
top4mx<top4>8ps, 0x<top4:pfx>8d, ACE_V1, Modrm|EVex512|Space0F3A|VexW0|Src2VVVV|NoSuf, { Imm8, RegZMM, RegZMM, RegTMM }
@@ -3339,6 +3336,14 @@ top4mx<top4>8ps, 0x<top4:pfx>8d, ACE_V1, Modrm|EVex512|Space0F3A|VexW0|Src2VVVV|
<top4>
top4mxbssps, 0xf28f, ACE_V1, Modrm|EVex512|Space0F3A|VexW0|Src2VVVV|NoSuf, { Imm8, RegZMM, RegZMM, RegTMM }
+top4mxb<dpw>ps, 0x<dpw:pfx>8f, ACE_V2, Modrm|EVex512|Space0F3A|Src2VVVV|VexW0|NoSuf, { Imm8, RegZMM, RegZMM, RegTMM }
+
+top8fmxn<tdpb>ps, 0x<tdpb:pfx>8e, ACE_V2, Modrm|EVex512|Space0F3A|Src2VVVV|VexW0|NoSuf, { Imm8, RegZMM, RegZMM, RegTMM }
+
+<tdpb>
+<dpw>
+
+top8fmxbf4ps, 0xf38c, ACE_V2, Modrm|EVex512|Space0F3A|Src2VVVV|VexW0|NoSuf, { Imm8, RegZMM, RegZMM, RegTMM }
// ACE instructions end.
--
2.31.1
More information about the Binutils
mailing list