This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: recent troubles with float vectors & bitwise ops


On 8/23/07, Andrew Pinski <pinskia@gmail.com> wrote:
> On 8/23/07, Joseph S. Myers <joseph@codesourcery.com> wrote:
> >
> > We decided long ago that the extension would be based on what's permitted
> > by C++ valarray rather than by a particular CPU's vector intrinsics.  So
> > unless C++ valarray allows this operation, I think we should leave it
> > prohibited
>
> And it is not supported by valarray.

Plus this is already documented:
The operations behave like C++ valarrays. Addition is defined as the
addition of the corresponding elements of the operands.

So if one reads the documentation, vector float | vector float would
mean take each element and ior it with the element in the other vector
so then you have float | float which is invalid.

-- Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]