Bug 14354 - Precision of subnormal single-precision multiplication in fp-bit.c bad
Summary: Precision of subnormal single-precision multiplication in fp-bit.c bad
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: other (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.0.0
Assignee: Hans-Peter Nilsson
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2004-03-01 01:29 UTC by Hans-Peter Nilsson
Modified: 2018-03-09 01:51 UTC (History)
1 user (show)

See Also:
Host:
Target: cris-* mn10300-elf sh-elf v850-elf m32r-elf
Build:
Known to work:
Known to fail:
Last reconfirmed: 2004-03-01 01:30:54


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hans-Peter Nilsson 2004-03-01 01:29:57 UTC
See test-case in patch referenced soon.  All hardware (including i387) I have
access to get these numbers "right" (less than 0.5ulp error) on multiplication.
Comment 1 Hans-Peter Nilsson 2004-03-01 02:46:06 UTC
Patch and testcase at
<URL:http://gcc.gnu.org/ml/gcc-patches/2004-03/msg00003.html>.
Comment 2 GCC Commits 2004-03-05 00:46:11 UTC
Subject: Bug 14354

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	hp@gcc.gnu.org	2004-03-05 00:46:06

Modified files:
	gcc/testsuite  : ChangeLog 

Log message:
	Forgot to mark PR for <URL:http://gcc.gnu.org/ml/gcc-cvs/2004-03/msg00238.html>.
	
	PR other/14354
	* gcc.c-torture/execute/ieee/mul-subnormal-single-1.c: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3570&r2=1.3571

Comment 3 GCC Commits 2004-03-05 00:49:26 UTC
Subject: Bug 14354

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	hp@gcc.gnu.org	2004-03-05 00:49:22

Modified files:
	gcc            : ChangeLog 

Log message:
	Forgot to mark PR for <URL:http://gcc.gnu.org/ml/gcc-cvs/2004-03/msg00237.html>
	
	PR other/14354
	* config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
	round the same.  When rounding, clear bits that would cause a
	second rounding in pack_d.
	(_fpmul_parts): Ditto.  Remove #if 0:d code.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.3051&r2=2.3052

Comment 4 Hans-Peter Nilsson 2004-03-05 00:52:14 UTC
Testcase and fix committed.