This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: question about section 10.12


this looks good to me. does your patch also address the vec_concat issue that marc raised?
On 01/26/2013 09:59 PM, Hans-Peter Nilsson wrote:
From: Kenneth Zadeck <zadeck@naturalbridge.com>
Date: Sat, 26 Jan 2013 16:19:40 +0100
the definition of vec_duplicate in section 10.12 seems to restrictive.

i have seen examples where the "small vector" is really a scalar. Should
the doc be "small vector or scalar"?
Yes.  This patch has been sitting in a tree of mine forever;
it's just that the tree is a read-only-access-tree and every
time I've re-discovered it, I've been distracted before moving
it to a write-access-tree and committing as obvious...  And
right now when being reminded, I don't have access to one for
another 36h.  Maybe it's a curse. :)  (N.B. if you prefer your
own wording I don't mind; just offering a supporting
observation.)

	* doc/rtl.texi (vec_duplicate): Mention that a scalar
	can be a valid operand.

Index: doc/rtl.texi
===================================================================
--- doc/rtl.texi (revision 195491)
+++ doc/rtl.texi (working copy)
@@ -2634,7 +2634,8 @@ 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
+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, and the number of output parts must be an integer multiple
of the number of input parts.


brgds, H-P


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]