[cfe-commits] r97904 - /cfe/trunk/lib/Headers/smmintrin.h

Eric Christopher echristo at apple.com
Sat Mar 6 22:29:09 PST 2010


Author: echristo
Date: Sun Mar  7 00:29:09 2010
New Revision: 97904

URL: http://llvm.org/viewvc/llvm-project?rev=97904&view=rev
Log:
Add load hint instruction intrinsic.

Modified:
    cfe/trunk/lib/Headers/smmintrin.h

Modified: cfe/trunk/lib/Headers/smmintrin.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/smmintrin.h?rev=97904&r1=97903&r2=97904&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/smmintrin.h (original)
+++ cfe/trunk/lib/Headers/smmintrin.h Sun Mar  7 00:29:09 2010
@@ -32,6 +32,7 @@
 
 /* Type defines.  */
 typedef double __v2df __attribute__ ((__vector_size__ (16)));
+typedef long long __v2di __attribute__ ((__vector_size__ (16)));
 
 /* SSE4 Rounding macros. */
 #define _MM_FROUND_TO_NEAREST_INT    0x00
@@ -122,6 +123,13 @@
 #define _mm_dp_ps(X, Y, M) __builtin_ia32_dpps ((X), (Y), (M))
 #define _mm_dp_pd(X, Y, M) __builtin_ia32_dppd ((X), (Y), (M))
 
+/* SSE4 Streaming Load Hint Instruction.  */
+static inline  __m128i __attribute__((__always_inline__, __nodebug__))
+_mm_stream_load_si128 (__m128i *__V)
+{
+  return (__m128i) __builtin_ia32_movntdqa ((__v2di *) __V);
+}
+
 #endif /* __SSE4_1__ */
 
 #endif /* _SMMINTRIN_H */





More information about the cfe-commits mailing list