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: Vector modes and C++ not supported?


I had the same problem with the old C++ parser, around July 2002: <http://gcc.gnu.org/ml/gcc/2002-07/msg01425.html>.
I did not explain myself well back then about this though.


Thanks,
Andrew Pinski


On Thursday, May 1, 2003, at 20:52 US/Eastern, Aldy Hernandez wrote:


"Richard" == Richard Guenther <rguenth@tat.physik.uni-tuebingen.de> writes:

typedef float v4sf __attribute__((mode(V4SF)));
void foo()
{
	v4sf a, b, c;
	a = b + c;
}

bellatrix:~/src/tests$ g++-3.3 -c -msse2 simd2.cpp
simd2.cpp: In function `void foo()':
simd2.cpp:6: error: invalid operands of types `vector float' and `vector
float'
to binary `operator+'

while compiling using gcc is fine. Is this supposed to happen, and how
can one workaround this limitation? Will C++ support for this type of
automatic vectorization be added in the future?

This was working with the old C++ parser. It looks like it fell through the cracks. I don't recall writing a C++ testcase for this, so it very well be partly my fault.

Please file a bug report.

Aldy




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