From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1040 invoked by alias); 2 Sep 2011 19:52:46 -0000 Received: (qmail 1031 invoked by uid 22791); 2 Sep 2011 19:52:45 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 02 Sep 2011 19:52:32 +0000 Received: (qmail 16320 invoked from network); 2 Sep 2011 19:52:31 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 2 Sep 2011 19:52:31 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.74) (envelope-from ) id 1QzZmw-00072P-1f; Fri, 02 Sep 2011 19:52:30 +0000 Date: Fri, 02 Sep 2011 19:52:00 -0000 From: "Joseph S. Myers" To: Artem Shinkarov cc: Richard Guenther , Duncan Sands , gcc-patches@gcc.gnu.org Subject: Re: Vector shuffling In-Reply-To: Message-ID: References: <4E5DF23A.1080309@free.fr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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: 2011-09/txt/msg00200.txt.bz2 On Fri, 2 Sep 2011, Artem Shinkarov wrote: > Joseph, I don't understand this comment. I have 2 or 3 arguments in > the VEC_SHUFFLE_EXPR and any of them can be C_MAYBE_CONST_EXPR, Yes. > so I > need to wrap mask (the last argument) to avoid the following failure: No. You need to fold it (c_fully_fold) to eliminate any C_MAYBE_CONST_EXPR it contains, but you shouldn't need to wrap the result of folding in a SAVE_EXPR. -- Joseph S. Myers joseph@codesourcery.com