]> granicus.if.org Git - clang/commitdiff
Add load hint instruction intrinsic.
authorEric Christopher <echristo@apple.com>
Sun, 7 Mar 2010 06:29:09 +0000 (06:29 +0000)
committerEric Christopher <echristo@apple.com>
Sun, 7 Mar 2010 06:29:09 +0000 (06:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97904 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/smmintrin.h

index 6fa33fcba17d49ca8d6c19d60ca5cc3c1fa29b45..430396c54b7d00a5446e17117ec5f3e47ee2dddd 100644 (file)
@@ -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 @@ _mm_mul_epi32 (__m128i __V1, __m128i __V2)
 #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 */