From patchwork Tue Jan 10 20:57:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Law X-Patchwork-Id: 713434 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tykrK5qM8z9t1L for ; Wed, 11 Jan 2017 07:58:02 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="nvpccVuh"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=JQuud/5488Vvz7SnHV+Zg2/Rkd6NQ19HuqyIHWw/j8ejPFJzb9 19nRZDt53TGkixdRm+apCzY/B1kNgsyFCLA4gyOb3hShjbYe7feqrKcUssz+UJzw vFBFruhsDDUgiCxjmidi1snEIU7+fnp3TVHX+qjrNbSMMPhMxfp9VQVJc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=wsdZjJ5zytGaBPUshGLnt5XzPHI=; b=nvpccVuhwRYJ3cbsvYLz 5v5caa5WwBUb3IiC/yK2n4ebl7JcZOS2XpH0qpoaGFrZGHFBSjodm8n+bWpHLGdY A32TeJz6aopBTsdu4ylm8SpzmsNvOLSisBs9dwAUBB1oX1wHJgcEVhyWYTO0nj5N yyY+3kxN4upPF0Rp5k7sExg= Received: (qmail 50774 invoked by alias); 10 Jan 2017 20:57:53 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 50750 invoked by uid 89); 10 Jan 2017 20:57:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.1 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1423 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, 10 Jan 2017 20:57:43 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D96F321721 for ; Tue, 10 Jan 2017 20:57:42 +0000 (UTC) Received: from localhost.localdomain (ovpn-119-37.rdu2.redhat.com [10.10.119.37]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v0AKvgRs010459 for ; Tue, 10 Jan 2017 15:57:42 -0500 To: gcc-patches From: Jeff Law Subject: [PATCH] Add new test Message-ID: <9f7f1e6f-a0c2-9c8b-2d84-063ebed89a51@redhat.com> Date: Tue, 10 Jan 2017 13:57:40 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 X-IsSubscribed: yes pr77766 is a duplicate of pr78856. This just adds the test for pr77766 to the testsuite. Committing to the trunk. Jeff commit 2729592d26c48c6c2add94f4ee98bd4328eacf85 Author: law Date: Tue Jan 10 20:55:59 2017 +0000 PR tree-optimization/77766 PR tree-optimization/78856 * gcc.c-torture/execute/pr77766.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244287 138bc75d-0d04-0410-961f-82ee72b054a4 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index bc86b4f..009d32d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2017-01-10 Jeff Law + + PR tree-optimization/77766 + PR tree-optimization/78856 + * gcc.c-torture/execute/pr77766.c: New test. + 2016-01-10 Richard Biener PR tree-optimization/79034 diff --git a/gcc/testsuite/gcc.c-torture/execute/pr77766.c b/gcc/testsuite/gcc.c-torture/execute/pr77766.c new file mode 100644 index 0000000..f8f61ad --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/pr77766.c @@ -0,0 +1,28 @@ +char a; +short b, d = 5, h; +char c[1]; +int e, f = 4, g, j; +int main() { + int i; + for (; f; f = a) { + g = 0; + for (; g <= 32; ++g) { + i = 0; + for (; i < 3; i++) + while (1 > d) + if (c[b]) + break; + L: + if (j) + break; + } + } + e = 0; + for (; e; e = 0) { + d++; + for (; h;) + goto L; + } + return 0; +} +