From f62e1b88f0b9455299dfe4c349f592485a20891b Mon Sep 17 00:00:00 2001 From: glisse Date: Thu, 27 Sep 2012 10:06:23 +0000 Subject: [PATCH] 2012-09-27 Marc Glisse PR c/53024 PR c++/54427 * gcc/doc/extend.texi (Vector Extensions): C++ improvements. Power of 2 size requirement. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191800 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 7 +++++++ gcc/doc/extend.texi | 7 ++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cb66af6b446..5850528c51e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2012-09-27 Marc Glisse + + PR c/53024 + PR c++/54427 + * doc/extend.texi (Vector Extensions): C++ improvements. + Power of 2 size requirement. + 2012-09-27 Richard Guenther PR lto/54709 diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 8b4a8677759..9b216df8e1c 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 -- 2.11.4.GIT