This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Vector modes and C++ not supported?
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: Richard Guenther <rguenth at tat dot physik dot uni-tuebingen dot de>
- Cc: gcc at gcc dot gnu dot org, Alexander Ehlert <ehlert at tat dot physik dot uni-tuebingen dot de>
- Date: 01 May 2003 17:52:23 -0700
- Subject: Re: Vector modes and C++ not supported?
- References: <Pine.LNX.4.44.0304241340110.18094-100000@bellatrix.tat.physik.uni-tuebingen.de>
>>>>> "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