From patchwork Wed Jan 17 11:05:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 862205 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-471458-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="V4KJIeHk"; dkim-atps=neutral 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 3zM44w69LRz9sDB for ; Wed, 17 Jan 2018 22:05:34 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:reply-to:mime-version:content-type; q=dns; s=default; b=rG3NWwxrJWxFNukvLLJ6PkDJNp4tpmE9ljikVmCwLqI +uAKDU6kB8EhcTUthmbDJn/M6rjwDkJNFjGPUWa7luZorTDJDs9a6e8K/t2XZSJR ZxH376CjgmvGYjKonw7N+hOpIaP4wb9NhKzVvitbb/XAtVZRgUTIHumqz55zKrK8 = 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:date :from:to:subject:message-id:reply-to:mime-version:content-type; s=default; bh=FCSex9KAfvuWeIKSYw/uW2Hk46Y=; b=V4KJIeHkJ9hr56rTj Kw55ftprVoOurWjh4pX/2UWF/sYieOu/Dcw/0p1jWyCG+fOgYzgJw8QFdqoKzW83 OcUee2FMAP3dXcyrkxPvIw0KuulaGcxvbfaKcyxTsTdBU9kuYKCxUE5QxSeiiS6I oWF3INpVOXCbVNzqNSnAyeNQZ4= Received: (qmail 25682 invoked by alias); 17 Jan 2018 11:05:26 -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 25419 invoked by uid 89); 17 Jan 2018 11:05:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.4 required=5.0 tests=BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, KAM_NUMSUBJECT, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=b, c 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; Wed, 17 Jan 2018 11:05:25 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D658FC099423 for ; Wed, 17 Jan 2018 11:05:23 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-117-22.ams2.redhat.com [10.36.117.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 633C36375E for ; Wed, 17 Jan 2018 11:05:22 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id w0HB5KND002387 for ; Wed, 17 Jan 2018 12:05:20 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id w0HB5JFY002386 for gcc-patches@gcc.gnu.org; Wed, 17 Jan 2018 12:05:19 +0100 Date: Wed, 17 Jan 2018 12:05:19 +0100 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Subject: [committed] Add testcase for PR rtl-optimization/83771 Message-ID: <20180117110519.GS2063@tucnak> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.1 (2017-09-22) X-IsSubscribed: yes Hi! This testcase got fixed with Honza's PR middle-end/83575 fix r256479, so I've just added a testcase after testing it on x86_64/i686-linux and committed as obvious, so we can close the PR. 2018-01-17 Jakub Jelinek PR rtl-optimization/83771 * gcc.dg/pr83771.c: New test. Jakub --- gcc/testsuite/gcc.dg/pr83771.c.jj 2018-01-17 11:56:01.097820393 +0100 +++ gcc/testsuite/gcc.dg/pr83771.c 2018-01-17 11:55:54.093819292 +0100 @@ -0,0 +1,19 @@ +/* PR rtl-optimization/83771 */ +/* { dg-do compile } */ +/* { dg-options "-O3 -fmodulo-sched -fno-ssa-phiopt" } */ + +long int a; +int b; +int foo (int); + +void +bar (void) +{ + int c; + do + { + c = a / (!!b == 1); + c = !!c + 1; + } + while (foo (c) < 1); +}