Vector modes and C++ not supported?
Aldy Hernandez
aldyh@redhat.com
Fri May 2 00:52:00 GMT 2003
>>>>> "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
More information about the Gcc
mailing list