From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1039) id BE45F3858D3C; Tue, 18 Oct 2022 17:50:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BE45F3858D3C Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: H.J. Lu To: bfd-cvs@sourceware.org Subject: [binutils-gdb] x86: Disable AVX-VNNI when disabling AVX2 X-Act-Checkin: binutils-gdb X-Git-Author: H.J. Lu X-Git-Refname: refs/heads/master X-Git-Oldrev: 04ea6b63141c43d9e96999e16917358088556fdd X-Git-Newrev: 152cc35ebff44eb06a00364ca1dbcf5fca6772b4 Message-Id: <20221018175057.BE45F3858D3C@sourceware.org> Date: Tue, 18 Oct 2022 17:50:57 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2022 17:50:57 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D152cc35ebff4= 4eb06a00364ca1dbcf5fca6772b4 commit 152cc35ebff44eb06a00364ca1dbcf5fca6772b4 Author: H.J. Lu Date: Tue Oct 18 10:47:29 2022 -0700 x86: Disable AVX-VNNI when disabling AVX2 =20 Since AVX-VNNI requires AVX2, disable AVX-VNNI when disabling AVX2. =20 * i386-gen.c (cpu_flag_init): Add CpuAVX_VNNI to CPU_ANY_AVX2_FLAGS. * i386-init.h: Regenerate. Diff: --- opcodes/i386-gen.c | 2 +- opcodes/i386-init.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c index 2bcef6f5b50..eb3bd85079c 100644 --- a/opcodes/i386-gen.c +++ b/opcodes/i386-gen.c @@ -370,7 +370,7 @@ static initializer cpu_flag_init[] =3D { "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_AV= X512BW_FLAGS|CpuAVX512VL|CpuAVX512IFMA|CpuAVX512VBMI|CpuAVX512_4FMAPS|CpuAV= X512_4VNNIW|CpuAVX512_VPOPCNTDQ|CpuAVX512_VBMI2|CpuAVX512_VNNI|CpuAVX512_BI= TALG|CpuAVX512_BF16|CpuAVX512_VP2INTERSECT" }, { "CPU_ANY_AVX512CD_FLAGS", diff --git a/opcodes/i386-init.h b/opcodes/i386-init.h index 3894f1f7585..c99e6c9d582 100644 --- a/opcodes/i386-init.h +++ b/opcodes/i386-init.h @@ -1472,7 +1472,7 @@ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, \ 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, \ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, \ - 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \ + 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \ 0, 0, 0, 0, 0 } } =20 @@ -1481,7 +1481,7 @@ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, \ 1, 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