From patchwork Sun Jun 17 22:16:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 165354 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]) by ozlabs.org (Postfix) with SMTP id 6AD9CB72B2 for ; Mon, 18 Jun 2012 08:16:42 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1340576204; h=Comment: DomainKey-Signature:Received:Received:Received:Received: MIME-Version:Received:Received:Date:Message-ID:Subject:From:To: Cc:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=fW1Z2r8 9qu4CWOIgqhqBSC64cck=; b=xtLYGSiRzIfcudKDrqmmzpHbELGW7cVX1NVhhxd gqi1nwMgqrjLHOkDLuUuVFjjvdb49CMHMYbhKWviVCqYta/FUSQD23tb+/EtH8+t UvQBM44M22YBlstQHfjjJyFmfz4cFIcr3SpeWSIHdWHdrM1d11T8tseSkW2rFZ+1 2+tQ= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Cc:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=JRW0FFpeC8o3Cuo3ujmFgi2NnqRpzho3W+h4l/JDHAdYjFbpVSMFFFZdhqmle/ rEoBRoVJcPeH5O7R2m70c4lfc/bcdb36rVFFtmSvxkG7a9meQ+HXKdPEWkaGLBgT lB8o0qozywDRjbaAR95BIkHeYV0zrVvJFbcL3u6riVd9s=; Received: (qmail 3540 invoked by alias); 17 Jun 2012 22:16:39 -0000 Received: (qmail 3528 invoked by uid 22791); 17 Jun 2012 22:16:39 -0000 X-SWARE-Spam-Status: No, hits=-4.1 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, TW_ZJ X-Spam-Check-By: sourceware.org Received: from mail-yw0-f47.google.com (HELO mail-yw0-f47.google.com) (209.85.213.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 17 Jun 2012 22:16:26 +0000 Received: by yhjj56 with SMTP id j56so3503297yhj.20 for ; Sun, 17 Jun 2012 15:16:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.189.104 with SMTP id b68mr16036416yhn.70.1339971385923; Sun, 17 Jun 2012 15:16:25 -0700 (PDT) Received: by 10.147.111.19 with HTTP; Sun, 17 Jun 2012 15:16:25 -0700 (PDT) Date: Mon, 18 Jun 2012 00:16:25 +0200 Message-ID: Subject: [PATCH, testsuite]: Increase array size in gcc.target/i386/pr33329.c From: Uros Bizjak To: gcc-patches@gcc.gnu.org Cc: Richard Henderson 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 Hello! gcc.target/i386/pr33329.c is fully optimized with tree optimizers to a constant. Attached patch increases array size to avoid over-optimization and to perform intended RTL optimization check. 2012-06-17 Uros Bizjak * gcc.target/i386/pr33329.c (f): Increase tabs array to 1024. Tested on x86_64-pc-linux-gnu {,-m32}, committed to mainline SVN. Uros. } Index: gcc.target/i386/pr33329.c =================================================================== --- gcc.target/i386/pr33329.c (revision 188714) +++ gcc.target/i386/pr33329.c (working copy) @@ -5,11 +5,11 @@ void f (void) { - int tabs[8], tabcount; + int tabs[1024], tabcount; for (tabcount = 1; tabcount <= 8; tabcount += 7) { int i; - for (i = 0; i < 8; i++) + for (i = 0; i < 1024; i++) tabs[i] = i * 2; g (tabs);