This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] fix wrong result in ARM __muldf3 code


> 
> Current __muldf3 and __divdf3 on ARM will return wrong values for small 
> negative denormalized values.
> 
> For example: 1.112537e-308 * -3.637979e-12
> Current result: -8.293093e-317
> Expected result: -4.047386e-320
> 
> The patch below fixes that problem and should be applied to both mainline 
> and 3.4 branch since this clearly is a regression bug.
> 
> 
> <date>  Nicolas Pitre <nico@cam.org>
> 
> 	* config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
> 	small negative values.

OK both.

It would be good to have some testcases in the testsuite for things like 
this.

R.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]