From: uros Date: Wed, 15 Aug 2018 19:34:26 +0000 (+0000) Subject: * config/i386/i386.c (expand_vec_perm_movs): Enable V4SFmode X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb1258b071c5b930ed81a3951b3ec6f34e6ed699;p=thirdparty%2Fgcc.git * config/i386/i386.c (expand_vec_perm_movs): Enable V4SFmode for TARGET_SSE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263567 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8ea97839c673..d922dee87b3d 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 6501638f619a..7a6ff80f68ae 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 15a3caa94c35..dad91c1dcf78 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. */