From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 93CD7385770A; Mon, 17 Apr 2023 06:37:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 93CD7385770A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681713463; bh=7xszg7y550Q4rolzM2mh6LCRBhtQz1lsGpqEsIAPF+0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=C5zfdvEErZaC8LIs6vUq2uT9BdcqJAbHW+tdgeSd1to3YjqPyFhtBy5nAH9f62iV1 sh3k8UHD1/yE06WvD1RUIsIqKZfsTelz4Npo+HOGlVRQQVDKVJXHNNfoW3nOaAsRil 3PyGAm3oNJFMeXioXz9uw6SnC1zCVsNqd+fPMqKs= From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/109504] [12/13 Regression] Compilation fails with pragma GCC target sse4.1 and immintrin.h Date: Mon, 17 Apr 2023 06:37:41 +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: 12.2.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: crazylht at gmail 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: 12.3 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=3D109504 --- Comment #6 from Hongtao.liu --- (In reply to Jakub Jelinek from comment #4) > Yeah. Enable all the time and have say the > targetm.invalid_conversion, targetm.invalid_unary_op, > targetm.invalid_binary_op > and something in argument/return value passing reject _Float16/__bf16 in > functions without SSE2. > That will not be enough though, we'll need to arrange e.g. for the spot > where we #undef/#define target macros based on currently active ISA in > pragmas to also > do that for __STDCPP_FLOAT16_T__ and __STDCPP_BFLOAT16_T__ for C++, and > change libstdc++ > such that for x86 it adds similarly to x86 intrin headers something like Can we just cpp_undef _STDCPP_FLOAT16_T__ and __STDCPP_BFLOAT16_T__ for C++= in ix86_target_macros when !TARGET_SSE2 so that no need to change libstdc++ pa= rt.=