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> 2003-12-09 Robert Schiele <rschiele@uni-mannheim.de>
PR other/10819 PR other/10819
......
...@@ -4727,8 +4727,8 @@ architecture does not allow for this specific SIMD type, gcc will ...@@ -4727,8 +4727,8 @@ architecture does not allow for this specific SIMD type, gcc will
produce code that uses 4 @code{SIs}. produce code that uses 4 @code{SIs}.
The types defined in this manner can be used with a subset of normal C 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 operations. Currently, gcc will allow using the following operators
these types: @code{+, -, *, /, unary minus}@. on these types: @code{+, -, *, /, unary minus, ^, |, &, ~}@.
The operations behave like C++ @code{valarrays}. Addition is defined as The operations behave like C++ @code{valarrays}. Addition is defined as
the addition of the corresponding elements of the operands. For the addition of the corresponding elements of the operands. For
...@@ -4744,9 +4744,10 @@ v4si a, b, c; ...@@ -4744,9 +4744,10 @@ v4si a, b, c;
c = a + b; c = a + b;
@end example @end example
Subtraction, multiplication, and division operate in a similar manner. Subtraction, multiplication, division, and the logical operations
Likewise, the result of using the unary minus operator on a vector type operate in a similar manner. Likewise, the result of using the unary
is a vector whose elements are the negative value of the corresponding 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. elements in the operand.
You can declare variables and use them in function calls and returns, as 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