From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12577 invoked by alias); 26 Mar 2014 20:41:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 12248 invoked by uid 55); 26 Mar 2014 20:41:09 -0000 From: "dave.anglin at bell dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/60128] [4.8/4.9 Regression] Wrong ouput using en edit descriptor Date: Wed, 26 Mar 2014 20:41:00 -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: 4.8.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dave.anglin at bell dot net X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-03/txt/msg02466.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60128 --- Comment #52 from dave.anglin at bell dot net --- On 3/26/2014 4:20 PM, dominiq at lps dot ens.fr wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60128 > > --- Comment #51 from Dominique d'Humieres --- >> This is what the HP-UX Floating-Point Guide says: >> >> If two representable values are equally close to >> the true value, choose the one whose least significant >> bit is 0. > This is round to even on tie, isn't it? I'm not sure. The hex representations for 9900.0 (9.9e+3) and 10000.0 (1.0e+4) are 40c3560000000000 and 40c3880000000000, respectively. It seems both have a zero least significant bit. So, something more is needed to break tie in this case. Dave