aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@inria.fr>2012-09-27 12:06:23 +0200
committerMarc Glisse <glisse@gcc.gnu.org>2012-09-27 10:06:23 +0000
commite481cda684ff01bab0d4c1d3813dbfc92557182e (patch)
treebe6091b44aaa9d3b9e2680b33a4bc5f883de4e69
parente649d346e789ca15524872c11a40288113c27d50 (diff)
downloadgcc-e481cda684ff01bab0d4c1d3813dbfc92557182e.zip
gcc-e481cda684ff01bab0d4c1d3813dbfc92557182e.tar.gz
gcc-e481cda684ff01bab0d4c1d3813dbfc92557182e.tar.bz2
re PR middle-end/53024 (Support vector_size that is not a power of 2)
2012-09-27 Marc Glisse <marc.glisse@inria.fr> PR c/53024 PR c++/54427 * gcc/doc/extend.texi (Vector Extensions): C++ improvements. Power of 2 size requirement. From-SVN: r191800
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/doc/extend.texi7
2 files changed, 11 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cb66af6..5850528 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2012-09-27 Marc Glisse <marc.glisse@inria.fr>
+
+ PR c/53024
+ PR c++/54427
+ * doc/extend.texi (Vector Extensions): C++ improvements.
+ Power of 2 size requirement.
+
2012-09-27 Richard Guenther <rguenther@suse.de>
PR lto/54709
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 8b4a867..9b216df 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -6820,7 +6820,8 @@ corresponding mode of @code{foo} will be @acronym{V4SI}.
The @code{vector_size} attribute is only applicable to integral and
float scalars, although arrays, pointers, and function return values
-are allowed in conjunction with this construct.
+are allowed in conjunction with this construct. Only power of two
+sizes are currently allowed.
All the basic integer types can be used as base types, both as signed
and as unsigned: @code{char}, @code{short}, @code{int}, @code{long},
@@ -6857,7 +6858,7 @@ 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.
-In C it is possible to use shifting operators @code{<<}, @code{>>} on
+It is possible to use shifting operators @code{<<}, @code{>>} on
integer-type vectors. The operation is defined as following: @code{@{a0,
a1, @dots{}, an@} >> @{b0, b1, @dots{}, bn@} == @{a0 >> b0, a1 >> b1,
@dots{}, an >> bn@}}@. Vector operands must have the same number of
@@ -6888,7 +6889,7 @@ invoke undefined behavior at runtime. Warnings for out of bound
accesses for vector subscription can be enabled with
@option{-Warray-bounds}.
-In GNU C vector comparison is supported within standard comparison
+Vector comparison is supported with standard comparison
operators: @code{==, !=, <, <=, >, >=}. Comparison operands can be
vector expressions of integer-type or real-type. Comparison between
integer-type vectors and real-type vectors are not supported. The