From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 36C743858D37; Mon, 3 Apr 2023 12:16:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 36C743858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1680524211; bh=hahDwS2l9ZA5chU7/fM/+4J3Lb+2RAmhrFDQ81jpm7w=; h=From:To:Subject:Date:In-Reply-To:References:From; b=P7IE4A5Kd1Z6oku5n/zSUPJL85LnuMfOJqWAb9tIvHCSlyKNeI+LpsKalu+gpo4yD e80rVhlV0WvPNhemx8IdkeqPyA8OcseO33twykOEXGLDlkovzuDWyMcla8qoHQ5ggD r4Gp7w+g7onw0sUatoOWDqkvfnsJnYonUZcjocR4= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109386] [13 Regression] Frange value relation related miscompilation Date: Mon, 03 Apr 2023 12:16:50 +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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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=3D109386 --- Comment #3 from Jakub Jelinek --- Created attachment 54803 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54803&action=3Dedit gcc13-pr109386.patch Untested fix. When LT/LE/GT/GE have lhs [0, 0] or UNLT/UNLE/UNGT/UNGE have= lhs [1, 1], we don't know anything (VARYING) about one operand if the other ope= rand may be a NAN, not just is known to be a NAN, because if it happens to be NA= N at runtime, the comparison is false (resp. true) regardless of the finite/infi= nite comparison results.=