From patchwork Sun Jun 17 18:41:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 165348 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 D4652B70E5 for ; Mon, 18 Jun 2012 04:42:14 +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=1340563336; h=Comment: DomainKey-Signature:Received:Received:Received:Received: MIME-Version:Received:Received:In-Reply-To:References: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=DN5Gk0pM3FZIL9zhYZTzBuNK9/E=; b=AZg2jzHe0/Jm7v02ps9y7NRvmlxLiM7XZIfec4xCSBeajyWzSKaX/v4cDIzIQz 3vfg0iB/J1P7mXwLSh37N6u4U21AI2U7EEALBbJ7kA+pr0cuVdr16fUvXYvw6UPJ B0mXJDx6LgAy2sbcbfuvSV5eJwLpP1+I0tLMc/gyMourg= 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:In-Reply-To:References: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=WOvTCqzH2CnFAb+KfDuUeX6UpB3WzA3sLstmWFTk7nRVf9KrGvcHE8SOrAgG4G U6JJQNZRjWB775+Ico44dFS/TNmT488tyLE0+b5ZjKz8QujVIIaynVup0/iKfjDD lhpeXDHA7frCMUVtbu5rxpXUI7tV864LIXtr9I4XRkcYc=; Received: (qmail 31897 invoked by alias); 17 Jun 2012 18:42:12 -0000 Received: (qmail 31889 invoked by uid 22791); 17 Jun 2012 18:42:12 -0000 X-SWARE-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, KHOP_RCVD_TRUST, KHOP_THREADED, 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 18:41:56 +0000 Received: by yhjj56 with SMTP id j56so3464902yhj.20 for ; Sun, 17 Jun 2012 11:41:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.46.195 with SMTP id r43mr15164815yhb.86.1339958515765; Sun, 17 Jun 2012 11:41:55 -0700 (PDT) Received: by 10.147.111.19 with HTTP; Sun, 17 Jun 2012 11:41:55 -0700 (PDT) In-Reply-To: References: <1339793844-27442-1-git-send-email-rth@redhat.com> <1339793844-27442-4-git-send-email-rth@redhat.com> Date: Sun, 17 Jun 2012 20:41:55 +0200 Message-ID: Subject: Re: [PATCH 3/3] Handle const_vector in mulv4si3 for pre-sse4.1. From: Uros Bizjak To: Richard Henderson Cc: gcc-patches@gcc.gnu.org, rguenther@suse.de, hjl.tools@gmail.com 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 On Sun, Jun 17, 2012 at 8:37 PM, Uros Bizjak wrote: > Hello! > > Please note that you will probably hit PR33329, this is the reason > that we expand multiplications after reload. Please see [1] for > further explanation. There is gcc.target/i386/pr33329.c test to cover > this issue, but it is not effective anymore since the simplification > happens at tree level. > > [1] http://gcc.gnu.org/ml/gcc-patches/2007-09/msg00668.html Please adapt mentioned testcase with: --cut here-- --cut here-- Uros. Index: testsuite/gcc.target/i386/pr33329.c =================================================================== --- testsuite/gcc.target/i386/pr33329.c (revision 188703) +++ testsuite/gcc.target/i386/pr33329.c (working copy) @@ -5,12 +5,12 @@ void f (void) { - int tabs[8], tabcount; + int tabs[1024], tabcount; - for (tabcount = 1; tabcount <= 8; tabcount += 7) + for (tabcount = 1; tabcount <= 1024; tabcount += 7) { int i; - for (i = 0; i < 8; i++) + for (i = 0; i < 1024; i++) tabs[i] = i * 2; g (tabs); }