From patchwork Wed Aug 3 22:37:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 655626 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 3s4SdJ47XJz9sDk for ; Thu, 4 Aug 2016 08:37:54 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=sbJFkrg8; 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 :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=dP0WnD8eNLNTns5URLgxp+uQVRHP60Lzuh4KdHrNxOObsL UQWM+woasr1fsDWSKSTdVJd4Ma9ha5jfbqIS2ckdlD8OTIHka+vBV1YrVY/v9HUx c4DDURaOOg3N0lmNR227CV8CPjA2mQFZPaXRdbauHG7ubYFEH7nAZUmHptQvM= 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 :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=pUOJN1hz5PAiL28YJC8dVrW0NbU=; b=sbJFkrg85xT68wj7Dblc ZomJjK2kOaPQuhrSEFIM3EqkveD0vwIKzgfRkZQz52wD+uwQwocjC9nHUWfNYDGb EOUhOjeHKNPdUs4uiP+vZbvbnE5hGpGsgbqL72Gx1Ln8wzJF0on2NYQ6uH3JXw6u Cgi4WP/JlexFsJJHTG7NIWA= Received: (qmail 130907 invoked by alias); 3 Aug 2016 22:37:45 -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 130895 invoked by uid 89); 3 Aug 2016 22:37:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=no version=3.3.2 spammy= X-HELO: mail-lf0-f42.google.com Received: from mail-lf0-f42.google.com (HELO mail-lf0-f42.google.com) (209.85.215.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 03 Aug 2016 22:37:33 +0000 Received: by mail-lf0-f42.google.com with SMTP id g62so171153463lfe.3 for ; Wed, 03 Aug 2016 15:37:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=+VVawg7eoQl3+gTCJMqXh40aEA0bBFMeOyBKsnuFYo0=; b=dIr5/UQbqjymW+CLdKxjqFkAOVioiqbBo51u0OX5k3VZ9TuPFwjC5x2o0JV8g8E6Wf t4QpL6N32EQ8VW1XGlGoLX2BvNW3/2JTckDE0S3mXgcIBlORA+FxRKlokpoIu4kEwuFB rNtXrpLoT8DkjUL373Bo4LVo/0w4mW57BrZ4BN5nt0H8pIVPohqAh/VRsuGmfC7lfruc n9if62f+UYgtXNmE1rlr3mCmoNDzbdaAwzue5dyR1Hv9UOfRqXzWziXiYm4HhjcV3TYT q9XhO127fTrggxD2oCcQ8rhZxyJ90UvK5Ix+w5ilAp16JCQ40whdJIppKhYLwwIa1QX6 VCMg== X-Gm-Message-State: AEkoouucvC6Cqk3MGqsR6SFfsnO05j1maPsN08RasG6nbXQn7RdYnowJ9djjTfrg7Q/sNBqG5Ct26lRuXmHYWQ== X-Received: by 10.25.24.153 with SMTP id 25mr19852326lfy.103.1470263849808; Wed, 03 Aug 2016 15:37:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.42.4 with HTTP; Wed, 3 Aug 2016 15:37:29 -0700 (PDT) From: Andrew Pinski Date: Wed, 3 Aug 2016 15:37:29 -0700 Message-ID: Subject: [Committed] Add testcase that ICEs after loop splitting patch To: GCC Patches X-IsSubscribed: yes Hi, I committed a testcase that ICEs after applying "Gimple loop splitting v2" patch to a GCC 6. The IV and the bounds were two different types which was causing the ICE to happen. Thanks, Andrew Pinski ChangeLog: * gcc.c-torture/compile/20160802-1.c: New testcase. Index: testsuite/gcc.c-torture/compile/20160802-1.c =================================================================== --- testsuite/gcc.c-torture/compile/20160802-1.c (revision 0) +++ testsuite/gcc.c-torture/compile/20160802-1.c (revision 0) @@ -0,0 +1,13 @@ +long g (long width, unsigned long byte) { + long r_hi = 0; + unsigned long r_lo = 0; + int s; + for (s = 0; s < width; s += 8) + { + int d = width - s - 8; + if (s < (8 * 8)) + r_hi |= byte << (d - (8 * 8)); + } + return r_lo + r_hi; +} + Index: testsuite/ChangeLog =================================================================== --- testsuite/ChangeLog (revision 239098) +++ testsuite/ChangeLog (working copy) @@ -1,3 +1,7 @@ +2016-08-03 Andrew Pinski + + * gcc.c-torture/compile/20160802-1.c: New testcase. + 2016-08-03 Fritz Reese * gfortran.dg/dec_intrinsic_ints.f90: New testcase.