From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 118372 invoked by alias); 1 Jun 2016 18:37:00 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 118323 invoked by uid 89); 1 Jun 2016 18:37:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_50,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=zr, Zr, sk:vsx_reg, fz X-HELO: gate.crashing.org Received: from gate.crashing.org (HELO gate.crashing.org) (63.228.1.57) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 01 Jun 2016 18:36:59 +0000 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.13.8) with ESMTP id u51IatJa003226; Wed, 1 Jun 2016 13:36:55 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id u51Iasgn003219; Wed, 1 Jun 2016 13:36:54 -0500 Date: Wed, 01 Jun 2016 18:37:00 -0000 From: Segher Boessenkool To: Michael Meissner , gcc-patches@gcc.gnu.org, David Edelsohn , Bill Schmidt Subject: Re: [PATCH], Add PowerPC ISA 3.0 MTVSRDD support Message-ID: <20160601183654.GB31838@gate.crashing.org> References: <20160531234955.GA5527@ibm-tiger.the-meissners.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160531234955.GA5527@ibm-tiger.the-meissners.org> User-Agent: Mutt/1.4.2.3i X-IsSubscribed: yes X-SW-Source: 2016-06/txt/msg00070.txt.bz2 On Tue, May 31, 2016 at 07:49:55PM -0400, Michael Meissner wrote: > This patch adds support to issue the MTVSRDD on 64-bit ISA 3.0 systems when the > compiler has a 64-bit value in a GPR, and it wants to create a vector that has > the 64-bit value in both sides of the 128-bit value. > ;; V2DF/V2DI splat > (define_insn "vsx_splat_" > - [(set (match_operand:VSX_D 0 "vsx_register_operand" "=wd,wd,wd,?,?,?") > + [(set (match_operand:VSX_D 0 "vsx_register_operand" "=,,we") > (vec_duplicate:VSX_D > - (match_operand: 1 "splat_input_operand" ",f,Z,,,Z")))] > + (match_operand: 1 "splat_input_operand" ",Z,r")))] > "VECTOR_MEM_VSX_P (mode)" > "@ > xxpermdi %x0,%x1,%x1,0 > - xxpermdi %x0,%x1,%x1,0 > lxvdsx %x0,%y1 > - xxpermdi %x0,%x1,%x1,0 > - xxpermdi %x0,%x1,%x1,0 > - lxvdsx %x0,%y1" > - [(set_attr "type" "vecperm,vecperm,vecload,vecperm,vecperm,vecload")]) > + mtvsrdd %x0,%1,%1" > + [(set_attr "type" "vecperm,vecload,mftgpr")]) It should use "b" instead of "r" for the mtvsrdd case. Okay for trunk with that change, after retesting. Okay for 6 later, too. Thanks, Segher