From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C4AC73858D37; Fri, 3 Mar 2023 13:14:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C4AC73858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677849243; bh=Rhj2qK2OuS3TZecn4MarVb52mbQqPTcKnlgmPF5JXZk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=q0KCwsjJlwQbuOYJxB+zGD6vZFTyFoKvdSxC7A9hJ3mXC56YKhVoferYloMXOyLdt CtXokRveYJ6Sx4WAvrEBFYM6B4i/CkpfmKaUVlUwNtdRWSa+YMkgMbWtFb+bG9jTWb NCcsTbINjUK9yfOVPGrDxJlyRog0FbIqdY9udjq4= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109008] [13 Regression] Wrong code in scipy package since r13-3926-gd4c2f1d376da6f Date: Fri, 03 Mar 2023 13:14:03 +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: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 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=3D109008 --- Comment #9 from Richard Biener --- (In reply to Richard Biener from comment #8) > We basically have to consider an input range [a, b] as [a - x, b + y] > with the largest positive x and y so that correctly rounding the value > yields a and b again. So when we have [a, b] =3D x + [c, d]; we have to compute x =3D [a + a', b + b'] - [c + c', d + d']; and because we deal with FP actually do x =3D [a, b] - [c, d]; x' =3D [a', b'] - [c', d']; and yield x U x' as result. For other operations it might get more complicated.=