From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18677 invoked by alias); 26 Aug 2014 12:44:10 -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 18667 invoked by uid 89); 26 Aug 2014 12:44:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail2-relais-roc.national.inria.fr Received: from mail2-relais-roc.national.inria.fr (HELO mail2-relais-roc.national.inria.fr) (192.134.164.83) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Tue, 26 Aug 2014 12:44:07 +0000 Received: from stedding.saclay.inria.fr (HELO stedding) ([193.55.250.194]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-SHA; 26 Aug 2014 14:44:04 +0200 Received: from glisse (helo=localhost) by stedding with local-esmtp (Exim 4.84) (envelope-from ) id 1XMG6W-0002H0-DJ; Tue, 26 Aug 2014 14:44:04 +0200 Date: Tue, 26 Aug 2014 12:44:00 -0000 From: Marc Glisse To: gcc-patches@gcc.gnu.org cc: Richard Henderson Subject: Re: [RTL, i386] Use subreg instead of UNSPEC_CAST In-Reply-To: Message-ID: References: <5148D1FC.7000708@redhat.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-SW-Source: 2014-08/txt/msg02394.txt.bz2 Ping? On Sat, 26 Jul 2014, Marc Glisse wrote: > Hello, > > any comment on this patch? > https://gcc.gnu.org/ml/gcc-patches/2014-06/msg00769.html > > On Tue, 10 Jun 2014, Marc Glisse wrote: > >> On Tue, 19 Mar 2013, Richard Henderson wrote: >> >>> I'm not fond of this, primarily because I believe the pattern should >>> not exist at all. >> >> One year later, new try. Tweaking the pattern, I ended up with a copy of >> the mov pattern (the subreg is generated automatically when the modes don't >> match), so I just removed it. I know the comment in emit-rtl.c says >> splitters are a better way forward than subregs, but I haven't managed with >> splitters while the subreg patch is very simple :-) I added a -O0 testcase >> because when I was experimenting I had many versions that worked for -O2 >> but ICEd at -O0 (and vice versa), but it might be redundant with some other >> tests. >> >> Bootstrap+testsuite on x86_64-linux-gnu. >> >> 2014-06-10 Marc Glisse >> >> PR target/50829 >> gcc/ >> * config/i386/sse.md (enum unspec): Remove UNSPEC_CAST. >> (avx__): Remove. >> * config/i386/i386.c (builtin_description) [__builtin_ia32_si256_si, >> __builtin_ia32_ps256_ps, __builtin_ia32_pd256_pd]: Replace the >> removed insn with mov. >> * emit-rtl.c (validate_subreg): Allow vector-vector subregs. >> >> gcc/testsuite/ >> * gcc.target/i386/pr50829-1.c: New file. >> * gcc.target/i386/pr50829-2.c: New file. -- Marc Glisse