From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9E4453987037; Fri, 11 Sep 2020 19:47:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9E4453987037 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1599853624; bh=t1WiIoTr1SU7brO0o0WjT71xJdZ9rsutGYlNyoKSeDE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=yvVQEyikh4eko06EsyuvQMCDqYt5o8L/buMsiv9ymZ+QC7XoeIboc1ttZepdFmBgU OHrzvFnKfIYE1gKS5dluVQG3/rVr3pLc4hjW0HmR5FhRvr39OviQR7xf6sE9hNQnwB VDkydzGAzHWWexCp4DB1x/27o6LFNawkJIufTh4E= From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/96983] [11 regression] ICE compiling gfortran.dg/pr96711.f90 starting with r11-3042 Date: Fri, 11 Sep 2020 19:47:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: segher 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: 11.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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Sep 2020 19:47:04 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96983 --- Comment #20 from Segher Boessenkool --- (In reply to Peter Bergner from comment #18) > > Why aren't KFmode, IFmode and TFmode all 128??? Mike? >=20 > This comes from rs6000-modes.h: >=20 > /* We order the 3 128-bit floating point types so that IFmode (IBM 128-bit > floating point) is the 128-bit floating point type with the highest > precision (128 bits). This so that machine independent parts of the > compiler do not try to widen IFmode to TFmode on ISA 3.0 (power9) that= has > hardware support for IEEE 128-bit. We set TFmode (long double mode) in > between, and KFmode (explicit __float128) below it. >=20 > We won't encounter conversion from IEEE 128-bit to IBM 128-bit because= we > don't have insns to support the IBM 128-bit aritmetic operations. */ >=20 > #ifndef RS6000_MODES_H > #define RS6000_MODES_H 1 > #define FLOAT_PRECISION_IFmode 128 > #define FLOAT_PRECISION_TFmode 127 > #define FLOAT_PRECISION_KFmode 126 Yes, this is a useful hack, but it has its own problems; the underlying problem *still* has to be fixed (namely, the assumption that if you have two floating point modes, they are ordered such that any number in one of the modes can be represented in the other. In reality no such ordering exists: __ibm128 has values not representable in __ieee128, and vice versa). We do have two 16 byte floating point modes, and neither is "greater" than the other.=