From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27202 invoked by alias); 16 Jan 2014 22:08:40 -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 27177 invoked by uid 48); 16 Jan 2014 22:08:37 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/59836] [4.7/4.8/4.9 Regression] Wrong outputs with rounding formats for some values. Date: Thu, 16 Jan 2014 22:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libfortran X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW 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: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-01/txt/msg01783.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59836 --- Comment #3 from Dominique d'Humieres --- > I will also test your patches and review and commit for you if you need. > Please let me know. Could you check in particular that I did not miss something when removing the line - nzero--; I have not followed in detail the use of nzero. I don't have write access so I cannot do the commit, but I can do the packaging and the submit if it helps (I have the FSF form signed). Feel free to use the posted patches as you like. > I knew you were close to the solution on this one. Great job! Thanks! Actually I have tried - if (w > 0 && d == 0 && p == 0) + if (ft != FMT_F && nbefore == 0 && w > 0 && d == 0 && p == 0) but gfortran.dg/round_3.f08 regressed and I did not catch the need for the second part of the patch, hence the kludge in pr59774 comment 9. I think the formats and values in comment 0, can be added to gfortran.dg/round_3.f08 (as well as some tests for pr59774). I'ld like also to add some tests for RC around 0.5.