From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1011) id 047B23857030; Fri, 18 Sep 2020 23:02:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 047B23857030 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1600470151; bh=lSwo0POcJ6+SbPn849a3VCiokReN0KCnPxqFrwErV+M=; h=From:To:Subject:Date:From; b=sB9XgA+bPms29a8bNdtUOVdAsLk4EXoChAoCTsFhs7jVBMr474m1zZwcYsOa7RWus N0lArC31CIV35LM7ACXYxVJx0TIy2ItXeaSMqwmJJv5yVP4Exyn42K9t7luOO+Kwz5 MFuDxDKJysWtZr2128paLB55WL7NU6NBXy4Jk6BQ= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Andrew Macleod To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/aldyh/heads/ranger-staging)] adjust test case for new EVRP X-Act-Checkin: gcc X-Git-Author: Andrew MacLeod X-Git-Refname: refs/users/aldyh/heads/ranger-staging X-Git-Oldrev: 53fbd91897dde46b5be8e8e155354f8e421e65ff X-Git-Newrev: 5880b5a9dfadd903995c3328a53b8a3295133434 Message-Id: <20200918230231.047B23857030@sourceware.org> Date: Fri, 18 Sep 2020 23:02:30 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Sep 2020 23:02:31 -0000 https://gcc.gnu.org/g:5880b5a9dfadd903995c3328a53b8a3295133434 commit 5880b5a9dfadd903995c3328a53b8a3295133434 Author: Andrew MacLeod Date: Fri Sep 18 19:02:01 2020 -0400 adjust test case for new EVRP Diff: --- gcc/testsuite/gcc.dg/pr81192.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/pr81192.c b/gcc/testsuite/gcc.dg/pr81192.c index 0049f371b3d..71bbc13a0e9 100644 --- a/gcc/testsuite/gcc.dg/pr81192.c +++ b/gcc/testsuite/gcc.dg/pr81192.c @@ -1,4 +1,20 @@ -/* { dg-options "-Os -fdump-tree-pre-details" } */ +/* { dg-options "-Os -fdump-tree-pre-details -fdisable-tree-evrp" } */ + +/* Disable tree-evrp because the new version of evrp sees + : + if (j_8(D) != 2147483647) + goto ; [50.00%] + else + goto ; [50.00%] + : + iftmp.2_11 = j_8(D) + 1; + : + # iftmp.2_12 = PHI + +EVRP now recognizes a constant can be propagated into the 3->5 edge and +produces + # iftmp.2_12 = PHI <2147483647(3), iftmp.2_11(4)> +which causes the situation being tested to dissapear before we get to PRE. */ #if __SIZEOF_INT__ == 2 #define unsigned __UINT32_TYPE__