Re: [PATCH] Do not use bit and for conjunction of predicates (PR c/81272).

2018-02-19 Thread Jeff Law
On 02/19/2018 06:43 AM, Martin Liška wrote: > Hi. > > This changes code to be consistent: > > if (!decNumberIsNegative(lhs) & decNumberIsNegative(rhs)) { > ... >else if (decNumberIsQNaN(lhs) && decNumberIsSNaN(rhs)) result=+1; > > That's fixed in the patch. > Patch can bootstrap

[PATCH] Do not use bit and for conjunction of predicates (PR c/81272).

2018-02-19 Thread Martin Liška
Hi. This changes code to be consistent: if (!decNumberIsNegative(lhs) & decNumberIsNegative(rhs)) { ... else if (decNumberIsQNaN(lhs) && decNumberIsSNaN(rhs)) result=+1; That's fixed in the patch. Patch can bootstrap on ppc64le-redhat-linux and survives regression tests. Ready