Commit 3a3e1600 by Geoffrey Keating Committed by Geoffrey Keating

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
parent 9f503dd3
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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment