From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 313963858CDA; Mon, 20 May 2024 06:38:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 313963858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716187095; bh=kh/rn92leCYa/JlSXmm9IH+HZJIjUbTZW6kbR+cmpWo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qTzuKXKylcQY1qpDL8g6B39LhsDE3S/Nql31CKzlZa9jpaHherpM68v81wYD3rMjq tfJ79qZdPEur3JFyh9PS0fkmzCPnf4BtbwfaDNVE9SmDKc7giyJyRkAio9z6i/PTiH /pIKjBO8PcbJyaB0sIuO1j85zFbc9eWuw031E4H8= From: "haochen.jiang at intel dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/115069] [14/15 regression] 8 bit integer vector performance regression, x86, between gcc-14 and gcc-13 using avx2 target clones on skylake platform Date: Mon, 20 May 2024 06:38:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: haochen.jiang at intel dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115069 --- Comment #15 from Haochen Jiang --- I am doing like this way. Suppose should be same as Comment 8. diff --git a/gcc/config/i386/i386-expand.cc b/gcc/config/i386/i386-expand.cc index a6132911e6a..1e8334877d6 100644 --- a/gcc/config/i386/i386-expand.cc +++ b/gcc/config/i386/i386-expand.cc @@ -24323,8 +24323,8 @@ ix86_expand_vecop_qihi2 (enum rtx_code code, rtx de= st, rtx op1, rtx op2) bool op2vec =3D GET_MODE_CLASS (GET_MODE (op2)) =3D=3D MODE_VECTOR_INT; bool uns_p =3D code !=3D ASHIFTRT; - if ((qimode =3D=3D V16QImode && !TARGET_AVX2) - || (qimode =3D=3D V32QImode && (!TARGET_AVX512BW || !TARGET_EVEX512)) + if (!TARGET_AVX512BW + || (qimode =3D=3D V32QImode && !TARGET_EVEX512) /* There are no V64HImode instructions. */ || qimode =3D=3D V64QImode) Should we also run a SPEC on with -O2 -mtune=3Dgeneric -march=3Dx86-64-v3 t= o see if there is any surprise?=