From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9F77D385841D; Mon, 24 Oct 2022 20:01:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9F77D385841D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666641704; bh=kBECQk8mphYrJwXmntNin5yquYoa/kwLzBV+S34dXNU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TlSU5NAdvHaDb35f2Zqomirri2EYnpsnILmC8r7/ISB+4LneUtYZDCdQvJnlIDdpu BZeW/l3u54w4pqsjaoPNAuNXUdfaHWXZtRh7LmZxWhBZmD3awLP4Rnof5map2//qhN z7jnTcYeWXqYsrF23L5UsKyKsdY66zpMua0RG0ZU= From: "jacob at jacob dot remcomp.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/107370] long double sqrtl constant folding is wrong Date: Mon, 24 Oct 2022 20:01:44 +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: 10.2.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jacob at jacob dot remcomp.fr 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: --- 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=3D107370 --- Comment #9 from jacob navia --- Actually, this looks that a bug in all versions of gcc! Using the "GP" calculator I obtain: 1.414213562373095048801688724209698078 Using the "bc" calculator ~ % bc bc 1.06 Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'.=20 scale=3D33 sqrt(2) 1.414213562373095048801688724209698 All agree: gcc is just wrong.=