From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5642 invoked by alias); 2 Dec 2012 19:35:56 -0000 Received: (qmail 5447 invoked by uid 22791); 2 Dec 2012 19:35:55 -0000 X-SWARE-Spam-Status: No, hits=-5.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-pa0-f47.google.com (HELO mail-pa0-f47.google.com) (209.85.220.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 02 Dec 2012 19:35:50 +0000 Received: by mail-pa0-f47.google.com with SMTP id fa10so1254983pad.20 for ; Sun, 02 Dec 2012 11:35:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.66.77.74 with SMTP id q10mr20061917paw.81.1354476950124; Sun, 02 Dec 2012 11:35:50 -0800 (PST) Received: by 10.66.246.232 with HTTP; Sun, 2 Dec 2012 11:35:49 -0800 (PST) In-Reply-To: References: Date: Sun, 02 Dec 2012 19:35:00 -0000 Message-ID: Subject: Re: Simplify a VEC_SELECT from one half of a VEC_CONCAT From: Uros Bizjak To: Marc Glisse Cc: gcc-patches@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 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 X-SW-Source: 2012-12/txt/msg00082.txt.bz2 On Sun, Dec 2, 2012 at 6:39 PM, Marc Glisse wrote: > While I was there, I decided to improve another bit of VEC_SELECT > simplification (this supersedes the patch in the father of this message). > > Adding Uros in Cc: because I am touching the x86 backend. Sorry to add yet > another insn variant, but I don't see how we can avoid it here. > > The x86 and RTL parts are independent, but the testcases need both. > > bootstrap+testsuite on x86_64-linux. (for next stage1 I assume) > > 2012-12-02 Marc Glisse > > PR target/43147 > PR target/44551 > gcc/ > * simplify-rtx.c (simplify_binary_operation_1) : > Improve VEC_SELECT and VEC_CONCAT subcases. > * config/i386/sse.md (*sse_shufps__single): New. > > gcc/testsuite/ > * gcc.target/i386/pr43147.c: New testcase. > * gcc.target/i386/pr44551.c: New testcase. x86 part and testcases are OK, together with RTL part. I will leave to RTL maintainer if the combined patch is still OK for 4.8. Thanks, Uros.