From: Steven Munroe Date: Thu, 16 Nov 2017 22:50:16 +0000 (+0000) Subject: Had a small thinko in the implementation of mmintrin.h _mm_add_pi32 that only shows... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b1e35f49e89151ac2b4263e151a2a65d3b45a479;p=gcc.git Had a small thinko in the implementation of mmintrin.h _mm_add_pi32 that only shows when compiling for power9. Had a small thinko in the implementation of mmintrin.h _mm_add_pi32 that only shows when compiling for power9. A trivial and obvious 2 line patch to fix it. From-SVN: r254848 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4e7f0af54fa..2b4bd57d180 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-11-16 Steven Munroe + + * config/rs6000/mmintrin.h (_mm_add_pi32[_ARCH_PWR]): Correct + parameter list for vec_splats. + 2017-11-16 Joseph Myers * doc/invoke.texi (-std=c17): Refer to 2018 expected publication diff --git a/gcc/config/rs6000/mmintrin.h b/gcc/config/rs6000/mmintrin.h index 00b9a1507b8..a678b1782fa 100644 --- a/gcc/config/rs6000/mmintrin.h +++ b/gcc/config/rs6000/mmintrin.h @@ -463,8 +463,8 @@ _mm_add_pi32 (__m64 __m1, __m64 __m2) #if _ARCH_PWR9 __vector signed int a, b, c; - a = (__vector signed int)vec_splats (__m1, __m1); - b = (__vector signed int)vec_splats (__m2, __m2); + a = (__vector signed int)vec_splats (__m1); + b = (__vector signed int)vec_splats (__m2); c = vec_add (a, b); return (__builtin_unpack_vector_int128 ((__vector __int128_t)c, 0)); #else