[cfe-commits] r91032 - /cfe/trunk/lib/Headers/tmmintrin.h

Chris Lattner sabre at nondot.org
Wed Dec 9 17:38:16 PST 2009


Author: lattner
Date: Wed Dec  9 19:38:15 2009
New Revision: 91032

URL: http://llvm.org/viewvc/llvm-project?rev=91032&view=rev
Log:
minimal fix for PR5743

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

Modified: cfe/trunk/lib/Headers/tmmintrin.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/tmmintrin.h?rev=91032&r1=91031&r2=91032&view=diff

==============================================================================
--- cfe/trunk/lib/Headers/tmmintrin.h (original)
+++ cfe/trunk/lib/Headers/tmmintrin.h Wed Dec  9 19:38:15 2009
@@ -66,8 +66,8 @@
     return (__m128i)__builtin_ia32_pabsd128((__v4si)a);
 }
 
-#define _mm_alignr_epi8(a, b, n) (__builtin_ia32_palignr128((a), (b), (n)))
-#define _mm_alignr_pi8(a, b, n) (__builtin_ia32_palignr((a), (b), (n)))
+#define _mm_alignr_epi8(a, b, n) (__builtin_ia32_palignr128((a), (b), (n*8)))
+#define _mm_alignr_pi8(a, b, n) (__builtin_ia32_palignr((a), (b), (n*8)))
 
 static inline __m128i __attribute__((__always_inline__, __nodebug__))
 _mm_hadd_epi16(__m128i a, __m128i b)





More information about the cfe-commits mailing list