From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6072 invoked by alias); 30 Sep 2014 20:37:35 -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 6057 invoked by uid 89); 30 Sep 2014 20:37:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 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; Tue, 30 Sep 2014 20:37:32 +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 s8UKbNZ6024992; Tue, 30 Sep 2014 15:37:23 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id s8UKbMtR024991; Tue, 30 Sep 2014 15:37:22 -0500 Date: Tue, 30 Sep 2014 20:37:00 -0000 From: Segher Boessenkool To: Bill Schmidt Cc: gcc-patches@gcc.gnu.org, dje.gcc@gmail.com Subject: Re: [PATCH, rs6000] Generate LE code for vec_lvsl and vec_lvsr that is compatible with BE code Message-ID: <20140930203722.GA23788@gate.crashing.org> References: <1412029574.2986.42.camel@gnopaine> <20140930145024.GB29948@gate.crashing.org> <1412090663.2986.50.camel@gnopaine> <20140930160444.GC29948@gate.crashing.org> <1412093919.2986.54.camel@gnopaine> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1412093919.2986.54.camel@gnopaine> User-Agent: Mutt/1.4.2.3i X-IsSubscribed: yes X-SW-Source: 2014-09/txt/msg02698.txt.bz2 On Tue, Sep 30, 2014 at 11:18:39AM -0500, Bill Schmidt wrote: > > I meant generating a sequence that just "falls out" as you want it after > > optimisation. E.g. lvsr;vnot;vand(splat8(31));vperm can have the vand > > absorbed by the vperm. But that splat is nasty when not optimised away :-( > > Especially since splat8(31) requires vsub(splat8(15),splat8(-16))... vspltisb vT,-5 ; vsrb vD,vT,vT # :-) > To get something that is correct with and without feeding a vperm and > actually performs well just ain't happening here... Yeah. Segher