aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2022-10-18 10:47:29 -0700
committerH.J. Lu <hjl.tools@gmail.com>2022-10-18 10:47:29 -0700
commit152cc35ebff44eb06a00364ca1dbcf5fca6772b4 (patch)
tree53d6a63098abdbee85b15c10015996c1e50ac7e9 /opcodes
parent04ea6b63141c43d9e96999e16917358088556fdd (diff)
downloadgdb-152cc35ebff44eb06a00364ca1dbcf5fca6772b4.zip
gdb-152cc35ebff44eb06a00364ca1dbcf5fca6772b4.tar.gz
gdb-152cc35ebff44eb06a00364ca1dbcf5fca6772b4.tar.bz2
x86: Disable AVX-VNNI when disabling AVX2
Since AVX-VNNI requires AVX2, disable AVX-VNNI when disabling AVX2. * i386-gen.c (cpu_flag_init): Add CpuAVX_VNNI to CPU_ANY_AVX2_FLAGS. * i386-init.h: Regenerate.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/i386-gen.c2
-rw-r--r--opcodes/i386-init.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c
index 2bcef6f..eb3bd85 100644
--- a/opcodes/i386-gen.c
+++ b/opcodes/i386-gen.c
@@ -370,7 +370,7 @@ static initializer cpu_flag_init[] =
{ "CPU_ANY_AVX_FLAGS",
"CPU_ANY_AVX2_FLAGS|CpuF16C|CpuFMA|CpuFMA4|CpuXOP|CpuAVX" },
{ "CPU_ANY_AVX2_FLAGS",
- "CPU_ANY_AVX512F_FLAGS|CpuAVX2" },
+ "CPU_ANY_AVX512F_FLAGS|CpuAVX2|CpuAVX_VNNI" },
{ "CPU_ANY_AVX512F_FLAGS",
"CpuAVX512F|CpuAVX512CD|CpuAVX512ER|CpuAVX512PF|CpuAVX512DQ|CPU_ANY_AVX512BW_FLAGS|CpuAVX512VL|CpuAVX512IFMA|CpuAVX512VBMI|CpuAVX512_4FMAPS|CpuAVX512_4VNNIW|CpuAVX512_VPOPCNTDQ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