]> granicus.if.org Git - clang/commitdiff
minimal fix for PR5743
authorChris Lattner <sabre@nondot.org>
Thu, 10 Dec 2009 01:38:15 +0000 (01:38 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 10 Dec 2009 01:38:15 +0000 (01:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91032 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/tmmintrin.h

index 374a27ecd77bf08038bd4ec118fa3f35d61d3684..00bfa27910562b4c67e6d8a0ebaded922a588bfb 100644 (file)
@@ -66,8 +66,8 @@ _mm_abs_epi32(__m128i a)
     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)