From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8032D3858439; Fri, 24 Nov 2023 09:48:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8032D3858439 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700819319; bh=jQij0WGHgJyMTNTEvXK091lQX3Mw6d5jpXsENteBpkQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TfRk+uwZoAsAS6I2XgO4h2txGMzCoyl65GOjy837bbxyPashlvFOy4eqokE6YMRh4 yRO/daWv5jVmF8brVOMRHTGQTSQVdUHfMMMb2l5b5/2f/GsnsMs80zk1395d/4wD2b asLOSEdN1fmBhIC2ZixIpfnpEfaq0Jnh1HuVAPKY= From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/111655] [11/12/13/14 Regression] wrong code generated for __builtin_signbit and 0./0. on x86-64 -O2 Date: Fri, 24 Nov 2023 09:48:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.2.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org 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: 11.5 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=3D111655 --- Comment #13 from Alexander Monakov --- > Then there is the MULT_EXPR x * x case This is PR 111701. It would be nice to clarify what "nonnegative" means in the contracts of th= is family of functions, because it's ambiguous for NaNs and negative zeros (x = < 0 is false while signbit is set, and x >=3D 0 is also false for positive NaNs= ).=