summaryrefslogtreecommitdiffstats
path: root/contrib/gcc
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2013-12-11 07:43:30 +0000
committerdim <dim@FreeBSD.org>2013-12-11 07:43:30 +0000
commit4c7f14937f70cb9c4c3cc0f3179a5ee639a7152f (patch)
tree22f6c74f9973d2c8463493fee298d77a764c790e /contrib/gcc
parentd6c28b7c7ee72da3931ec88ade64e4eb638af141 (diff)
downloadFreeBSD-src-4c7f14937f70cb9c4c3cc0f3179a5ee639a7152f.zip
FreeBSD-src-4c7f14937f70cb9c4c3cc0f3179a5ee639a7152f.tar.gz
MFC r259111:
Use correct casts in gcc's emmintrin.h for the first arguments of the following builtin functions: * __builtin_ia32_pslldi128() takes __v4si instead of __v8hi * __builtin_ia32_psllqi128() takes __v2di instead of __v8hi * __builtin_ia32_psradi128() takes __v4si instead of __v8hi This should fix the following errors when building the LINT kernel with gcc: sys/crypto/aesni/aesni_wrap.c:191: error: incompatible type for argument 1 of '__builtin_ia32_psradi128' sys/crypto/aesni/aesni_wrap.c:195: error: incompatible type for argument 1 of '__builtin_ia32_pslldi128'
Diffstat (limited to 'contrib/gcc')
-rw-r--r--contrib/gcc/config/i386/emmintrin.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/gcc/config/i386/emmintrin.h b/contrib/gcc/config/i386/emmintrin.h
index acab0a1..fb40553 100644
--- a/contrib/gcc/config/i386/emmintrin.h
+++ b/contrib/gcc/config/i386/emmintrin.h
@@ -1126,9 +1126,9 @@ _mm_slli_epi64 (__m128i __A, int __B)
#define _mm_slli_epi16(__A, __B) \
((__m128i)__builtin_ia32_psllwi128 ((__v8hi)(__A), __B))
#define _mm_slli_epi32(__A, __B) \
- ((__m128i)__builtin_ia32_pslldi128 ((__v8hi)(__A), __B))
+ ((__m128i)__builtin_ia32_pslldi128 ((__v4si)(__A), __B))
#define _mm_slli_epi64(__A, __B) \
- ((__m128i)__builtin_ia32_psllqi128 ((__v8hi)(__A), __B))
+ ((__m128i)__builtin_ia32_psllqi128 ((__v2di)(__A), __B))
#endif
#if 0
@@ -1147,7 +1147,7 @@ _mm_srai_epi32 (__m128i __A, int __B)
#define _mm_srai_epi16(__A, __B) \
((__m128i)__builtin_ia32_psrawi128 ((__v8hi)(__A), __B))
#define _mm_srai_epi32(__A, __B) \
- ((__m128i)__builtin_ia32_psradi128 ((__v8hi)(__A), __B))
+ ((__m128i)__builtin_ia32_psradi128 ((__v4si)(__A), __B))
#endif
#if 0
OpenPOWER on IntegriCloud