This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

_mm_cast*, icc8.1 new intrinsics


Hello,

Would it be possible to add those, as far as know, new casting intrinsics?
On gcc4 i just use a C cast but i've found the painful way they have
to be used with ICC8.1 to avoid useless store/load and, again as far
as i know, aren't supported by any gcc (or msvc2k3 btw).

Excerpt from the only documentation i've found about them:
Intrinsics for Casting Support
This version of the Intel C++ Compiler supports casting between
various SP, DP, and INT vector types. These intrinsics do not convert
values; they just change the type.

extern __m128  _mm_castpd_ps(__m128d in);

extern __m128i _mm_castpd_si128(__m128d in);

extern __m128d _mm_castps_pd(__m128 in);

extern __m128i _mm_castps_si128(__m128 in);

extern __m128  _mm_castsi128_ps(__m128i in);

extern __m128d _mm_castsi128_pd(__m128i in);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]