Message ID | 20220823101812.878305-1-aldyh@redhat.com |
---|---|
State | New, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:ecc5:0:0:0:0:0 with SMTP id s5csp876431wro; Tue, 23 Aug 2022 03:19:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR6E1ITgKO3xi79S9OiYYEJFnm+wxd4P/UKWtdb7ILPJ0jZw2kHZ1TDzXmJkK7F9x9zxWPOU X-Received: by 2002:a05:6402:27ca:b0:43e:ce64:ca07 with SMTP id c10-20020a05640227ca00b0043ece64ca07mr3170158ede.66.1661249947156; Tue, 23 Aug 2022 03:19:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661249947; cv=none; d=google.com; s=arc-20160816; b=qMPivY/o3jiNwurNRKLWizi1R0FuLRD8ie7n1uykBp83ioxCtDFUINNJqlqEYNfLZT TcJnNX3RyZfdIA8kHt1E+8+qIwGAuFEXQkpmsTbm2MQUxI5oMnJM8kUARwb/gUHe9l0d eLLa0W6JuFh0q4EH+4o1QW4XoNmd1KEadUf1k2Q8hIhvzz4/FmOrDHlG7uM+REUD5Z9N aCvwwCtHndkCHzKitbS120PsE4C/NhKg7K4vJgSpyAw4aNFR23r1g8pwS/fDXN/r2Pd0 dQMYdt+dPtotx7kcy7KFwPvbL66ZFuFm+KLKcUtaAuR2oiBezoT4sGCTYKP1TAfXt8Bw OYPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:to :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=nqBLzuzFlQFDJhDQ7KFSoJNcdNSKZSPFGgbb5ZOmv0o=; b=ZnqkaBNi6RhOite37hI2sVzE9yg7k/i9p/yYFF5r6OAHRnWl85wU8fyLonf9p3aKoD ohGoFFvQuJzPc+wafeGDmYVR0AFUMejHJahbZUZsSPJ+Rsgbn5dTURc3db3ON5lKMqjN pCfEKtHDPkb7h4mZ4d8vpaK9xEpvoKaTXMoDqJtXG9sU4+LXRCNwf8sdFbDiQrJy/O77 slHL/OUwXW5ahe8KRVfLa+VtUt9gVX5loYSzi0d8oXi0wxMYceV9mQQYDviCwWVTQC59 uGM1EMxkqNpxV2pwsJpis0gi2ac+YY0bP6Sri2X7MbhiZ4gKDkS7O0GbGHTjg+Hcpede Jipw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=IeNfbBgv; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id bq2-20020a056402214200b0043d10cc3a66si1745804edb.403.2022.08.23.03.19.06 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Aug 2022 03:19:07 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=IeNfbBgv; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 13BD23858424 for <ouuuleilei@gmail.com>; Tue, 23 Aug 2022 10:19:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 13BD23858424 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661249946; bh=nqBLzuzFlQFDJhDQ7KFSoJNcdNSKZSPFGgbb5ZOmv0o=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=IeNfbBgvEOaf0Ov4LCJIlhB4r0tRQ7nzAjR9VTY0Vhr2HgOOeKfzKnuW8sZ8ZevCb nTVEJ8ebOt1zktG4XOq8W+5Uu/lQbRegOUYNoJvNK0FEWXqFKzh0uRKBCT8qKR455H 3xvw9BWwO4yK1B5vGagDOxjq8vh2//LGoXEYnXoc= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org 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 32AFD3858D37 for <gcc-patches@gcc.gnu.org>; Tue, 23 Aug 2022 10:18:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 32AFD3858D37 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-170-GuqwcXDqPZiL4pi721AIBQ-1; Tue, 23 Aug 2022 06:18:19 -0400 X-MC-Unique: GuqwcXDqPZiL4pi721AIBQ-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2243F811E87 for <gcc-patches@gcc.gnu.org>; Tue, 23 Aug 2022 10:18:19 +0000 (UTC) Received: from abulafia.quesejoda.com (unknown [10.39.193.180]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B11A4492C3B; Tue, 23 Aug 2022 10:18:18 +0000 (UTC) Received: from abulafia.quesejoda.com (localhost [127.0.0.1]) by abulafia.quesejoda.com (8.17.1/8.17.1) with ESMTPS id 27NAIGUb878319 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 23 Aug 2022 12:18:16 +0200 Received: (from aldyh@localhost) by abulafia.quesejoda.com (8.17.1/8.17.1/Submit) id 27NAIF2Z878318; Tue, 23 Aug 2022 12:18:15 +0200 To: GCC patches <gcc-patches@gcc.gnu.org> Subject: [COMMITTED] Copy range from op2 in foperator_equal::op1_range. Date: Tue, 23 Aug 2022 12:18:12 +0200 Message-Id: <20220823101812.878305-1-aldyh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Aldy Hernandez via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Aldy Hernandez <aldyh@redhat.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1741946824901335785?= X-GMAIL-MSGID: =?utf-8?q?1741946824901335785?= |
Series |
[COMMITTED] Copy range from op2 in foperator_equal::op1_range.
|
|
Commit Message
Aldy Hernandez
Aug. 23, 2022, 10:18 a.m. UTC
Like the integer version, when op1 == op2 is known to be true the ranges are also equal. gcc/ChangeLog: * range-op-float.cc (foperator_equal::op1_range): Set range to range of op2. --- gcc/range-op-float.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gcc/range-op-float.cc b/gcc/range-op-float.cc index 4fbd96a7479..ad2fae578d2 100644 --- a/gcc/range-op-float.cc +++ b/gcc/range-op-float.cc @@ -252,7 +252,8 @@ foperator_equal::op1_range (frange &r, tree type, switch (get_bool_state (r, lhs, type)) { case BRS_TRUE: - r.set_varying (type); + // If it's true, the result is the same as OP2. + r = op2; // The TRUE side of op1 == op2 implies op1 is !NAN. r.set_nan (fp_prop::NO); break;