From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 374013858C41; Mon, 23 Oct 2023 08:59:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 374013858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698051579; bh=CZ41KSWA7yZXQ8zLddkxNO9UNYQ4MtVPHrAV2vX+Pdo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vYIrnbCyouDz0T3HNvcnIzkoAIChnzdYZyeKBdOCkPh2kupa/16H8D9+cQz82UNP+ bivJbRuII3R6GbqfLQrEDpZb46Gd+ouhjkeTTPkTUh7V0iELyebbh5iLxMnRyfPS9x f0U+D0oOQWskDHXR9NsMPf+97qMOt0GeF5Mq6hr0= From: "haochen.jiang at intel dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111889] [14 Regression] 128/256 intrins could not be used with only specifying "no-evex512, avx512vl" in function attribute Date: Mon, 23 Oct 2023 08:59:38 +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: 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: 14.0 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=3D111889 --- Comment #5 from Haochen Jiang --- It is actually a legacy issue from this: $ cat 2.c #include __attribute__ ((target ("no-avx2"))) void foo () { return _mm_empty (); } $ x86_64-pc-linux-gnu-gcc -O2 -mavx512f 2.c It will also fail. The main reason is caused by caller's target is higher than callee's. Previously it will not cause problem since we consider it makes sense and nobody will write code in such pattern. But we will introduce avx10.x-256/512 options and function attributes in ne= ar future, the problem might become visible.=