svn commit: r270099 - in stable: 10/contrib/gcc/config/i386 9/contrib/gcc/config/i386

Dimitry Andric dim at
Sun Aug 17 13:08:16 UTC 2014

Author: dim
Date: Sun Aug 17 13:08:15 2014
New Revision: 270099

  MFC r269948:
  Supplement r259111 by also using correct casts in gcc's emmintrin.h for
  the first argument of the following builtin function:
  * __builtin_ia32_psrlqi128() takes __v2di instead of __v4si
  This should fix the following errors when building the graphics/webp
  port with base gcc:
  lossless_sse2.c:403: error: incompatible type for argument 1 of '__builtin_ia32_psrlqi128'
  lossless_sse2.c:404: error: incompatible type for argument 1 of '__builtin_ia32_psrlqi128'
  Reported by:	Jos Chrispijn <ports at>

Directory Properties:
  stable/10/   (props changed)

Changes in other areas also in this revision:
Directory Properties:
  stable/9/contrib/gcc/   (props changed)

Modified: stable/10/contrib/gcc/config/i386/emmintrin.h
--- stable/10/contrib/gcc/config/i386/emmintrin.h	Sun Aug 17 11:59:23 2014	(r270098)
+++ stable/10/contrib/gcc/config/i386/emmintrin.h	Sun Aug 17 13:08:15 2014	(r270099)
@@ -1193,7 +1193,7 @@ _mm_srli_epi64 (__m128i __A, int __B)
 #define _mm_srli_epi32(__A, __B) \
   ((__m128i)__builtin_ia32_psrldi128 ((__v4si)(__A), __B))
 #define _mm_srli_epi64(__A, __B) \
-  ((__m128i)__builtin_ia32_psrlqi128 ((__v4si)(__A), __B))
+  ((__m128i)__builtin_ia32_psrlqi128 ((__v2di)(__A), __B))
 static __inline __m128i __attribute__((__always_inline__))

More information about the svn-src-all mailing list