From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0F64E3858C2D; Wed, 31 May 2023 06:05:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0F64E3858C2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685513144; bh=6jPR12HTgij81mlRHzlADTn+DzFg/HLM+zX+GvbOy2g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rV6jpb1CFMMCYNcxa4Sz5z/FzmN7qw/RWUYYPzsRKBSA1LeNc+SdJXQvemRFjJpId EuHIhLHMr+Iv+FscnRL3mueFDKufuxYRJrklgnb6pAzZLDywdYx/s8Qkl86TyQaOKX 803ui4+XohS1xDz9uQSM+NKFUtepretxx5ILHMVY= From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/59666] IBM long double arithmetic results invalid in non-default rounding modes Date: Wed, 31 May 2023 06:05:42 +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: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager 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 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=3D59666 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |egallager at gcc dot gnu.o= rg, | |iains at gcc dot gnu.org --- Comment #9 from Eric Gallager --- (In reply to Sergey Fedorov from comment #8) > (In reply to Vincent Lef=C3=A8vre from comment #1) > > (In reply to Joseph S. Myers from comment #0) > > It seems to be like that "by design" (though this is not satisfactory) = and > > part of the ppc64 ABI for instance: > >=20 > > http://refspecs.linuxfoundation.org/ELF/ppc64/PPC-elf64abi.html#PREC > >=20 > > "The software support is restricted to round-to-nearest mode. Programs = that > > use extended precision must ensure that this rounding mode is in effect= when > > extended-precision calculations are performed." >=20 > Also true for AIX: > https://www.ibm.com/docs/sr/xcafbg/9.0.0?topic=3DSS3KZ4_9.0.0/com.ibm.xlf= 111. > bg.doc/xlfopg/fp-overview.html >=20 > Does anyone know whether this is also true for Darwin on PowerPC though? I don't, but Iain might...=