From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6A1AB385C6E7; Wed, 4 Oct 2023 18:31:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6A1AB385C6E7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696444290; bh=Jq9nPC/geefZRMmZxpeF7l6ELZ+oX8lfB3b8way+OkE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HesoicXflvZ0G7UgG5iL9W4eAQzUpjCXNsKhImt9pEApqtbKe4ded1bcIownTX2ic PAEaZzPwo35Wk/TpfyYpCXMg8td7vy7XF1iGD/qQ52EjpqZv2MlPJJKdk6Gc45Kjrt dZNtx03trHnqAfeM63aNKuukyUBY7OacYXeUNqUU= From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111694] [13/14 Regression] Wrong behavior for signbit of negative zero when optimizing Date: Wed, 04 Oct 2023 18:31:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org 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: cc component short_desc keywords 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=3D111694 Alexander Monakov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amonakov at gcc dot gnu.org Component|web |tree-optimization Summary|Wrong behavior for signbit |[13/14 Regression] Wrong |of negative zero when |behavior for signbit of |optimizing |negative zero when | |optimizing Keywords| |wrong-code --- Comment #1 from Alexander Monakov --- Reduced: #define signbit(x) __builtin_signbit(x) static void test(double l, double r) { if (l =3D=3D r && (signbit(l) || signbit(r))) ; else __builtin_abort(); } int main() { test(0.0, -0.0); }=