From patchwork Thu Oct 13 16:21:25 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 119566 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 32312B6F80 for ; Fri, 14 Oct 2011 03:21:53 +1100 (EST) Received: (qmail 11357 invoked by alias); 13 Oct 2011 16:21:46 -0000 Received: (qmail 11338 invoked by uid 22791); 13 Oct 2011 16:21:44 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 13 Oct 2011 16:21:29 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p9DGLRC2014291 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 13 Oct 2011 12:21:27 -0400 Received: from tyan-ft48-01.lab.bos.redhat.com (tyan-ft48-01.lab.bos.redhat.com [10.16.42.4]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p9DGLQkD027669 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 13 Oct 2011 12:21:26 -0400 Received: from tyan-ft48-01.lab.bos.redhat.com (tyan-ft48-01.lab.bos.redhat.com [127.0.0.1]) by tyan-ft48-01.lab.bos.redhat.com (8.14.4/8.14.4) with ESMTP id p9DGLQF1029804; Thu, 13 Oct 2011 18:21:26 +0200 Received: (from jakub@localhost) by tyan-ft48-01.lab.bos.redhat.com (8.14.4/8.14.4/Submit) id p9DGLP1c029802; Thu, 13 Oct 2011 18:21:25 +0200 Date: Thu, 13 Oct 2011 18:21:25 +0200 From: Jakub Jelinek To: Richard Henderson , Uros Bizjak Cc: gcc-patches@gcc.gnu.org Subject: [PATCH] vec_set for 32-byte vectors Message-ID: <20111013162125.GQ2210@tyan-ft48-01.lab.bos.redhat.com> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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 Hi! As noted by Kirill Yukhin (and what lead to the previous tree-ssa.c patch), vec_set wasn't wired for 32-byte vectors. Although ix86_expand_vector_set handles 32-byte vectors just fine (even for AVX and integer vectors), without the expander we'd force things into memory etc. Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? 2011-10-13 Jakub Jelinek * config/i386/sse.md (vec_set): Change V_128 iterator mode to V. Jakub --- gcc/config/i386/sse.md.jj 2011-10-13 12:26:13.000000000 +0200 +++ gcc/config/i386/sse.md 2011-10-13 14:50:15.000000000 +0200 @@ -3786,7 +3786,7 @@ (define_split }) (define_expand "vec_set" - [(match_operand:V_128 0 "register_operand" "") + [(match_operand:V 0 "register_operand" "") (match_operand: 1 "register_operand" "") (match_operand 2 "const_int_operand" "")] "TARGET_SSE"