From 3a3e1600fa938451b38ff3c7383e76537241eb40 Mon Sep 17 00:00:00 2001 From: Geoffrey Keating Date: Wed, 10 Dec 2003 22:33:47 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/doc/extend.texi | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 32fa6de48e4..e37bc27762d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-12-10 Geoffrey Keating + + * doc/extend.texi (Vector Extensions): Document that bitwise + operations also work on vectors. + 2003-12-09 Robert Schiele PR other/10819 diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 535616ba633..4afe78463a1 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 -- 2.30.2