From 0c8956e09adb63362e8596548f8631a26ac7ff9b Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Wed, 15 Aug 2018 21:34:26 +0200 Subject: [PATCH] i386.c (expand_vec_perm_movs): Enable V4SFmode for TARGET_SSE. * config/i386/i386.c (expand_vec_perm_movs): Enable V4SFmode for TARGET_SSE. From-SVN: r263567 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/emmintrin.h | 2 +- gcc/config/i386/i386.c | 5 ++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8ea97839c67..d922dee87b3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-08-15 Uros Bizjak + + * config/i386/i386.c (expand_vec_perm_movs): Enable V4SFmode + for TARGET_SSE. + 2018-08-15 David Malcolm * common.opt (fdiagnostics-show-labels): New option. diff --git a/gcc/config/i386/emmintrin.h b/gcc/config/i386/emmintrin.h index 6501638f619..7a6ff80f68a 100644 --- a/gcc/config/i386/emmintrin.h +++ b/gcc/config/i386/emmintrin.h @@ -113,7 +113,7 @@ _mm_setzero_pd (void) extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_move_sd (__m128d __A, __m128d __B) { - return __extension__ (__m128d) __builtin_shuffle((__v2df)__A, (__v2df)__B, (__v2di){2, 1}); + return __extension__ (__m128d) __builtin_shuffle ((__v2df)__A, (__v2df)__B, (__v2di){2, 1}); } /* Load two DPFP values from P. The address must be 16-byte aligned. */ diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 15a3caa94c3..dad91c1dcf7 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -46157,9 +46157,8 @@ expand_vec_perm_movs (struct expand_vec_perm_d *d) if (d->one_operand_p) return false; - if (TARGET_SSE2 && (vmode == V2DFmode || vmode == V4SFmode)) - ; - else + if (!(TARGET_SSE && vmode == V4SFmode) + && !(TARGET_SSE2 && vmode == V2DFmode)) return false; /* Only the first element is changed. */ -- 2.30.2