From patchwork Mon Jan 28 22:14:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans-Peter Nilsson X-Patchwork-Id: 216385 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 48A2A2C0092 for ; Tue, 29 Jan 2013 09:14:47 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1360016088; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Received:Received:Date:Message-Id:From:To:CC: In-reply-to:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=HwrwrQobJt0Zdh5Ccp4xXPvIjHk=; b=ByfKYBU3Oe3A2hU YrrGgmyxwbRkvqCVt9gSq2GOUvgJ48fSFGK/bQZhjGnhc2BZa/o/fh7AFiIfhleG VIXzPOpAGk1rIny5F360RNWdsIbrTwGsm7hzKcirO9Wb/jVghKIWxx1oldzfy9me Q74H1l3Ey43w3xlSgrqVrRiEM//I= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:Received:Received:Received:Date:Message-Id:From:To:CC:In-reply-to:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=VjTTe+OUUCtUH4DnStaMcBVP0Fyy+7SfGjtFgO2aZsKYAT1+/kGm7MWpQBR+rI 1683K76y7D9GPQECSZk+rEl23pd9s4rW0DAxtY5DjLMozogV4sTdFSAL2lVDQpwy t/UvihwUSLpEOjV8l626XKoNZHf7kM3gyE7/VA+nw3HBU=; Received: (qmail 2874 invoked by alias); 28 Jan 2013 22:14:42 -0000 Received: (qmail 2866 invoked by uid 22791); 28 Jan 2013 22:14:41 -0000 X-SWARE-Spam-Status: No, hits=-3.1 required=5.0 tests=AWL, BAYES_00, KHOP_SPAMHAUS_DROP, KHOP_THREADED, RCVD_IN_HOSTKARMA_NO, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from ra.se.axis.com (HELO ra.se.axis.com) (195.60.68.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 Jan 2013 22:14:27 +0000 Received: from localhost (localhost [127.0.0.1]) by ra.se.axis.com (Postfix) with ESMTP id B1CD72A35E; Mon, 28 Jan 2013 23:14:25 +0100 (CET) Received: from ra.se.axis.com ([127.0.0.1]) by localhost (ra.se.axis.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mt1k4Mesg-v0; Mon, 28 Jan 2013 23:14:24 +0100 (CET) Received: from thoth.se.axis.com (thoth.se.axis.com [10.0.2.173]) by ra.se.axis.com (Postfix) with ESMTP id 71FA311FAE; Mon, 28 Jan 2013 23:14:22 +0100 (CET) Received: from ignucius.se.axis.com (ignucius.se.axis.com [10.88.21.50]) by thoth.se.axis.com (Postfix) with ESMTP id 2E4C534197; Mon, 28 Jan 2013 23:14:22 +0100 (CET) Received: from ignucius.se.axis.com (localhost [127.0.0.1]) by ignucius.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) with ESMTP id r0SMEMHI013980; Mon, 28 Jan 2013 23:14:22 +0100 Received: (from hp@localhost) by ignucius.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) id r0SMELBx013976; Mon, 28 Jan 2013 23:14:21 +0100 Date: Mon, 28 Jan 2013 23:14:21 +0100 Message-Id: <201301282214.r0SMELBx013976@ignucius.se.axis.com> From: Hans-Peter Nilsson To: zadeck@naturalbridge.com CC: gcc-patches@gcc.gnu.org, rdsandiford@googlemail.com, marc.glisse@inria.fr In-reply-to: <5105CE31.7040307@naturalbridge.com> (message from Kenneth Zadeck on Mon, 28 Jan 2013 02:02:41 +0100) Subject: Re: question about section 10.12 MIME-Version: 1.0 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org > From: Kenneth Zadeck > Date: Mon, 28 Jan 2013 02:02:41 +0100 > this looks good to me. does your patch also address the vec_concat > issue that marc raised? You mean the issue being "same thing there"? I can confirm that (I've stumbled upon) the same issue being there (i.e. similarly applies to scalars). But nope, there's no cross-reference, so the effective wording needs to be added there too. I also noticed the parameter/s misleadingly being keyed to "vec" and fill-paragraphed the paragraph. Something like this seems obvious: (Oops, noticed gcc@ was in CC, changing to gcc-patches@.) * doc/rtl.texi (vec_concat, vec_duplicate): Mention that scalars are valid operands. brgds, H-P Index: doc/rtl.texi =================================================================== --- doc/rtl.texi (revision 195514) +++ doc/rtl.texi (working copy) @@ -2627,17 +2627,18 @@ The result mode @var{m} is either the su with that element submode (if multiple subparts are selected). @findex vec_concat -@item (vec_concat:@var{m} @var{vec1} @var{vec2}) +@item (vec_concat:@var{m} @var{x1} @var{x2}) Describes a vector concat operation. The result is a concatenation of the -vectors @var{vec1} and @var{vec2}; its length is the sum of the lengths of -the two inputs. +vectors or scalars @var{x1} and @var{x2}; its length is the sum of the +lengths of the two inputs. @findex vec_duplicate -@item (vec_duplicate:@var{m} @var{vec}) -This operation converts a small vector into a larger one by duplicating the -input values. The output vector mode must have the same submodes as the -input vector mode, and the number of output parts must be an integer multiple -of the number of input parts. +@item (vec_duplicate:@var{m} @var{x}) +This operation converts a scalar into a vector or a small vector into a +larger one by duplicating the input values. The output vector mode must have +the same submodes as the input vector mode or the scalar modes, and the +number of output parts must be an integer multiple of the number of input +parts. @end table