From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26653 invoked by alias); 16 Apr 2002 15:01:23 -0000 Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org Received: (qmail 26596 invoked from network); 16 Apr 2002 15:01:16 -0000 Received: from unknown (HELO gash2.peakpeak.com) (207.174.178.17) by sources.redhat.com with SMTP; 16 Apr 2002 15:01:16 -0000 Received: from creche.cygnus.com (ta0196.peakpeak.com [204.144.244.196]) by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id JAA02712; Tue, 16 Apr 2002 09:01:10 -0600 Received: (from tromey@localhost) by creche.cygnus.com (8.9.3/8.9.3) id JAA29658; Tue, 16 Apr 2002 09:05:31 -0600 To: Mark Wielaard Cc: java@gcc.gnu.org Subject: Re: real_zerop thinks -0 == 0 References: <1018914537.30925.36.camel@elsschot> From: Tom Tromey Reply-To: tromey@redhat.com X-Attribution: Tom X-Zippy: Well, here I am in AMERICA.. I LIKE it. I HATE it. I LIKE it. I HATE it. I LIKE it. I HATE it. I LIKE it. I HATE it. I LIKE.. EMOTIONS are SWEEPING over me!! Date: Tue, 16 Apr 2002 08:47:00 -0000 In-Reply-To: Mark Wielaard's message of "16 Apr 2002 01:48:57 +0200" Message-ID: <87r8lf8z0l.fsf@creche.redhat.com> X-SW-Source: 2002-04/txt/msg00239.txt.bz2 >>>>> "Mark" == Mark Wielaard writes: Mark> - if (real_zerop (exp)) Mark> - OP1 (prec == 1 ? OPCODE_fconst_0 : OPCODE_dconst_0); Mark> - else if (real_onep (exp)) Mark> + if (real_onep (exp)) Mark> This isn't a real solution, but I don't know how to correctly Mark> test for positive zero and I really must get some sleep Mark> now. Maybe someone more familiar with this code can suggest the Mark> proper solution. I don't know if it is the proper solution but in gcc/real.h I see REAL_VALUE_MINUS_ZERO. Would it be appropriate to use this? Tom