From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 59EC738515D1 for ; Tue, 6 Sep 2022 07:50:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 59EC738515D1 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662450610; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QC7StjyhJuJzhWrPKCF5R0NONP/dL0LtlNHt3nBbOas=; b=hsJf4Hb2LJ1EEi3f3Hy+3U35ZEemI/kfWpUg+Y7u7eh75CcGam9+MIQh8nvcbb6dmmgML6 I5P0GaD/5EI//p1ZD4y0pEETt20ikIkzUO7MZcfheYCvmcq7HLVoQEUHUTtmg0IknfUw7X ROz9U4dAk+P3L8+AJKImZWN3kZhHXtc= Received: from mail-ot1-f70.google.com (mail-ot1-f70.google.com [209.85.210.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-592-n-xsIJSqPXWBgYalxXuHSQ-1; Tue, 06 Sep 2022 03:50:07 -0400 X-MC-Unique: n-xsIJSqPXWBgYalxXuHSQ-1 Received: by mail-ot1-f70.google.com with SMTP id f22-20020a056830205600b0063724673c3aso6013778otp.3 for ; Tue, 06 Sep 2022 00:50:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=QC7StjyhJuJzhWrPKCF5R0NONP/dL0LtlNHt3nBbOas=; b=QHYslwnfY0tvEyYu5BbJ1zvdqnIHOGIxNnjxIZGLsw29kHbGTX8Mgzcgb6NRWLtj2C cyFdtnT0ZBrsRyp3IjLWWyVVV9j4PCmwvSb+XqwEMa/uOrKbvO4ICxggjzroeEa+jNTS 88A/KpWXVIMvJpaO72chQQGu1Xl9rSVwhE09R98xirRphUrFZJKEMDfPj86j9X8DBGQJ YhWUwdpNYhkGVWlIwQibgoAw6fh5WNbhTYkdCfE8xmGQSGf9U/+tT2nUyEf0U0qU/qji BzEgfDMYu5GIY4u25zhpdrkL31vNAMGvO4nJgEyRB+2PEiGtxDmPcida+8P/VcWN6ukt ugJg== X-Gm-Message-State: ACgBeo01SDRSVBZ7ftAM1GxgA3HkW+8Ko0VTrweFkiZywU6z6o/OW1Fj gdIxhndNmeOhrR37wq65AFRBpJtw1QncO5Hu4UgQVU7YBPAetng71caEN5fIY3m4eMLgg/QTQWA 0JzIX9Y1OpV/LGntXysCNhLmdZBUbl7OthQ== X-Received: by 2002:a05:6808:f0f:b0:343:2e0e:ac52 with SMTP id m15-20020a0568080f0f00b003432e0eac52mr8923784oiw.36.1662450606594; Tue, 06 Sep 2022 00:50:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Oqai/MCOLqf3Wj+i9y/fXw+sWW5G94Z+B6tRnpiwcMw1ompq122IHp3Kdxtexl/nWKaO5e5/7yki+8e8dKR8= X-Received: by 2002:a05:6808:f0f:b0:343:2e0e:ac52 with SMTP id m15-20020a0568080f0f00b003432e0eac52mr8923776oiw.36.1662450606424; Tue, 06 Sep 2022 00:50:06 -0700 (PDT) MIME-Version: 1.0 References: <20220906072901.3472801-1-aldyh@redhat.com> In-Reply-To: From: Aldy Hernandez Date: Tue, 6 Sep 2022 09:49:55 +0200 Message-ID: Subject: Re: [PATCH] Handle > INF and < INF correctly in range-op-float.cc To: Jakub Jelinek Cc: GCC patches , Richard Biener , Andrew MacLeod X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, Sep 6, 2022 at 9:44 AM Jakub Jelinek wrote: > > On Tue, Sep 06, 2022 at 09:40:59AM +0200, Aldy Hernandez wrote: > > if (x <= Inf) > > This will be [-Inf, Inf] !NAN on the true side and > NAN (either sign) on the false side indeed. > > > if (x < -Inf) > > will be NAN (either sign) on the true side and > [-Inf, Inf] !NAN on the false side. Sweet, that's exactly what I thought, thus the patch. Furthermore, for !HONOR_NANS I would expect the NAN sides above to be UNDEFINED/unreachable. That is, the false side of x <= Inf when !HONOR_NANS is unreachable. Agreed? Aldy