Re: [PATCH] Fix comparison of decimal float zeroes (PR80692)

2017-05-17 Thread Ben Elliston
On Wed, May 17, 2017 at 06:36:38PM +, Segher Boessenkool wrote: > 2017-05-17 Segher Boessenkool > > PR middle-end/80692 > * real.c (do_compare): Give decimal_do_compare preference over > comparing just the signs. > > gcc/testsuite/ > PR middle-end/80692 > * g

[PATCH] Fix comparison of decimal float zeroes (PR80692)

2017-05-17 Thread Segher Boessenkool
Decimal float negative zero should compare equal to positive zero. Decimal float zeroes are encoded as value class "normal" (in real.c); they need to be handled specially, but in this one case that does not yet happen. This fixes it. Bootstrapped and tested on powerpc64-linux {-m32,-m64}; also te