From 28daca211c82de0ebd41d265e31c02cb9c2345e8 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sat, 27 Dec 2014 11:50:51 +0000 Subject: [PATCH] [x86] Also add the missing type casts on the returns in the sha intrinsic header file. Along with r224822, this should restore the build bots to passing. llvm-svn: 224883 --- clang/lib/Headers/shaintrin.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/clang/lib/Headers/shaintrin.h b/clang/lib/Headers/shaintrin.h index cb748fe38042..391a4bbc4f0e 100644 --- a/clang/lib/Headers/shaintrin.h +++ b/clang/lib/Headers/shaintrin.h @@ -38,37 +38,37 @@ static __inline__ __m128i __attribute__((__always_inline__, __nodebug__)) _mm_sha1nexte_epu32(__m128i __X, __m128i __Y) { - return __builtin_ia32_sha1nexte((__v4si)__X, (__v4si)__Y); + return (__m128i)__builtin_ia32_sha1nexte((__v4si)__X, (__v4si)__Y); } static __inline__ __m128i __attribute__((__always_inline__, __nodebug__)) _mm_sha1msg1_epu32(__m128i __X, __m128i __Y) { - return __builtin_ia32_sha1msg1((__v4si)__X, (__v4si)__Y); + return (__m128i)__builtin_ia32_sha1msg1((__v4si)__X, (__v4si)__Y); } static __inline__ __m128i __attribute__((__always_inline__, __nodebug__)) _mm_sha1msg2_epu32(__m128i __X, __m128i __Y) { - return __builtin_ia32_sha1msg2((__v4si)__X, (__v4si)__Y); + return (__m128i)__builtin_ia32_sha1msg2((__v4si)__X, (__v4si)__Y); } static __inline__ __m128i __attribute__((__always_inline__, __nodebug__)) _mm_sha256rnds2_epu32(__m128i __X, __m128i __Y, __m128i __Z) { - return __builtin_ia32_sha256rnds2((__v4si)__X, (__v4si)__Y, (__v4si)__Z); + return (__m128i)__builtin_ia32_sha256rnds2((__v4si)__X, (__v4si)__Y, (__v4si)__Z); } static __inline__ __m128i __attribute__((__always_inline__, __nodebug__)) _mm_sha256msg1_epu32(__m128i __X, __m128i __Y) { - return __builtin_ia32_sha256msg1((__v4si)__X, (__v4si)__Y); + return (__m128i)__builtin_ia32_sha256msg1((__v4si)__X, (__v4si)__Y); } static __inline__ __m128i __attribute__((__always_inline__, __nodebug__)) _mm_sha256msg2_epu32(__m128i __X, __m128i __Y) { - return __builtin_ia32_sha256msg2((__v4si)__X, (__v4si)__Y); + return (__m128i)__builtin_ia32_sha256msg2((__v4si)__X, (__v4si)__Y); } #endif /* __SHAINTRIN_H */