From patchwork Thu Oct 21 05:15:52 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 68519 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 AF891B7100 for ; Thu, 21 Oct 2010 16:16:06 +1100 (EST) Received: (qmail 28915 invoked by alias); 21 Oct 2010 05:16:00 -0000 Received: (qmail 28907 invoked by uid 22791); 21 Oct 2010 05:15:59 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL, BAYES_00, NO_DNS_FOR_FROM, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mga02.intel.com (HELO mga02.intel.com) (134.134.136.20) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 21 Oct 2010 05:15:54 +0000 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 20 Oct 2010 22:15:52 -0700 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([10.3.194.135]) by orsmga002.jf.intel.com with ESMTP; 20 Oct 2010 22:15:52 -0700 Received: by gnu-6.sc.intel.com (Postfix, from userid 500) id 4387D20E62; Wed, 20 Oct 2010 22:15:52 -0700 (PDT) Date: Wed, 20 Oct 2010 22:15:52 -0700 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Cc: Uros Bizjak Subject: PATCH: Add V8SI and V4DI to ssescalarmodesuffix Message-ID: <20101021051552.GA20291@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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 In gcc build directory, [hjl@gnu-6 gcc]$ grep ssescalarmodesuffix *.c insn-output.c: "vbroadcast\t{%1, %0|%0, %1}", insn-output.c: "vbroadcast\t{%1, %0|%0, %1}", [hjl@gnu-6 gcc]$ This patch fixes it. OK for trunk? Thanks. H.J. --- 2010-10-20 H.J. Lu * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI. diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index 283eee8..64622b2 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -117,8 +117,8 @@ [(SF "ss") (DF "sd") (V4SF "ps") (V2DF "pd") (V8SF "ps") (V4DF "pd") (V8SI "ps") (V4DI "pd")]) (define_mode_attr ssescalarmodesuffix - [(SF "ss") (DF "sd") (V4SF "ss") (V2DF "sd") (V8SF "ss") (V4DF "sd") - (V4SI "d")]) + [(SF "ss") (DF "sd") (V4SF "ss") (V2DF "sd") (V8SF "ss") (V8SI "ss") + (V4DF "sd") (V4SI "d") (V4DI "sd")]) ;; Mapping of the max integer size for xop rotate immediate constraint (define_mode_attr sserotatemax [(V16QI "7") (V8HI "15") (V4SI "31") (V2DI "63")])