diff options
author | Steven Munroe <munroesj@gcc.gnu.org> | 2017-11-16 22:50:16 +0000 |
---|---|---|
committer | Steven Munroe <munroesj@gcc.gnu.org> | 2017-11-16 22:50:16 +0000 |
commit | b1e35f49e89151ac2b4263e151a2a65d3b45a479 (patch) | |
tree | abe274be344cf81f37b1caa69327d47b6ff5bd4a | |
parent | 1e39313ac00c633263dfd11e06b782c9d988cad8 (diff) | |
download | gcc-b1e35f49e89151ac2b4263e151a2a65d3b45a479.zip gcc-b1e35f49e89151ac2b4263e151a2a65d3b45a479.tar.gz gcc-b1e35f49e89151ac2b4263e151a2a65d3b45a479.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/rs6000/mmintrin.h | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4e7f0af..2b4bd57 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-11-16 Steven Munroe <munroesj@gcc.gnu.org> + + * config/rs6000/mmintrin.h (_mm_add_pi32[_ARCH_PWR]): Correct + parameter list for vec_splats. + 2017-11-16 Joseph Myers <joseph@codesourcery.com> * 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 00b9a15..a678b17 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 |