From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 06E71385840D; Tue, 15 Mar 2022 10:56:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 06E71385840D From: "poulhies at adacore dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/99744] __attribute__ ((target("general-regs-only"))) doesn't work with GPR intrinsics Date: Tue, 15 Mar 2022 10:56:20 +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: 11.0 X-Bugzilla-Keywords: patch X-Bugzilla-Severity: normal X-Bugzilla-Who: poulhies at adacore dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2022 10:56:21 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99744 Marc Poulhi=C3=A8s changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |poulhies at adacore dot com --- Comment #16 from Marc Poulhi=C3=A8s --- Hi! I'm seeing regressions in pr99744-{1,2,4,5}.c for an i586 target where MMX/= SSE are not enabled. IIUC, your patch inserts "general-regs-only" in x86gprintrin.h if MMX or SS= E is enabled and makes the inlining of the calls in theses tests (using target("general-regs-only")) be compatible with the intrinsics defined in t= he header. In my case, MMX/SSE being both disabled, the calls can't be inlined (mismat= ch of target options). Would that still be correct to change the #if defined __MMX__ || defined __SSE__ by #if defined __i686__ ?=