]> granicus.if.org Git - clang/commitdiff
Fix an error in _mm_loaddup_pd that Eli noticed.
authorAnders Carlsson <andersca@mac.com>
Sat, 14 Feb 2009 01:06:58 +0000 (01:06 +0000)
committerAnders Carlsson <andersca@mac.com>
Sat, 14 Feb 2009 01:06:58 +0000 (01:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64522 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/pmmintrin.h

index 56f8dea6d65d651a37993f8c1fef0b5289fec74f..cd901662d68b08f96101394a16209f49e4ef3b61 100644 (file)
@@ -87,7 +87,7 @@ _mm_hsub_pd(__m128d a, __m128d b)
 static inline __m128d __attribute__((__always_inline__, __nodebug__))
 _mm_loaddup_pd(double const *dp)
 {
-  return __builtin_shufflevector(*(__m128d *)dp, *(__m128d *)dp, 0, 0);
+  return (__m128d){ *dp, *dp };
 }
 
 static inline __m128d __attribute__((__always_inline__, __nodebug__))