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


tbp <tbptbp@gmail.com> writes:

> vecop.cc:4: error: invalid operands of types 'float __vector__' and
> 'float __vector__' to binary 'operator|'
> vecop.cc:5: error: invalid operands of types 'float __vector__' and
> 'float __vector__' to binary 'operator&'
> vecop.cc:6: error: invalid operands of types 'float __vector__' and
> 'float __vector__' to binary 'operator^'
> 
> Apparently it's still there as of right now, on x86-64 at least. I
> think this is not supposed to happen but i'm not sure, hence the mail.

What does it mean to do a bitwise-or of a floating point value?

This code also gets an error:

double foo(double a, double b) { return a | b; }

Ian


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