> From: Kenneth Zadeck <zad...@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

Reply via email to