This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: SSE and SSE2 intrinsics
On Mon, Feb 04, 2002 at 12:44:20PM -0000, Tom Womack wrote:
> I worked out I should do typedef int __m128i ((attribute V4SI)) to get the
> right type, but I couldn't find in the documentation any indication of what
> I should use in gcc where I'd use _mm_cmpgt_epi8 in VC++; indeed, even
> looking through i386.md I couldn't find an instruction-definition for the
> SSE2 extended-MMX compare instructions.
>
> I was somehow expecting a file that I could #include to get Intel intrinsics
> recognised, but I couldn't find one even by grepping through the source
> tree.
It's there -- #include <xmmintrin.h> or <mmintrin.h> just like the
Intel compiler. Oh, I see. You said you were using the 2001-12-31
snapshot. These headers were added 2002-01-11.
I have no idea what "_mm_cmpgt_epi8" is though. It's not in my
documentation. Is that just a typo for "_mm_cmpgt_pi8"?
r~