From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 531C33858421; Tue, 14 Mar 2023 20:11:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 531C33858421 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678824667; bh=A+7kTLyNo+1kAaDL0b/Ix26lP1mEteVDEy8tcr6jSVw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SaS8riuKHouPJkuNiX6yM2Nd04ZFcpFC9AMSB5rttOzLEtr8KL2rrtxIw7g4BkUyT P1sMhtzre8VeXwNRGiu0TZpfBybLQbIarZpkFEaQAb8zXa8J6v/4IAQ7RAzDL0uUSI GVTS27f5DE9gLLM58A6JUfpkSeen3AdsZv7rnndo= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/109132] Apple M1 floating point bug when optimizing Date: Tue, 14 Mar 2023 20:11:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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=3D109132 --- Comment #2 from Andrew Pinski --- (In reply to Andrew Pinski from comment #1) > ubuntu@ubuntu:~\# ~/upstream-gcc/bin/gcc t.c -O2 -ffp-contract=3Doff > ubuntu@ubuntu:~\# ./a.out > 0x1.2eab1ep-2 0x0p+0 > ubuntu@ubuntu:~\# ~/upstream-gcc/bin/gcc t.c -O2 > ubuntu@ubuntu:~\# ./a.out > 0x1.2eab1ep-2 0x1.1b990cp-29 >=20 >=20 >=20 > NOT a bug. the use of FMA increases precission here ... Note this was done on aarch64-linux-gnu with a GCC built from 20230310.=