aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2003-12-10 22:33:47 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2003-12-10 22:33:47 +0000
commit3a3e1600fa938451b38ff3c7383e76537241eb40 (patch)
treeae8444d8d4f03ef24e864f239b002f8c19c0d00a /gcc
parent9f503dd352f5dd26e32d9aa150b8a466449cf815 (diff)
downloadgcc-3a3e1600fa938451b38ff3c7383e76537241eb40.zip
gcc-3a3e1600fa938451b38ff3c7383e76537241eb40.tar.gz
gcc-3a3e1600fa938451b38ff3c7383e76537241eb40.tar.bz2
extend.texi (Vector Extensions): Document that bitwise operations also work on vectors.
* doc/extend.texi (Vector Extensions): Document that bitwise operations also work on vectors. From-SVN: r74511
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/doc/extend.texi11
2 files changed, 11 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 32fa6de..e37bc277 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 535616b..4afe784 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -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