This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
__builtin_ia32_cmpltps and friends return wrong variable of variable?
- From: Gerard Basler <gbasler at ee dot ethz dot ch>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 24 Sep 2003 21:43:15 +0200 (MEST)
- Subject: __builtin_ia32_cmpltps and friends return wrong variable of variable?
Hello,
I'm trying to write a small program using sse intrinsics and I have the
following problem:
__builtin_ia32_cmpltps and friends return "v4si" but I think it should
be "v4sf"!? Even in the online manual is wrong?
http://gcc.gnu.org/onlinedocs/gcc-3.3.1/gcc/X86-Built-in-Functions.htm
cmpltps is an sse instruction therefore "v4sf" should be returned.
"v4si" belongs to sse2!
This is the error message:
gcc-sse-test.cpp: In function `void CalcPixelRowMandel(int, unsigned
int*)':
gcc-sse-test.cpp:81: cannot convert `vector int' to `vector float' in
assignment
I am now confused... please help!
Thanks.
Gérard