From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16121 invoked by alias); 8 Jan 2019 01:43:06 -0000 Mailing-List: contact jit-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: Sender: jit-owner@gcc.gnu.org Received: (qmail 14879 invoked by uid 89); 8 Jan 2019 01:43:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.100.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=n1, Hx-languages-length:1550 X-Spam-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_HELO_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-Spam-User: qpsmtpd, 2 recipients X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 08 Jan 2019 01:43:04 +0000 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7FDE088E50; Tue, 8 Jan 2019 01:43:03 +0000 (UTC) Received: from c64.redhat.com (ovpn-112-27.phx2.redhat.com [10.3.112.27]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1E7E0776E8; Tue, 8 Jan 2019 01:43:01 +0000 (UTC) From: David Malcolm To: =?UTF-8?q?Marc=20Nieper-Wi=C3=9Fkirchen?= , jit@gcc.gnu.org, gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [committed] Fix jit test case (PR jit/88747) Date: Tue, 01 Jan 2019 00:00:00 -0000 Message-Id: <1546914724-34733-1-git-send-email-dmalcolm@redhat.com> In-Reply-To: <1546893285.7788.47.camel@redhat.com> References: <1546893285.7788.47.camel@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Tue, 08 Jan 2019 01:43:03 +0000 (UTC) X-IsSubscribed: yes X-SW-Source: 2019-q1/txt/msg00007.txt.bz2 Amongst other changes, r266077 updated value_range_base::dump so that it additionally prints the type. This broke an assertion within the jit testsuite, in jit.dg/test-sum-of-squares.c, which was checking for: ": [-INF, n_" but was now getting: ": signed int [-INF, n_" The test is merely intended as a simple verification that we can read dump files via gcc_jit_context_enable_dump. This patch loosens the requirements on the dump so that it should work with either version of value_range_base::dump. Verified on x86_64-pc-linux-gnu, removing 6 FAIL results from jit.sum and taking it from 6479 to 10288 PASS results. Committed to trunk as r267671. gcc/testsuite/ChangeLog: PR jit/88747 * jit.dg/test-sum-of-squares.c (verify_code): Update expected vrp dump to reflect r266077. --- gcc/testsuite/jit.dg/test-sum-of-squares.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/jit.dg/test-sum-of-squares.c b/gcc/testsuite/jit.dg/test-sum-of-squares.c index 46fd5c2..f095f41 100644 --- a/gcc/testsuite/jit.dg/test-sum-of-squares.c +++ b/gcc/testsuite/jit.dg/test-sum-of-squares.c @@ -137,6 +137,6 @@ verify_code (gcc_jit_context *ctxt, gcc_jit_result *result) bounds of the iteration variable. Specifically, verify that some variable is known to be in the range negative infinity to some expression based on param "n" (actually n-1). */ - CHECK_STRING_CONTAINS (dump_vrp1, ": [-INF, n_"); + CHECK_STRING_CONTAINS (dump_vrp1, "[-INF, n_"); free (dump_vrp1); } -- 1.8.5.3