From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B5EB6385840A; Fri, 20 Oct 2023 06:40:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B5EB6385840A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697784037; bh=s4JRjmpoSS8Mwuygou71h5f8gvFq0CN2OdkKNJUcMms=; h=From:To:Subject:Date:From; b=LdKc6wTwbZEzNCOfXG5lJ3cJg2P/T7X98CjRJKFt3bHcMVo/f3sRxoGP4/7DIKaMy ynYliBljWC+GMhfWmhbSA8waXEH2nYlB1gVuNxod9jMvE5tmQ9z2XtMzWE5flP0RPj NmIacFPKcaQ0uxXMzh/6J+OcDnAgJwkqcCwzJ7r4= From: "haochen.jiang at intel dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111889] New: [14 Regression] 128/256 intrins could not be used with only specifying "no-evex512, avx512vl" in function attribute Date: Fri, 20 Oct 2023 06:40:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: haochen.jiang at intel dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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=3D111889 Bug ID: 111889 Summary: [14 Regression] 128/256 intrins could not be used with only specifying "no-evex512, avx512vl" in function attribute Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: haochen.jiang at intel dot com Target Milestone: --- Created attachment 56155 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D56155&action=3Dedit Simple testcase With this simple testcase and command like this: x86_64-pc-linux-gnu-gcc -O2 -march=3Dx86-64 1.c We will finally get: error: inlining failed in call to =E2=80=98always_inline=E2=80=99 =E2=80=98= _mm256_mask_mov_pd=E2=80=99: target specific option mismatch But if we use the command like this: x86_64-pc-linux-gnu-gcc -O2 -march=3Dx86-64 -mno-evex512 1.c It seems that the default handle for evex512 with avx512 will finally let t= he compiler wrongly suppose that 128/256 bit intrins need evex512 feature when co-operating with function attribute, but actually it does not.=