From patchwork Fri Oct 14 03:43:24 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 119684 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 67AA0B6FA6 for ; Fri, 14 Oct 2011 14:44:25 +1100 (EST) Received: (qmail 15577 invoked by alias); 14 Oct 2011 03:44:10 -0000 Received: (qmail 15452 invoked by uid 22791); 14 Oct 2011 03:44:07 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-gy0-f175.google.com (HELO mail-gy0-f175.google.com) (209.85.160.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 14 Oct 2011 03:43:47 +0000 Received: by gyc15 with SMTP id 15so830799gyc.20 for ; Thu, 13 Oct 2011 20:43:47 -0700 (PDT) Received: by 10.150.131.1 with SMTP id e1mr7003453ybd.37.1318563827167; Thu, 13 Oct 2011 20:43:47 -0700 (PDT) Received: from localhost.localdomain (c-71-227-161-214.hsd1.wa.comcast.net. [71.227.161.214]) by mx.google.com with ESMTPS id 16sm5645504ant.10.2011.10.13.20.43.46 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Oct 2011 20:43:46 -0700 (PDT) From: rth@redhat.com To: gcc-patches@gcc.gnu.org Cc: davem@davemloft.net, dje.gcc@gmail.com, Richard Henderson Subject: [PATCH 5/6] rs6000: Fix typo in rs6000_expand_vector_init Date: Thu, 13 Oct 2011 20:43:24 -0700 Message-Id: <1318563805-7481-6-git-send-email-rth@redhat.com> In-Reply-To: <1318563805-7481-1-git-send-email-rth@redhat.com> References: <1318563805-7481-1-git-send-email-rth@redhat.com> 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 From: Richard Henderson Of course we don't support vectors of size <= 4. We're supposed to be checking the vector element size. --- gcc/config/rs6000/rs6000.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 4fd2192..aee976c 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -4758,7 +4758,7 @@ rs6000_expand_vector_init (rtx target, rtx vals) /* Store value to stack temp. Load vector element. Splat. However, splat of 64-bit items is not supported on Altivec. */ - if (all_same && GET_MODE_SIZE (mode) <= 4) + if (all_same && GET_MODE_SIZE (inner_mode) <= 4) { mem = assign_stack_temp (mode, GET_MODE_SIZE (inner_mode), 0); emit_move_insn (adjust_address_nv (mem, inner_mode, 0),