[PATCH 04/10] x86: add dependencies on AVX2
Jan Beulich
jbeulich@suse.com
Mon Dec 19 10:45:55 GMT 2022
Like AVX-VNNI both VAES and VPCLMUL take AVX2 as a prereq, for operating
on up to 256-bit packed integer vectors.
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -1091,8 +1091,8 @@ static const arch_entry cpu_arch[] =
SUBARCH (ibt, IBT, IBT, false),
SUBARCH (shstk, SHSTK, SHSTK, false),
SUBARCH (gfni, GFNI, ANY_GFNI, false),
- SUBARCH (vaes, VAES, VAES, false),
- SUBARCH (vpclmulqdq, VPCLMULQDQ, VPCLMULQDQ, false),
+ SUBARCH (vaes, VAES, ANY_VAES, false),
+ SUBARCH (vpclmulqdq, VPCLMULQDQ, ANY_VPCLMULQDQ, false),
SUBARCH (wbnoinvd, WBNOINVD, WBNOINVD, false),
SUBARCH (pconfig, PCONFIG, PCONFIG, false),
SUBARCH (waitpkg, WAITPKG, WAITPKG, false),
--- a/opcodes/i386-gen.c
+++ b/opcodes/i386-gen.c
@@ -217,6 +217,10 @@ static const dependency isa_dependencies
"XSAVE" },
{ "GFNI",
"SSE2" },
+ { "VAES",
+ "AVX2" },
+ { "VPCLMULQDQ",
+ "AVX2" },
{ "AMX_INT8",
"AMX_TILE" },
{ "AMX_BF16",
More information about the Binutils
mailing list