recent troubles with float vectors & bitwise ops
Andrew Pinski
pinskia@gmail.com
Fri Aug 24 01:13:00 GMT 2007
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
More information about the Gcc
mailing list