From b1e35f49e89151ac2b4263e151a2a65d3b45a479 Mon Sep 17 00:00:00 2001 From: Steven Munroe Date: Thu, 16 Nov 2017 22:50:16 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/rs6000/mmintrin.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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 -- 2.30.2