Vector modes and C++ not supported?

Richard Guenther rguenth@tat.physik.uni-tuebingen.de
Thu Apr 24 13:33:00 GMT 2003


Hi!

With g++-3.3 (GCC) 3.3 20030423 (prerelease) I get for the testcase

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?

Thanks, Richard.

--
Richard Guenther <richard dot guenther at uni-tuebingen dot de>
WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/



More information about the Gcc mailing list