extend.texi (Vector Extensions): Document that bitwise operations also work on vectors.
authorGeoffrey Keating <geoffk@apple.com>
Wed, 10 Dec 2003 22:33:47 +0000 (22:33 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Wed, 10 Dec 2003 22:33:47 +0000 (22:33 +0000)
* doc/extend.texi (Vector Extensions): Document that bitwise
operations also work on vectors.

From-SVN: r74511

gcc/ChangeLog
gcc/doc/extend.texi

index 32fa6de..e37bc27 100644 (file)
@@ -1,3 +1,8 @@
+2003-12-10  Geoffrey Keating  <geoffk@apple.com>
+
+       * doc/extend.texi (Vector Extensions): Document that bitwise
+       operations also work on vectors.
+
 2003-12-09  Robert Schiele  <rschiele@uni-mannheim.de>
 
        PR other/10819
index 535616b..4afe784 100644 (file)
@@ -4727,8 +4727,8 @@ architecture does not allow for this specific SIMD type, gcc will
 produce code that uses 4 @code{SIs}.
 
 The types defined in this manner can be used with a subset of normal C
-operations.  Currently, gcc will allow using the following operators on
-these types: @code{+, -, *, /, unary minus}@.
+operations.  Currently, gcc will allow using the following operators
+on these types: @code{+, -, *, /, unary minus, ^, |, &, ~}@.
 
 The operations behave like C++ @code{valarrays}.  Addition is defined as
 the addition of the corresponding elements of the operands.  For
@@ -4744,9 +4744,10 @@ v4si a, b, c;
 c = a + b;
 @end example
 
-Subtraction, multiplication, and division operate in a similar manner.
-Likewise, the result of using the unary minus operator on a vector type
-is a vector whose elements are the negative value of the corresponding
+Subtraction, multiplication, division, and the logical operations
+operate in a similar manner.  Likewise, the result of using the unary
+minus or complement operators on a vector type is a vector whose
+elements are the negative or complemented values of the corresponding
 elements in the operand.
 
 You can declare variables and use them in function calls and returns, as